.public-discover-shell { --project-card-width: 270px; --project-card-height: 377px; }
.public-discover-shell::before { display:none; }
.public-discover-shell .shared-project-card { width: var(--project-card-width); height: var(--project-card-height); min-height: 0; aspect-ratio: auto; }
.public-discover-shell .shared-project-card .tcg-flip-inner { height: 100%; }
.public-discover-shell .shared-project-card .tcg-relation-card { height: 100%; min-height: 0; padding: .55rem; border: 2px solid #102033; border-radius: 15px; background: var(--project-accent); color: #102033; grid-template-rows: auto minmax(0,1fr); }
.public-discover-shell .shared-project-card .tcg-card-art { aspect-ratio: 1.34 / 1; height: auto; }
.public-discover-shell .shared-project-card .tcg-card-copy { display: flex; flex-direction: column; gap: 6px; padding: .68rem; margin-top: .5rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.public-discover-shell .shared-project-card .tcg-card-copy > * { flex-shrink: 0; }
.public-discover-shell .shared-project-card .tcg-card-copy strong { font-size: 17px; line-height: 1.4; }
.public-discover-shell .shared-project-card .tcg-card-copy em { font-size: 14px; line-height: 1.45; }
.public-discover-shell .shared-project-card .tcg-card-copy small { font-size: 12px; }
.public-discover-shell .shared-project-card .tcg-card-copy strong,
.public-discover-shell .shared-project-card .tcg-card-copy em { display: block; overflow: visible; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
.public-discover-shell .shared-project-card .tcg-relation-card-back { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.public-discover-shell .shared-project-card .card-back-content { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; pointer-events: auto; overflow-wrap: anywhere; }
.card-back-content > small { display: block; color: var(--project-accent); font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.card-back-content > strong { display: block; font-size: 19px; line-height: 1.4; }
.card-back-content p, .card-back-content div { font-size: 14px; line-height: 1.5; }
.card-back-content div { display: grid; gap: 5px; padding: 10px; background: #f3f6ff; border-left: 5px solid var(--project-accent); }
.public-discover-shell .shared-project-card .tcg-relation-card-back footer { display: flex; flex-shrink: 0; gap: 6px; pointer-events: auto; margin-top: auto; }
.public-discover-shell .shared-project-card .tcg-relation-card-back footer button { font-size: 14px; min-height: 44px; padding: 6px 10px; }
.discovery-card-hint { margin-top: auto; font-size: 12px; }
.public-relationship-main .discovery-feed-grid,
.public-relationship-main .keyword-card-grid { display: grid; grid-template-columns: repeat(auto-fill, var(--project-card-width)); gap: 18px; align-items: start; overflow: visible; }
.public-relationship-main .discovery-feed-card { width: var(--project-card-width); min-width: 0; }
.public-relationship-main .keyword-card-grid > span,
.public-relationship-main .problem-hand .solution-card-fan > span,
.public-relationship-main .match-card { width: var(--project-card-width); min-width: var(--project-card-width); flex: 0 0 var(--project-card-width); }
.public-relationship-main .problem-hand .solution-card-fan { display: flex; flex-wrap: wrap; justify-content: center; align-items: start; gap: 18px; min-height: 0; }
.public-relationship-main .match-table { display: flex; width: auto; max-width: 100%; flex-wrap: wrap; justify-content: center; }
@media(min-width: 1101px) {
 .public-discover-shell:has(.public-relationship-main) { height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
 .public-discover-shell .public-relationship-main { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 8px 12px; align-items: stretch; overflow: hidden; }
 .public-relationship-main .relation-view-tabs.is-six { position: static; height: 100%; min-height: 0; align-content: start; overflow-y: auto; padding: 0 6px 6px 0; background: #e7effb; border-radius: 10px; }
 .public-relationship-main .relation-view-stage { height: 100%; min-height: 0; overflow: auto; padding: 0 8px 8px; scrollbar-gutter: stable; }
}
@media(prefers-reduced-motion: reduce) { .public-discover-shell .shared-project-card .tcg-flip-inner { animation: none !important; transition: none !important; } }
/* Header navigation and a centered, full-width content canvas. */
.public-discover-shell .site-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 20px; padding: 12px 24px 10px; }
.public-discover-shell .site-header .brand-channel-cluster { justify-self: start; }
.public-discover-shell .site-header > nav { justify-self: end; }
#discovery-header-menu { grid-column: 1 / -1; min-width: 0; }
.public-discover-shell #discovery-header-menu .relation-view-tabs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin: 0; padding: 0; width: auto; height: auto; background: transparent; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-width: 0; min-height: 40px; flex: 0 0 auto; padding: 8px 15px; border-radius: 7px; transform: none; box-shadow: none; }
.public-discover-shell #discovery-header-menu .relation-view-tabs i,
.public-discover-shell #discovery-header-menu .relation-view-tabs small { display: none; }
.public-discover-shell #discovery-header-menu .relation-view-tabs b { font-size: 15px; }
.public-discover-shell .public-relationship-main { display: block; padding: 18px 24px; }
.public-relationship-main .relation-view-stage { max-width: 1480px; margin: 0 auto; }
.public-relationship-main .discovery-feed-grid,
.public-relationship-main .keyword-card-grid { justify-content: center; gap: 24px; }
@media(min-width: 1101px) {
 .public-discover-shell .public-relationship-main .relation-view-stage { padding: 0 8px 12px; }
 .public-relationship-main .problem-stage { grid-template-columns: 250px minmax(0,1fr); }
}
@media(max-width: 700px) {
 .public-discover-shell .site-header { padding: 10px 12px; gap: 8px; }
 .public-discover-shell .site-header > nav { flex-wrap: wrap; gap: 4px; }
 .public-discover-shell .site-header .brand small { display: none; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs button { padding: 8px 12px; }
 .public-discover-shell .public-relationship-main { padding: 14px 12px; }
}
@media(min-width: 1101px) {
 .public-relationship-main .problem-workspace { grid-template-columns: 240px minmax(0,1fr); }
 .public-relationship-main .problem-pack-rack { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 14px; }
 .public-relationship-main .problem-pack-rack button { min-height: 58px; grid-template-columns: 36px minmax(0,1fr); gap: 8px; padding: 8px; }
 .public-relationship-main .problem-pack-icon { width: 36px; font-size: 21px; }
}
/* Desktop uses one header row: brand, discovery navigation, utilities. */
@media(min-width: 1101px) {
 .public-discover-shell .site-header { grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 12px 24px; min-height: 72px; }
 .public-discover-shell .site-header .brand-channel-cluster { grid-column: 1; grid-row: 1; }
 .public-discover-shell .site-header > nav { grid-column: 3; grid-row: 1; }
 .public-discover-shell #discovery-header-menu { grid-column: 2; grid-row: 1; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs { flex-wrap: nowrap; justify-content: center; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs button { padding: 8px 12px; white-space: nowrap; }
 .public-discover-shell .site-header .brand small { display: none; }
}
.public-discover-shell #discovery-header-menu .relation-view-tabs button { color: #173452; background: #e8f1ff; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button.is-active { color: #102033; background: #d5f66b; }
@media(min-width:1101px) and (max-width:1300px) {
 .public-discover-shell .site-header { gap: 10px; padding-inline: 16px; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs { gap: 4px; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs button { padding-inline: 8px; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs b { font-size: 14px; }
 .public-discover-shell .site-header .brand-seal { display: none; }
}
/* Header tabs share the header palette instead of pale content buttons. */
.public-discover-shell #discovery-header-menu .relation-view-tabs button { color: #f4f8ff; background: transparent; border: 1px solid #789bc9; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button b { color: inherit; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button:hover { color: #fff; background: #365f96; border-color: #bfd6f4; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button.is-active { color: #102033; background: #d5f66b; border-color: #d5f66b; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button:focus-visible { outline: 3px solid #d5f66b; outline-offset: 2px; }
/* The header and page canvas do not need enclosing frames. */
.public-discover-shell .site-header > nav,
.public-discover-shell #discovery-header-menu .relation-view-tabs { border: 0; box-shadow: none; background: transparent; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button { border-color: transparent; }
.public-discover-shell .tcg-view-panel { border: 0; box-shadow: none; border-radius: 0; }


/* Use the personal deck face classes and palette; only viewport sizing differs. */
.public-discover-shell .shared-project-card .card-front { padding:12px; gap:12px; grid-template-rows:minmax(0,1fr) 148px; box-shadow:none; }
.public-discover-shell .shared-project-card .card-art-panel { aspect-ratio:auto; background:var(--label); border-radius:12px 12px 8px 8px; }
.public-discover-shell .shared-project-card .review-art-scene { background:color-mix(in srgb,var(--field) 84%,white); }
.public-discover-shell .shared-project-card .card-copy-panel { margin:0; padding:10px 12px; background:var(--label); border-radius:8px; overflow-y:auto; display:flex; flex-direction:column; }
.public-discover-shell .shared-project-card .card-copy-panel > small { color:var(--field); font-size:12px; line-height:1.25; }
.public-discover-shell .shared-project-card .card-copy-panel > strong { font-size:17px; line-height:1.3; color:#111; white-space:normal; }
.public-discover-shell .shared-project-card .card-copy-panel > b { font-size:14px; line-height:1.45; font-weight:600; color:#37322c; align-self:auto; }
.public-discover-shell .shared-project-card .card-copy-foot { margin-top:auto; }
.public-discover-shell .shared-project-card .card-copy-foot i { font-size:11px; }
.public-discover-shell .shared-project-card .card-status { background:var(--tag); color:#111; }
.public-discover-shell .shared-project-card .card-number { background:var(--label); color:#111; }
.public-discover-shell .review-ranking-grid.is-cards,
.public-discover-shell .review-ranking-grid.is-compact { display:grid; grid-template-columns:repeat(auto-fill,270px); justify-content:center; gap:24px; }
.public-discover-shell .review-ranked-item { width:270px; }
.discovery-feed .discovery-card-heart { top:56px; right:20px; }
@media(min-width:1101px) {
 .public-discover-shell .site-header { min-height:56px; padding:6px 20px; gap:14px; }
 .public-discover-shell .site-header .brand { display:flex; align-items:center; gap:10px; line-height:20px; }
 .public-discover-shell .site-header .brand b { display:block; font-size:16px; line-height:20px; }
 .public-discover-shell .site-header .brand-seal { width:36px; height:36px; min-height:0; font-size:22px; line-height:1; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs button { min-height:36px; padding:8px 12px; line-height:20px; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs b { display:block; font-size:15px; line-height:20px; }
 .public-discover-shell .site-header > nav { display:flex; align-items:center; gap:8px; padding:0; }
 .public-discover-shell .site-header > nav > a,
 .public-discover-shell .site-header > nav > button,
 .public-discover-shell .site-header > nav > details > summary { display:flex; align-items:center; justify-content:center; min-height:36px; padding:8px 10px; font-size:14px; line-height:20px; }
 .public-discover-shell .site-header > nav > details > summary > span { margin-left:6px; }
}
/* Official-document title band: white paper, thin blue rules. */
.public-discover-shell .site-header.channel-public-gitlab { color:#153454; background:#fff; border:0; box-shadow:none; padding-top:8px; padding-bottom:8px; }
.public-discover-shell .site-header.channel-public-gitlab::before,
.public-discover-shell .site-header.channel-public-gitlab::after { content:''; position:absolute; left:0; right:0; height:5px; pointer-events:none; background:linear-gradient(125deg,#087ebc 0 80%,#58b9e8 80% 84%,#a5def5 84% 86%,#075697 86% 100%); }
.public-discover-shell .site-header.channel-public-gitlab::before { top:0; bottom:auto; }
.public-discover-shell .site-header.channel-public-gitlab::after { top:auto; bottom:0; background:linear-gradient(125deg,#087ebc 0 71%,#58b9e8 71% 75%,#a5def5 75% 77%,#075697 77% 100%); }
.public-discover-shell .site-header .brand,
.public-discover-shell .site-header .brand b,
.public-discover-shell .site-header .brand small { color:#153454; }
.public-discover-shell .site-header.channel-public-gitlab .brand-seal { color:#075697; background:#edf7fc; border:1px solid #88b8d4; border-radius:4px; box-shadow:none; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button { color:#38506b; background:transparent; border:0; border-radius:0; box-shadow:none; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button b { color:inherit; font-weight:650; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button:hover { color:#075697; background:#edf7fc; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button.is-active { color:#123b60; background:transparent; box-shadow:inset 0 -3px 0 #087ebc; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button.is-active b { font-weight:850; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button:focus-visible { outline:2px solid #087ebc; outline-offset:2px; }
.public-discover-shell .site-header.channel-public-gitlab > nav > a,
.public-discover-shell .site-header.channel-public-gitlab > nav > button,
.public-discover-shell .site-header.channel-public-gitlab > nav > details > summary { color:#38506b; background:transparent; border-color:transparent; border-radius:4px; box-shadow:none; }
.public-discover-shell .site-header.channel-public-gitlab > nav > a:hover,
.public-discover-shell .site-header.channel-public-gitlab > nav > details > summary:hover { color:#075697; background:#edf7fc; }
.public-discover-shell .site-header.channel-public-gitlab > nav > details > summary > span { color:#075697; background:#e6f2f9; }
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav,
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-review-work-menu > summary {
 min-height:42px;
 color:#fff;
 background:#102d91;
 border:1px solid #fff;
 border-radius:1px;
 box-shadow:none;
}
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav:hover,
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-review-work-menu > summary:hover {
 color:#fff;
 background:#071c71;
}
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav {
 position:relative;
 min-width:112px;
 gap:0;
 padding:5px 8px;
 line-height:1;
}
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav > span {
 display:flex;
 width:100%;
 flex-direction:column;
 align-items:center;
 gap:0;
 padding:0 14px;
 font-size:12px;
 line-height:1;
 text-align:center;
}
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav small {
 color:#fff;
 font-family:inherit;
 font-size:14px;
 font-weight:700;
 line-height:1;
}
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav b { position:absolute; right:8px; color:#fff; }
.public-discover-shell .site-header.channel-public-gitlab > nav { gap:8px; background:#fff; }
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-review-work-menu { order:99; margin-left:0; }
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-review-work-menu > summary { padding:5px 8px; line-height:1; }
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-review-work-menu > summary > span { color:#102d91; background:#fff; }
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav,
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-external-nav small,
.public-discover-shell .site-header.channel-public-gitlab > nav > .public-review-work-menu > summary {
 font-weight:600;
}
.public-discover-shell .public-relationship-main { background-image: none; }
@media(min-width:1101px) {
 .public-discover-shell .site-header .brand b { font-size:18px; line-height:22px; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs b { font-size:17px; line-height:22px; }
 .public-discover-shell #discovery-header-menu .relation-view-tabs button { line-height:22px; padding:7px 10px; }
 .public-discover-shell .site-header.channel-public-gitlab > nav > a,
 .public-discover-shell .site-header.channel-public-gitlab > nav > button,
 .public-discover-shell .site-header.channel-public-gitlab > nav > details > summary { font-size:15px; line-height:22px; padding:7px 8px; }
}
/* Three-color card families; the reading panel stays light. */
.public-discover-shell .shared-project-card .card-front { background:var(--card-surface); }
.public-discover-shell .shared-project-card .review-art-scene { background:var(--art-surface); }
.public-discover-shell .shared-project-card .tcg-relation-card-back::before { background:var(--card-surface); }
.public-discover-shell .trending-view { display:flex; flex-direction:column; min-height:100%; }
.public-discover-shell .trending-stage { flex:1; min-height:0; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); align-items:stretch; gap:16px; padding:18px; }
.public-discover-shell .trending-domain-overview { grid-template-rows:minmax(0,1fr) auto; min-height:0; }
.trending-actual-bars { display:grid; grid-template-rows:repeat(9,minmax(38px,1fr)); gap:12px; padding:18px; border:1px solid #ffffff40; border-radius:10px; }
.activity-bar-row { display:grid; grid-template-columns:112px minmax(30px,1fr) 32px 66px; gap:10px; align-items:center; }
.activity-bar-row strong { font-size:14px; }
.activity-bar-row > b { font-size:19px; text-align:right; }
.activity-bar-row small { font-size:12px; color:#d4e4f8; }
.activity-bar-track { display:block; height:20px; background:#ffffff14; border-radius:4px; overflow:hidden; }
.activity-bar-track i { display:block; height:100%; border-radius:4px; }
.trending-data-note { color:#d4e4f8; font-size:13px; line-height:1.6; margin:0; }
.public-discover-shell .trending-detail { display:flex; flex-direction:column; min-height:0; }
.public-discover-shell .trending-detail > header { display:flex; flex-wrap:wrap; gap:8px 16px; margin-bottom:12px; }
.public-discover-shell .trending-detail > header h3 { font-size:21px; }
.public-discover-shell .trending-feed { flex:1; display:grid; grid-auto-rows:minmax(54px,1fr); gap:6px; }
.public-discover-shell .trending-feed-row { display:grid; grid-template-columns:minmax(0,1fr) auto; color:#102033; text-decoration:none; }
.public-discover-shell .trending-feed-row i { font-size:12px; }
@media(min-width:1101px) { .public-relationship-main.relation-trending .relation-view-stage { height:100%; } }
@media(max-width:980px) { .public-discover-shell .trending-stage { display:flex; flex-direction:column; } .trending-actual-bars { padding:12px; } .activity-bar-row { grid-template-columns:88px minmax(20px,1fr) 24px; gap:6px; } .activity-bar-row small { display:none; } }
.public-discover-shell .review-detail-columns article.is-caution,
.public-discover-shell .review-dialog .card-dialog-head { box-shadow:none; }
.public-discover-shell .review-dialog {
 overflow-x:hidden;
 overflow-y:auto;
 scrollbar-width:thin;
 scrollbar-color:#3770bf transparent;
 scrollbar-gutter:stable;
}
.public-discover-shell .review-dialog::-webkit-scrollbar { width:10px; }
.public-discover-shell .review-dialog::-webkit-scrollbar-track { background:transparent; }
.public-discover-shell .review-dialog::-webkit-scrollbar-thumb {
 min-height:48px;
 border:2px solid transparent;
 border-radius:999px;
 background:#3770bf;
 background-clip:content-box;
}
.public-discover-shell .review-dialog::-webkit-scrollbar-thumb:hover { background-color:#244d85; }
.public-discover-shell .review-test-result,
.public-discover-shell .match-reasons > span,
.public-discover-shell .card-back-content div,
.public-discover-shell .catalog-domains i,
.public-discover-shell .showcase-rule div,
.public-discover-shell .system-rules > div { border-left:0; }
.public-discover-shell .shared-project-card .tcg-relation-card-back { cursor:pointer; }
.public-discover-shell .shared-project-card .card-back-content { pointer-events:auto; }
.public-discover-shell .shared-project-card .tcg-relation-card-back:focus-visible { outline:3px solid #087ebc; outline-offset:3px; }
.public-discover-shell .shared-project-card .card-front[aria-hidden=true],
.public-discover-shell .shared-project-card .card-front[aria-hidden=true] *,
.public-discover-shell .shared-project-card .tcg-relation-card-back[aria-hidden=true],
.public-discover-shell .shared-project-card .tcg-relation-card-back[aria-hidden=true] * { pointer-events:none; }
.public-relationship-main .problem-hand { display:flex; flex-direction:column; }
.draw-card-stage { position:relative; flex:1; display:grid; place-items:center; min-height:450px; padding:30px 0; isolation:isolate; }
.public-relationship-main .draw-card-stage .solution-card-fan { width:100%; position:relative; z-index:2; padding:0; }
.public-relationship-main .draw-card-stage .solution-card-fan > span { animation:deckDrawUp 850ms cubic-bezier(.18,.75,.22,1) calc(var(--hand-index)*110ms) both; }
.draw-deck-stack { position:absolute; z-index:0; width:210px; height:305px; top:50%; left:50%; transform:translate(-50%,-42%) rotate(-7deg); }
.draw-deck-stack i,.draw-deck-stack > span { position:absolute; inset:0; border:2px solid #153454; border-radius:14px; background:repeating-linear-gradient(45deg,#496eae 0 8px,#3e619e 8px 16px); box-shadow:3px 4px 0 #15345440; }
.draw-deck-stack i:nth-child(1) { transform:translate(18px,24px) rotate(9deg); }
.draw-deck-stack i:nth-child(2) { transform:translate(-16px,15px) rotate(-9deg); }
.draw-deck-stack i:nth-child(3) { transform:translate(7px,8px) rotate(3deg); }
.draw-deck-stack > span { display:grid; place-items:center; color:#dcecff; font-size:64px; font-weight:900; }
.draw-spark { position:absolute; z-index:3; top:50%; left:50%; color:#e9ad29; font-size:60px; pointer-events:none; animation:drawSpark 850ms ease-out both; }
@keyframes deckDrawUp { 0% { opacity:0; transform:translate(calc((1 - var(--hand-index))*288px),80px) rotateY(180deg) scale(.75); } 35% { opacity:1; } 70% { transform:translate(0,-18px) rotateY(0deg) scale(1.02); } 100% { opacity:1; transform:none; } }
@keyframes drawSpark { 0% { opacity:0; transform:translate(-50%,-50%) scale(.2) rotate(0); } 30% { opacity:1; } 100% { opacity:0; transform:translate(-50%,-90%) scale(2) rotate(70deg); } }
@media(prefers-reduced-motion:reduce) { .public-relationship-main .draw-card-stage .solution-card-fan > span { animation:none; } .draw-spark { display:none; } }
@media(max-width:980px) { .draw-card-stage { padding:20px 0; } .public-relationship-main .draw-card-stage .solution-card-fan > span { animation-name:mobileDeckDraw; } }
@keyframes mobileDeckDraw { from { opacity:0; transform:translateY(40px) scale(.95); } to { opacity:1; transform:none; } }
.public-discover-shell #discovery-header-menu .relation-view-tabs button { border:1px solid transparent; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button.is-active { color:#111; background:#e3e5f5; border:1px solid #111; border-radius:0; box-shadow:none; }
.public-discover-shell #discovery-header-menu .relation-view-tabs button.is-active:hover { background:#daddf0; color:#111; }
.public-discover-shell .trending-feed-row > span { display:grid; gap:5px; }
.public-discover-shell .trending-feed-row > span > b { font-size:15px; line-height:1.4; }
.public-discover-shell .trending-feed-row > span > small { font-size:13px; line-height:1.4; color:#52667f; }
.public-discover-shell .practice-projects { width:min(100%,1480px); margin:0 auto; padding:20px 24px; background:#f3f6ff; }
.practice-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; }
.practice-toolbar h1 { margin:0; font-size:23px; line-height:1.4; }
.practice-toolbar input { width:min(320px,80vw); min-height:42px; padding:8px 12px; border:1px solid #96a8bd; border-radius:5px; font:inherit; background:white; }
.practice-note { margin:10px 0 14px; color:#52667f; font-size:14px; }
.practice-list { border-top:2px solid #173452; }
.practice-list-head,.practice-list-row { display:grid; grid-template-columns:minmax(180px,1fr) minmax(250px,2fr) minmax(160px,1fr); gap:20px; padding:14px 12px; border-bottom:1px solid #d6dfea; align-items:start; }
.practice-list-head { background:#e7edf8; font-weight:750; }
.practice-list-row { font-size:16px; line-height:1.5; overflow-wrap:anywhere; background:#fff; }
.practice-list-row a { color:#174d83; font-weight:700; text-decoration:none; }
.practice-list-row a:hover { text-decoration:underline; }
@media(max-width:700px) { .practice-list-head { display:none; } .practice-list-row { grid-template-columns:1fr; gap:6px; } .public-discover-shell .practice-projects { padding:16px 12px; } }
.public-discover-shell .shared-project-card .tcg-relation-card-back footer { flex-wrap:wrap; }
.public-discover-shell .shared-project-card .card-gitlab-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:6px 10px; border:1px solid #8196ad; border-radius:7px; color:#174d83; background:#fff; font-size:14px; font-weight:750; text-decoration:none; }
.public-discover-shell .shared-project-card .card-gitlab-link:hover { background:#edf4fc; }
.public-discover-shell .shared-project-card .card-gitlab-link:focus-visible { outline:3px solid #087ebc; outline-offset:2px; }
/* Compact back actions stay on one row inside the fixed card. */
.public-discover-shell .shared-project-card .tcg-relation-card-back footer { display:flex; flex-wrap:nowrap; gap:5px; }
.public-discover-shell .shared-project-card .tcg-relation-card-back footer button,
.public-discover-shell .shared-project-card .tcg-relation-card-back footer .card-gitlab-link { flex:0 0 auto; min-height:34px; padding:5px 7px; font-size:12px; line-height:20px; white-space:nowrap; border-radius:5px; }
/* Random draw table: felt playmat with a restrained inset rim. */
.public-relationship-main .problem-hand { padding:18px; border-left:0; border-bottom:0; background:transparent; gap:16px; }
.public-relationship-main .problem-hand > header { width:100%; max-width:none; margin:0; padding:0 8px; }
.public-relationship-main .draw-card-stage { min-height:500px; padding:48px 18px; border:8px solid #263d49; border-radius:32px; background:radial-gradient(ellipse at 50% 38%,#346e76 0%,#224e59 58%,#183940 100%); box-shadow:inset 0 0 0 2px #799b9670,inset 0 18px 40px #081f2c55,0 8px 16px #17345216; }
.public-relationship-main .draw-card-stage::before { content:''; position:absolute; inset:14px; border:1px solid #c1d6c13d; border-radius:18px; pointer-events:none; background-image:radial-gradient(#ffffff07 .6px,transparent .6px); background-size:4px 4px; }
.public-relationship-main .draw-card-stage::after { content:''; position:absolute; width:260px; height:360px; top:50%; left:50%; transform:translate(-50%,-50%); border:1px solid #c1d6c12b; border-radius:14px; pointer-events:none; }
.public-relationship-main .draw-card-stage .solution-card-fan { gap:22px; }
.public-relationship-main .draw-card-stage .shared-project-card { filter:drop-shadow(0 10px 9px #061e3060); }
.public-relationship-main .draw-deck-stack i,
.public-relationship-main .draw-deck-stack > span { border-color:#a7bbc7; box-shadow:2px 4px 0 #10203080; }
.public-relationship-main .draw-deck-stack > span { color:#d6e3df; }
@media(max-width:980px) {
 .public-relationship-main .problem-hand { padding:12px; }
 .public-relationship-main .draw-card-stage { padding:26px 12px; border-width:5px; border-radius:22px; }
 .public-relationship-main .draw-card-stage .solution-card-fan { gap:22px; }
}

.public-discover-shell .site-header .discover-brand-icon { display:block; width:36px; height:36px; flex:0 0 36px; object-fit:contain; image-rendering:pixelated; }

/* Reserve the full card width; legacy fan/grid rules must never overlap cards. */
.public-discover-shell .public-relationship-main .keyword-card-grid,
.public-discover-shell .public-relationship-main .problem-hand .solution-card-fan {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--project-card-width));
  justify-content: center;
  align-items: start;
  gap: 24px;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: visible;
}
.public-discover-shell .public-relationship-main .keyword-card-grid > span,
.public-discover-shell .public-relationship-main .problem-hand .solution-card-fan > span {
  width: var(--project-card-width);
  min-width: var(--project-card-width);
  margin: 0;
  transform: none;
  animation: none;
}
.public-discover-shell .public-relationship-main .draw-deck-stack,
.public-discover-shell .public-relationship-main .draw-card-stage::after { display: none; }

/* Keep the random-draw work packs in the original full-width single-column rack. */
@media (min-width: 1101px) {
  .public-discover-shell .public-relationship-main.relation-problems .problem-workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .public-discover-shell .public-relationship-main.relation-problems .problem-pack-rack {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
  }
  .public-discover-shell .public-relationship-main.relation-problems .problem-pack-rack button {
    min-height: 82px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }
  .public-discover-shell .public-relationship-main.relation-problems .problem-pack-icon {
    width: 46px;
    font-size: 24px;
  }
  .public-discover-shell .public-relationship-main.relation-problems .problem-pack-copy b {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .public-discover-shell .public-relationship-main.relation-problems .relation-view-stage {
    overflow: hidden;
  }
}
@media (min-width: 1101px) and (max-height: 950px) {
  .public-discover-shell .public-relationship-main.relation-problems .problem-pack-rack {
    gap: 5px;
    padding: 8px 12px;
  }
  .public-discover-shell .public-relationship-main.relation-problems .problem-pack-rack button {
    min-height: 60px;
    padding: 6px 10px;
  }
}

@media (min-width: 1101px) {
  .public-discover-shell .public-relationship-main.relation-discover .relation-view-stage,
  .public-discover-shell .public-relationship-main.relation-trending .relation-view-stage {
    overflow: hidden;
  }
  .public-discover-shell .public-relationship-main.relation-trending .trending-view {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
  }
  .public-discover-shell .public-relationship-main.relation-discover .discovery-feed {
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
  }
}
@media (min-width: 1101px) and (max-width: 1599px) {
  .public-discover-shell .public-relationship-main.relation-discover .discovery-feed-card:nth-child(n + 9) {
    display: none;
  }
  .public-discover-shell .public-relationship-main.relation-discover .discovery-feed-grid {
    row-gap: 6px;
  }
}
@media (min-width: 1101px) and (max-height: 950px) {
  .public-discover-shell .public-relationship-main.relation-trending .trending-feed {
    grid-auto-rows: minmax(44px, 1fr);
    gap: 4px;
    min-height: 0;
  }
  .public-discover-shell .public-relationship-main.relation-trending .trending-feed-row {
    min-height: 44px;
  }
}
.public-relationship-main .keyword-tag-rack { max-height: 142px; overflow-y: auto; }
.public-relationship-main .tag-catalog-board { background: transparent; padding: 16px; }
.tag-catalog-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.tag-catalog-toolbar h3 { margin: 0; font-size: 22px; }
.tag-catalog-toolbar label { display: inline-flex; align-items: center; gap: 6px; }
.tag-catalog-toolbar select, .tag-catalog-toolbar button, .tag-pagination button { min-height: 36px; padding: 5px 10px; border: 1px solid #899cb6; border-radius: 6px; background: white; color: #153454; font: inherit; cursor: pointer; }
.tag-view-toggle { display: flex; gap: 4px; }
.tag-view-toggle button[aria-pressed=true], .tag-pagination button[aria-current=page] { color: #111; background: #e3e5f5; border-color: #111; font-weight: 800; }
.tag-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; }
.tag-pagination button:disabled { opacity: .45; cursor: default; }
.tag-pagination .page-gap { padding: 0 5px; }
.tag-catalog-board > .tag-pagination { margin-top: 20px; }
.tag-list-wrap { overflow-x: auto; }
.tag-project-list { border-collapse: collapse; width: 100%; font-size: 16px; background: white; }
.tag-project-list th, .tag-project-list td { border-bottom: 1px solid #d0d9e6; text-align: left; padding: 12px; line-height: 1.45; }
.tag-project-list thead { background: #e8eef8; }
.tag-project-list th[scope=row] { min-width: 170px; max-width: 290px; }
.tag-project-list td:nth-child(2) { min-width: 250px; }
.tag-project-list td:nth-child(4), .tag-project-list td:nth-child(5) { white-space: nowrap; }
.tag-project-list button { text-align: left; color: #173f6d; font: inherit; font-weight: 750; background: transparent; border: 0; padding: 0; cursor: pointer; }
.tag-project-list a { color: #173f6d; }
@media(max-width:600px) { .tag-catalog-toolbar { gap: 8px; } .tag-catalog-toolbar > .tag-pagination { width: 100%; } }
.discovery-feed { color: #172337; font-size: 16px; }
.discovery-feed button, .discovery-feed a { touch-action: manipulation; }
.discovery-feed button { min-height: 44px; padding: 9px 15px; border: 1px solid #8196ad; border-radius: 8px; background: #fff; color: #193555; font: inherit; font-weight: 650; cursor: pointer; }
.discovery-feed button:hover { background: #eef5fd; }
.discovery-feed button:focus-visible, .discovery-feed a:focus-visible, .discovery-feed summary:focus-visible { outline: 3px solid #175bc0; outline-offset: 3px; }
.discovery-feed-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; background: #f2f7fc; border-radius: 12px; }
.discovery-feed-heading h2 { margin: 0 0 8px; font-size: 26px; }
.discovery-feed-heading p { margin: 0; line-height: 1.65; }
.discovery-feed-heading > button { flex-shrink: 0; background: #153e72; color: #fff; }
.discovery-feed-heading > button:hover { background: #21558c; }
.discovery-feed-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.discovery-feed-toolbar button[aria-pressed=true], .discovery-feed button.is-saved { background: #e2efff; border-color: #2265ad; color: #143e73; }
.discovery-feed-toolbar > span { margin-left: auto; }
.discovery-feed-note { line-height: 1.65; margin: 0 0 20px; color: #43556b; }
.discovery-feed-undo { padding: 12px; background: #fff1cc; }
.discovery-feed-empty { padding: 36px 16px; text-align: center; line-height: 1.7; }
.relation-view-tabs.is-six { grid-template-columns: repeat(6,minmax(0,1fr)); }
@media(min-width: 1101px) { .public-relationship-main .relation-view-tabs.is-six { grid-template-columns: minmax(0,1fr); } }

.discovery-feed-heading { padding: 12px 0; background: none; }
.discovery-feed-heading h2 { font-size: 22px; }
.discovery-detail { width: min(640px,calc(100vw - 32px)); max-height: 85dvh; box-sizing: border-box; padding: 28px; border: 2px solid #172337; border-radius: 16px; color: #172337; background: #fffdf7; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.discovery-detail::backdrop { background: #10203399; }
.discovery-detail h2 { font-size: 24px; line-height: 1.4; }
.discovery-detail h3 { margin-bottom: 5px; font-size: 17px; }
.discovery-detail p { margin-top: 5px; }
.discovery-detail li { margin: 6px 0; }
.discovery-detail a { display: inline-block; padding: 12px 0; color: #1658b4; font-weight: 700; }
.discovery-detail-close { display: block; margin-left: auto; }
@media(max-width: 700px) {
 .discovery-feed-heading { align-items: stretch; flex-direction: column; gap: 12px; }
 .discovery-feed-toolbar > span { width: 100%; margin: 0; }
 .relation-view-tabs.is-six { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .discovery-detail { padding: 20px; }
}
@media(prefers-reduced-motion: reduce) {
}

/* Content determines card height; controls share a compact wrapping row. */
.discovery-feed-heading { justify-content: flex-start; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin-bottom: 6px; }
.discovery-feed-heading h2 { margin: 0; font-size: 20px; }
.discovery-feed-toolbar { margin: 0; gap: 6px; }
.discovery-feed-toolbar > span { margin: 0 4px; width: auto; font-size: 14px; }
.discovery-feed-note { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
@media(max-width: 700px) {
 .discovery-feed-heading { flex-direction: row; align-items: center; gap: 6px; }
 .discovery-feed-heading h2 { font-size: 18px; }
 .discovery-feed-toolbar { gap: 4px; }
 .discovery-feed-toolbar button { padding: 6px 8px; font-size: 14px; }
}
.discovery-feed .discovery-feed-card { position: relative; }
.discovery-feed .discovery-card-heart { position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #10203340; border-radius: 50%; background: rgb(255 255 255 / 65%); color: #42546b; box-shadow: 0 2px 5px #10203320; }
.discovery-feed .discovery-card-heart svg { width: 23px; height: 23px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; }
.discovery-feed .discovery-card-heart.is-saved { color: #c02d57; border-color: #c02d57; background: rgb(255 240 244 / 70%); }
.discovery-feed .discovery-card-heart.is-saved svg { fill: currentColor; }
.discovery-feed .discovery-card-heart:hover { background: rgb(255 227 235 / 85%); color: #c02d57; }
.discovery-feed .tcg-card-art > i { right: auto; left: .38rem; }
.discovery-feed .shared-project-card .tcg-relation-card-back { padding-top: 62px; }
.discovery-feed .discovery-feed-card > .discovery-card-heart { top: 18px; right: 18px; }

.public-relationship-main .discovery-feed-grid { row-gap: 12px; }
@font-face {
  font-family: "A2Z";
  src: url("/fonts/A2Z-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "A2Z";
  src: url("/fonts/A2Z-Medium.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "A2Z";
  src: url("/fonts/A2Z-Bold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  font-family: "A2Z", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  color: #111111;
  background: #f4efe5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #111111;
  --muted: #665f56;
  --paper: #f4efe5;
  --cream: #fff9e8;
  --line: #d6cdbd;
  --page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); line-break: strict; overflow-wrap: break-word; word-break: keep-all; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline: 3px solid #79dcef; outline-offset: 3px; }
img { display: block; max-width: 100%; }

:where(h1, h2, h3, .showcase-lead, .card-copy-panel > b, .back-summary, .section-heading > p, .page-intro > p, .system-spec > p, .system-rules span, .binder-info > em, .dialog-lead, .related-cards header p) {
  text-wrap: balance;
}

:where(p, .back-section > span, .showcase-rule p, .lineage-row header p, .preset-card p, .dialog-summary, .dialog-facts span) {
  orphans: 2;
  text-wrap: pretty;
  widows: 2;
}

.app-shell { min-height: 100vh; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .65rem .9rem; color: #fff; background: #111; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 2rem; padding: .8rem max(1.25rem, calc((100vw - var(--page)) / 2)); border-bottom: 2px solid #111; background: #fff9e8; }
.brand { display: flex; align-items: center; gap: .75rem; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.brand-seal { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border: 2px solid #111; border-radius: 11px; color: #fff9e8; background: #008f79; font-size: 1.25rem; font-weight: 800; }
.brand > span:last-child { display: grid; gap: .1rem; }
.brand b { font-size: .98rem; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: .64rem; }
.site-header nav { display: flex; align-items: center; gap: .35rem; }
.site-header nav button { display: flex; height: 40px; align-items: center; gap: .38rem; padding: 0 .75rem; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 700; }
.site-header nav button:hover { background: #eee6d8; }
.site-header nav button.is-active { color: #111; background: #f4e84a; }
.deck-count { display: grid; min-width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: .58rem; }
.work-nav-menu { position: relative; }
.work-nav-menu summary { display: flex; height: 40px; align-items: center; gap: .38rem; padding: 0 .75rem; border-radius: 8px; cursor: pointer; list-style: none; font-size: .72rem; font-weight: 700; }
.work-nav-menu summary::-webkit-details-marker { display: none; }
.work-nav-menu summary:hover { background: #eee6d8; }
.work-nav-menu.is-active summary { background: #79dcef; }
.work-nav-menu summary > span { display: grid; width: 1.25rem; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: .56rem; }
.work-nav-menu > div { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: grid; width: 180px; gap: 4px; padding: 7px; border: 1.5px solid #111; border-radius: 9px; background: #fff9e8; box-shadow: 6px 6px 0 #111; }
.site-header nav .work-nav-menu > div button { width: 100%; justify-content: flex-start; background: #e9e2d6; }
.site-header nav .work-nav-menu > div button.is-active { background: #f4e84a; }

/* Shared headings and controls */
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: #008f79; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: .35rem 0 0; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.055em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.page-intro { max-width: var(--page); margin: 0 auto; padding: 4.5rem 1.5rem 2.75rem; }
.page-intro h1 { max-width: 820px; margin: .5rem 0 .85rem; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; letter-spacing: -.065em; }
.page-intro p { max-width: 720px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.secondary-main { min-height: 70vh; }

/* Final AB card */
.project-card-object { --field: #008f79; --tag: #ff8a5b; --label: #fff4d6; --card-ink: #111; position: relative; width: min(360px, 86vw); aspect-ratio: 63 / 88; cursor: pointer; perspective: 1400px; }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 560ms cubic-bezier(.2,.72,.2,1); }
.project-card-object.is-flipped .card-inner { transform: rotateY(180deg); animation: gameCardSpinToBack 560ms cubic-bezier(.2,.72,.2,1) both; }
.project-card-object.is-returning .card-inner { transform: rotateY(0deg); animation: gameCardSpinToFront 560ms cubic-bezier(.2,.72,.2,1) both; }
.project-card-object::after, .tcg-flip-shell::after { content: ""; position: absolute; inset: -6%; z-index: 8; border-radius: 18px; background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.82) 48%, transparent 68%); pointer-events: none; opacity: 0; transform: translateX(-130%) skewX(-12deg); }
@keyframes gameCardSpinToBack { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
@keyframes gameCardSpinToFront { from { transform: rotateY(180deg); } to { transform: rotateY(0deg); } }
.card-side { position: absolute; inset: 0; display: block; overflow: hidden; border: 2px solid #111; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-front { display: grid; grid-template-rows: minmax(0,1fr) 130px; gap: 12px; padding: 12px; color: var(--card-ink); background: var(--field); }
.card-art-panel { position: relative; display: block; min-height: 0; overflow: hidden; border-radius: 12px 12px 8px 8px; background: var(--label); }
.card-art-panel img { width: 100%; height: 100%; object-fit: cover; }
.card-status, .card-number { position: absolute; top: 11px; z-index: 2; display: grid; min-height: 25px; align-items: center; padding: 0 8px; border-radius: 4px; box-shadow: 0 3px 10px rgba(17,17,17,.16); font-size: .56rem; font-style: normal; font-weight: 800; }
.card-status { left: 11px; background: var(--tag); }
.card-number { right: 11px; background: var(--label); }
.card-copy-panel { position: relative; display: grid; min-height: 0; grid-template-rows: auto auto 1fr auto; align-content: start; padding: 13px 15px 11px; overflow: hidden; border-radius: 8px; background: var(--label); }
.card-copy-panel > small { color: var(--field); font-size: .58rem; font-weight: 800; letter-spacing: .05em; }
.card-copy-panel > strong { margin-top: 3px; overflow: hidden; font-size: clamp(1.1rem, 5.2vw, 1.45rem); line-height: 1.05; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.project-card-object.has-long-title .card-copy-panel > strong { display: -webkit-box; font-size: 1rem; line-height: 1.08; text-overflow: clip; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-card-object.is-task .card-copy-panel > strong { display: -webkit-box; line-height: 1.08; text-overflow: clip; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-copy-panel > b { align-self: center; color: #37322c; font-size: .69rem; font-weight: 600; line-height: 1.35; }
.card-copy-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 7px; border-top: 1px solid color-mix(in srgb, var(--field) 30%, transparent); }
.card-copy-foot i { color: var(--field); font-size: .54rem; font-style: normal; font-weight: 800; }
.project-card-object.is-planned .card-art-panel::after { content: "NEXT"; position: absolute; right: 11px; bottom: 11px; padding: 5px 7px; border-radius: 4px; color: #fff; background: #111; font-size: .52rem; font-weight: 800; letter-spacing: .08em; }

.card-back { padding: 10px; background: var(--field); transform: rotateY(180deg); }
.card-back-panel { display: grid; width: 100%; height: 100%; align-content: start; gap: 9px; padding: 17px 17px 14px; overflow: hidden; border-radius: 9px; background: var(--label); }
.project-card-object.is-task .card-back-panel { gap: 5px; padding: 11px 14px 9px; }
.back-heading { display: block; padding-bottom: 10px; border-bottom: 2px solid color-mix(in srgb, var(--field) 35%, transparent); }
.project-card-object.is-task .back-heading { padding-bottom: 6px; }
.back-heading small, .back-heading strong, .back-heading span { display: block; }
.back-heading small { color: var(--field); font-size: .56rem; font-weight: 800; letter-spacing: .05em; }
.back-heading strong { margin-top: 4px; font-size: 1.3rem; line-height: 1.05; letter-spacing: -.05em; }
.back-heading span { margin-top: 5px; color: #5b544b; font-size: .58rem; font-weight: 700; }
.back-summary { padding: 10px 11px; border-radius: 6px; background: var(--tag); font-size: .79rem; font-weight: 800; line-height: 1.48; }
.project-card-object.is-task .back-summary { padding: 7px 9px; }
.back-section { display: block; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--field) 25%, transparent); }
.project-card-object.is-task .back-section { padding-bottom: 5px; }
.back-section small, .back-section b, .back-section > span { display: block; }
.back-section small { margin-bottom: 3px; color: var(--field); font-size: .56rem; font-weight: 800; }
.back-section b { margin-bottom: 3px; font-size: .78rem; line-height: 1.3; }
.back-section > span { color: #37322c; font-size: .74rem; line-height: 1.48; }
.inheritance-list { display: flex !important; flex-wrap: wrap; gap: 4px; }
.inheritance-list i { padding: 3px 5px; border-radius: 3px; color: #28241f; background: color-mix(in srgb, var(--field) 12%, #fff); font-size: .55rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.back-source { align-self: end; display: grid; gap: 3px; min-width: 0; }
.back-source small { color: var(--field); font-size: .54rem; font-weight: 800; }
.back-source b { overflow: hidden; color: #514b44; font-size: .55rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* Selected card area */
.showcase { position: relative; display: grid; max-width: var(--page); grid-template-columns: 390px minmax(0,1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 1.5rem; }
.showcase::after { content: ""; position: absolute; top: 0; right: 1.5rem; left: 1.5rem; height: 10px; border-radius: 0 0 8px 8px; background: var(--tag); }
.showcase-card-column { display: grid; justify-items: center; gap: 1rem; }
.physical-note { display: flex; width: min(360px,86vw); align-items: baseline; justify-content: space-between; gap: .6rem; }
.physical-note span { color: var(--field); font-size: .6rem; font-weight: 800; }
.physical-note b { font-size: .82rem; }
.physical-note small { color: var(--muted); font-size: .57rem; }
.flip-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: .45rem; padding: 0 .9rem; border: 1.5px solid #111; border-radius: 7px; background: #fff9e8; cursor: pointer; font-size: .7rem; font-weight: 800; }
.flip-button:hover { color: #fff; background: #111; }
.showcase-copy { max-width: 650px; }
.showcase-copy h1 { margin: .55rem 0 .8rem; font-size: clamp(2.55rem, 6vw, 5.3rem); line-height: .95; letter-spacing: -.07em; }
.showcase-lead { margin: 0 0 1rem !important; color: var(--field) !important; font-size: clamp(1.15rem, 2.3vw, 1.55rem) !important; font-weight: 800; line-height: 1.35 !important; }
.showcase-copy > p { max-width: 630px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.showcase-actions button, .preset-card button, .text-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .4rem; padding: 0 1rem; border: 1.5px solid #111; border-radius: 7px; background: #fff9e8; cursor: pointer; font-size: .72rem; font-weight: 800; }
.showcase-actions button:first-child { background: var(--tag); }
.showcase-actions button.is-active { color: #fff; background: #111; }
.showcase-rule { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 2rem; }
.showcase-rule div { padding: 1rem; border-radius: 8px; background: #fff9e8; }
.showcase-rule span { display: inline-grid; min-width: 2.8rem; height: 1.45rem; place-items: center; border-radius: 4px; color: #fff; background: var(--field); font-size: .58rem; font-weight: 800; }
.showcase-rule p { margin: .65rem 0 0; color: #514b44; font-size: .7rem; line-height: 1.5; }
.showcase-evolution { margin-top: 1rem; padding: 1rem; border-radius: 8px; background: color-mix(in srgb, var(--field) 9%, #fff9e8); }
.showcase-evolution > span { color: var(--field); font-size: .62rem; font-weight: 800; }
.showcase-evolution > div { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; }
.evolution-node { display: inline-flex; align-items: center; gap: .4rem; }
.evolution-node button { padding: .35rem .48rem; border: 0; border-radius: 4px; background: transparent; cursor: pointer; font-size: .62rem; font-weight: 700; }
.evolution-node button.is-current { color: #fff; background: var(--field); }

/* Binder */
.collection-section, .deck-section, .preset-section, .lineage-list, .art-library-section { max-width: var(--page); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 1.5rem; border-top: 1px solid var(--line); }
.collection-tools { display: grid; grid-template-columns: minmax(230px,.58fr) minmax(0,1.42fr); gap: 1rem; align-items: center; margin-bottom: 1.35rem; }
.search-field { display: flex; height: 44px; align-items: center; gap: .55rem; padding: 0 .8rem; border: 1.5px solid #111; border-radius: 7px; background: #fff9e8; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: #111; background: transparent; font-size: .74rem; }
.search-field input::placeholder { color: #8c8377; }
.type-tabs { display: flex; min-width: 0; gap: .35rem; overflow-x: auto; padding-bottom: 2px; }
.type-tabs button { flex: 0 0 auto; height: 36px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; font-size: .63rem; font-weight: 700; }
.type-tabs button.is-active { border-color: #111; background: #f4e84a; }
.binder-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(.75rem, 1.4vw, 1.1rem); }
.binder-pocket { --field: #008f79; --tag: #ff8a5b; --label: #fff4d6; position: relative; min-width: 0; aspect-ratio: 63 / 88; }
.binder-card { display: grid; width: 100%; height: 100%; grid-template-rows: minmax(0,1fr) 92px; gap: 7px; padding: 7px; overflow: hidden; border: 2px solid #111; border-radius: 10px; background: var(--field); cursor: pointer; text-align: left; transition: transform 160ms ease, box-shadow 160ms ease; }
.binder-card:hover { transform: translateY(-5px); box-shadow: 0 12px 0 color-mix(in srgb, var(--field) 28%, transparent); }
.binder-pocket.is-selected .binder-card { box-shadow: 0 0 0 4px var(--tag); }
.binder-image { position: relative; min-height: 0; overflow: hidden; border-radius: 7px 7px 4px 4px; background: var(--label); }
.binder-image img { width: 100%; height: 100%; object-fit: cover; }
.binder-image > i { position: absolute; top: 7px; right: 7px; padding: 4px 5px; border-radius: 3px; background: var(--label); font-size: .47rem; font-style: normal; font-weight: 800; }
.binder-info { display: grid; min-width: 0; grid-template-rows: auto auto 1fr auto; padding: 8px 9px 7px; overflow: hidden; border-radius: 4px; background: var(--label); }
.binder-info > small { color: var(--field); font-size: .43rem; font-weight: 800; }
.binder-info > b { margin-top: 2px; overflow: hidden; font-size: clamp(.62rem, .88vw, .76rem); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.binder-pocket.is-task .binder-info > b { display: -webkit-box; line-height: 1.18; text-overflow: clip; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.binder-info > em { align-self: center; display: -webkit-box; overflow: hidden; color: #5b544b; font-size: .48rem; font-style: normal; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.binder-info > span { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; border-top: 1px solid color-mix(in srgb, var(--field) 28%, transparent); }
.binder-info > span i { display: grid; width: 17px; aspect-ratio: 1; place-items: center; border-radius: 3px; color: #fff; background: var(--field); font-size: .42rem; font-style: normal; font-weight: 800; }
.binder-info > span small { color: var(--field); font-size: .43rem; font-weight: 800; }
.binder-deck { position: absolute; right: -5px; bottom: -5px; z-index: 3; display: grid; width: 31px; aspect-ratio: 1; place-items: center; padding: 0; border: 1.5px solid #111; border-radius: 50%; background: #fff9e8; cursor: pointer; }
.binder-deck[aria-pressed="true"] { color: #fff; background: #111; }
.empty-state { display: grid; min-height: 220px; place-items: center; align-content: center; gap: .45rem; border: 1px dashed #aaa092; border-radius: 10px; color: var(--muted); text-align: center; }
.empty-state b { color: #111; }
.empty-state span { font-size: .72rem; }

/* Lineage */
.lineage-list { display: grid; gap: 3rem; padding-top: 2rem; }
.lineage-row > header { display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: 1rem; padding: 1rem 0 1.4rem; }
.lineage-row > header > span { color: #008f79; font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.lineage-row h2 { margin: 0 0 .45rem; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.045em; }
.lineage-row header p { max-width: 760px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.lineage-card-track { display: flex; align-items: center; gap: .7rem; padding: 1rem; overflow-x: auto; border-radius: 12px; background: #e9e2d6; }
.lineage-card-step { display: flex; flex: 0 0 auto; align-items: center; gap: .7rem; }
.lineage-mini-card { --field: #008f79; --tag: #ff8a5b; --label: #fff4d6; display: grid; width: 178px; aspect-ratio: 63 / 88; grid-template-rows: minmax(0,1fr) 68px; gap: 7px; padding: 7px; overflow: hidden; border: 2px solid #111; border-radius: 10px; background: var(--field); cursor: pointer; text-align: left; }
.lineage-mini-card.is-current { box-shadow: 0 0 0 4px var(--tag); }
.lineage-mini-image { position: relative; overflow: hidden; border-radius: 7px 7px 4px 4px; }
.lineage-mini-image img { width: 100%; height: 100%; object-fit: cover; }
.lineage-mini-image small { position: absolute; top: 6px; right: 6px; padding: 4px 5px; border-radius: 3px; background: var(--label); font-size: .44rem; font-weight: 800; }
.lineage-mini-copy { display: grid; min-width: 0; padding: 8px; border-radius: 4px; background: var(--label); }
.lineage-mini-copy b { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.lineage-mini-copy i { align-self: end; overflow: hidden; color: var(--field); font-size: .48rem; font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.lineage-arrow { display: grid; place-items: center; color: #796f63; }
.lineage-arrow small { font-size: .5rem; font-weight: 700; }

/* Decks */
.deck-section { padding-top: 2rem; }
.preset-section { padding-top: 4rem; }
.text-button { min-height: 36px; background: transparent; }
.preset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.preset-card { display: grid; min-height: 255px; grid-template-columns: 42% 1fr; align-items: center; gap: 1.4rem; padding: 1.4rem; border: 1.5px solid #111; border-radius: 12px; background: #fff9e8; }
.preset-card > div:last-child > small { color: #008f79; font-size: .62rem; font-weight: 800; }
.preset-card h3 { margin: .4rem 0 .55rem; font-size: 1.4rem; letter-spacing: -.04em; }
.preset-card p { margin: 0 0 1rem; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.preset-card button { background: #f4e84a; }
.preset-fan { position: relative; height: 185px; }
.preset-fan span { --i: 0; position: absolute; top: 8px; left: 50%; width: 105px; aspect-ratio: 63 / 88; padding: 5px; overflow: hidden; border: 1.5px solid #111; border-radius: 7px; background: var(--field); transform: translateX(calc(-50% + (var(--i) - 1.5) * 18px)) rotate(calc((var(--i) - 1.5) * 7deg)); transform-origin: 50% 110%; }
.preset-fan span img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Card system */
.card-system-main .page-intro { padding-bottom: 3rem; }
.system-preview-section { display: grid; max-width: var(--page); grid-template-columns: 390px minmax(0,1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; margin: 0 auto; padding: 1rem 1.5rem 6rem; }
.system-preview-card { display: grid; justify-items: center; gap: 1rem; }
.system-spec h2 { margin: .8rem 0 .7rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.06em; }
.system-spec > p { max-width: 650px; margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.7; }
.spec-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .65rem; border-radius: 5px; color: #fff; background: #111; font-size: .62rem; font-weight: 800; }
.palette-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin-top: 1.5rem; }
.palette-options button { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: .75rem; min-height: 66px; padding: .55rem; border: 1px solid var(--line); border-radius: 8px; background: #fff9e8; cursor: pointer; text-align: left; }
.palette-options button.is-selected { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.palette-swatches { display: grid; height: 44px; grid-template-columns: 1.2fr .8fr .65fr; overflow: hidden; border-radius: 5px; }
.palette-swatches i { display: block; }
.palette-options button > span:last-child { display: grid; gap: .2rem; min-width: 0; }
.palette-options b { font-size: .72rem; }
.palette-options small { overflow: hidden; color: var(--muted); font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.system-rules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin-top: .75rem; }
.system-rules > div { display: grid; grid-template-columns: 2rem minmax(0,1fr); gap: .65rem; align-items: start; padding: .8rem; border-radius: 8px; background: #e9e2d6; }
.system-rules > div > b { color: #008f79; font-size: .68rem; }
.system-rules span { color: var(--muted); font-size: .63rem; line-height: 1.45; }
.system-rules strong { display: block; margin-bottom: .15rem; color: #111; font-size: .7rem; }
.art-library-section { padding-top: 4rem; }
.art-library-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .8rem; }
.art-library-grid button { --field: #008f79; --label: #fff4d6; display: grid; min-width: 0; grid-template-rows: auto auto auto; gap: .35rem; padding: 7px 7px 10px; border: 1.5px solid #111; border-radius: 9px; background: var(--field); cursor: pointer; text-align: left; }
.art-library-grid button.is-current { box-shadow: 0 0 0 4px var(--tag); }
.art-library-grid button > span { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; }
.art-library-grid img { width: 100%; height: 100%; object-fit: cover; }
.art-library-grid i { position: absolute; top: 6px; right: 6px; padding: 3px 4px; border-radius: 3px; background: var(--label); font-size: .43rem; font-style: normal; font-weight: 800; }
.art-library-grid b, .art-library-grid small { overflow: hidden; padding: 0 4px; color: var(--label); text-overflow: ellipsis; white-space: nowrap; }
.art-library-grid b { margin-top: 3px; font-size: .66rem; }
.art-library-grid small { font-size: .49rem; opacity: .85; }

/* Project art V3 pilot */
.art-v3-main { padding-bottom: 2rem; }
.pilot-intro { display: grid; max-width: var(--page); grid-template-columns: minmax(0,.9fr) minmax(0,1fr); gap: 3rem; align-items: end; margin: 0 auto; padding: 3.2rem 1.5rem 2rem; }
.pilot-intro h1 { margin: .45rem 0 0; font-size: clamp(2.15rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -.06em; }
.pilot-intro > p { max-width: 610px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.pilot-bible { display: grid; max-width: calc(var(--page) - 3rem); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 0 auto 4.5rem; overflow: hidden; border-radius: 10px; background: #111; }
.pilot-bible > div { display: grid; gap: .35rem; min-height: 102px; align-content: center; padding: 1rem 1.2rem; background: #e9e2d6; }
.pilot-bible b { color: #008f79; font-size: .68rem; }
.pilot-bible span { color: #4e4840; font-size: .65rem; line-height: 1.55; }
.pilot-gallery { max-width: var(--page); margin: 0 auto; padding: 0 1.5rem 5rem; }
.pilot-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.pilot-item { display: grid; min-width: 0; grid-template-columns: minmax(190px,220px) minmax(0,1fr); gap: 1.2rem; align-items: center; padding: 1rem; border-radius: 12px; background: #fff9e8; box-shadow: inset 0 0 0 1px #d6cdbd; }
.pilot-card-preview { display: grid; width: 100%; aspect-ratio: 63 / 88; grid-template-rows: minmax(0,1fr) 98px; gap: 9px; padding: 9px; overflow: hidden; border: 2px solid #111; border-radius: 10px; background: var(--field); }
.pilot-card-art { position: relative; min-height: 0; overflow: hidden; border-radius: 9px 9px 6px 6px; background: var(--label); }
.pilot-card-art > img { width: 100%; height: 100%; object-fit: cover; }
.pilot-card-art > i, .pilot-card-art > b { position: absolute; top: 7px; padding: 4px 5px; border-radius: 3px; color: #111; background: var(--label); font-size: .45rem; font-style: normal; font-weight: 800; line-height: 1; }
.pilot-card-art > i { left: 7px; }
.pilot-card-art > b { right: 7px; }
.pilot-card-copy { display: grid; min-height: 0; grid-template-rows: auto auto 1fr; align-content: start; padding: 9px 10px 8px; overflow: hidden; border-radius: 6px; background: var(--label); }
.pilot-card-copy small { color: var(--field); font-size: .47rem; font-weight: 800; }
.pilot-card-copy strong { margin-top: 2px; overflow: hidden; font-size: .95rem; line-height: 1.05; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.pilot-card-copy > span { align-self: center; display: -webkit-box; overflow: hidden; color: #484138; font-size: .53rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pilot-meta { min-width: 0; }
.pilot-relation { display: inline-flex; padding: .32rem .48rem; border-radius: 4px; color: #111; background: var(--tag); font-size: .55rem; font-weight: 800; }
.pilot-meta > p { min-height: 4.6em; margin: .65rem 0 .8rem; color: #514a42; font-size: .68rem; line-height: 1.55; }
.pilot-formula { padding: .75rem; border-radius: 8px; background: #e9e2d6; }
.pilot-formula > small, .pilot-motifs > small { display: block; margin-bottom: .45rem; color: var(--field); font-size: .52rem; font-weight: 800; }
.pilot-formula > div { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.pilot-formula span { display: inline-flex; align-items: center; gap: .25rem; }
.pilot-formula span b, .pilot-formula > div > strong { padding: .27rem .36rem; border-radius: 4px; background: #fff9e8; font-size: .49rem; line-height: 1.25; }
.pilot-formula span i { color: #8b8174; font-size: .55rem; font-style: normal; font-weight: 800; }
.pilot-formula > div > em { margin-inline: .1rem; color: var(--field); font-size: .8rem; font-style: normal; font-weight: 800; }
.pilot-formula > div > strong { color: #fff; background: var(--field); }
.pilot-direct-flow > div { gap: .35rem; }
.pilot-direct-flow span { gap: .35rem; }
.pilot-direct-flow span em { color: var(--field); font-size: .72rem; font-style: normal; font-weight: 800; }
.pilot-direct-flow span b { color: #fff; background: var(--field); }
.pilot-motifs { margin-top: .7rem; }
.pilot-motifs > span { display: flex; flex-wrap: wrap; gap: .3rem; }
.pilot-motifs i { padding: .28rem .38rem; border-radius: 4px; color: #4f483f; background: color-mix(in srgb, var(--tag) 32%, #fff9e8); font-size: .48rem; font-style: normal; font-weight: 700; }
.ontology-key { max-width: calc(var(--page) - 3rem); margin: 0 auto; overflow: hidden; border-radius: 12px; color: #fff9e8; background: #111; }
.ontology-key > header { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(0,1fr); gap: 1.5rem 3rem; align-items: end; padding: 2rem; }
.ontology-key > header .eyebrow { grid-column: 1 / -1; color: #79dcef; }
.ontology-key h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.055em; }
.ontology-key header p { margin: 0; color: #c9c0b3; font-size: .72rem; line-height: 1.65; }
.ontology-key > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #4c4740; }
.ontology-key article { display: grid; min-height: 145px; align-content: start; padding: 1rem; border-right: 1px solid #4c4740; }
.ontology-key article:last-child { border-right: 0; }
.ontology-key article > span { color: #79dcef; font-size: .55rem; font-weight: 800; }
.ontology-key article > b { margin-top: 1rem; color: #f4e84a; font-size: .9rem; }
.ontology-key article > p { margin: .4rem 0 0; color: #c9c0b3; font-size: .58rem; line-height: 1.55; }

/* Click-through card detail window */
.card-dialog-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(17,17,17,.7); }
.card-dialog { width: min(1080px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow: auto; border: 2px solid #111; border-radius: 14px; background: #f4efe5; box-shadow: 12px 12px 0 rgba(17,17,17,.35); }
.card-dialog-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.25rem; border-bottom: 2px solid #111; background: #fff9e8; }
.card-dialog-head h2 { margin: .25rem 0 0; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -.055em; }
.card-dialog-head > button { display: inline-flex; min-height: 38px; align-items: center; gap: .45rem; padding: 0 .7rem; border: 1.5px solid #111; border-radius: 6px; background: #f4e84a; cursor: pointer; font-size: .68rem; font-weight: 800; }
.card-dialog-head > button span { font-size: 1.1rem; line-height: 1; }
.card-dialog-body { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: 1.75rem; }
.card-dialog-card { display: grid; justify-items: center; gap: .8rem; }
.card-dialog-card .project-card-object { width: min(300px, 72vw); }
.card-dialog-copy { display: grid; align-content: start; }
.dialog-status { color: #008f79; font-size: .64rem; font-weight: 800; letter-spacing: .04em; }
.dialog-lead { max-width: 620px; margin: .55rem 0 .75rem; font-size: clamp(1.25rem, 3vw, 1.85rem); font-weight: 800; line-height: 1.28; letter-spacing: -.035em; }
.dialog-summary { max-width: 660px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.dialog-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin-top: 1.25rem; }
.dialog-facts > div { display: grid; align-content: start; gap: .25rem; padding: .8rem; border-radius: 8px; background: #fff9e8; }
.dialog-facts > div:first-child { grid-row: span 2; background: #79dcef; }
.dialog-facts small { color: #008f79; font-size: .72rem; font-weight: 800; }
.dialog-facts b { font-size: .96rem; }
.dialog-facts span { color: #4e4840; font-size: .9rem; line-height: 1.58; }
.dialog-inheritance { display: flex; flex-wrap: wrap; gap: 4px; }
.dialog-inheritance i { padding: 3px 5px; border-radius: 3px; color: #111; background: #e9e2d6; font-size: .53rem; font-style: normal; font-weight: 700; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.dialog-actions button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: .4rem; padding: 0 .8rem; border: 1.5px solid #111; border-radius: 7px; background: #fff9e8; cursor: pointer; font-size: .66rem; font-weight: 800; }
.dialog-actions button:first-child { background: #f4e84a; }
.dialog-actions button.is-active { color: #fff; background: #111; }
.dialog-actions button.is-editing { color: #fff; background: #008f79; }
.copy-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; padding: 1rem; border: 1.5px solid #111; border-radius: 10px; background: #fff9e8; box-shadow: 5px 5px 0 #79dcef; }
.copy-editor label { display: grid; min-width: 0; gap: .38rem; }
.copy-editor label.is-wide { grid-column: 1 / -1; }
.copy-editor label > span { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #008f79; font-size: .78rem; font-weight: 800; }
.copy-editor label > span small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.copy-editor input,
.copy-editor textarea { width: 100%; min-width: 0; border: 1.5px solid #857c70; border-radius: 6px; color: #111; background: #fff; font-size: 1rem; line-height: 1.55; }
.copy-editor input { min-height: 46px; padding: .65rem .75rem; }
.copy-editor textarea { min-height: 104px; padding: .7rem .75rem; resize: vertical; }
.copy-editor-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.copy-editor-actions button { min-height: 42px; padding: 0 .8rem; border: 1.5px solid #111; border-radius: 6px; background: #e9e2d6; cursor: pointer; font-size: .82rem; font-weight: 800; }
.copy-editor-actions button[type="submit"] { background: #f4e84a; }
.copy-editor-actions button.is-reset { color: #fff; background: #e94c38; }
.copy-save-note { grid-column: 1 / -1; margin: -.15rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.card-copy-editor { margin-top: 1rem; }
.dialog-links { display: grid; gap: .35rem; margin-top: .85rem; }
.dialog-links > small { color: #008f79; font-size: .68rem; font-weight: 800; }
.dialog-links > span { display: flex; flex-wrap: wrap; gap: .45rem; }
.dialog-links a { display: inline-flex; min-height: 40px; align-items: center; gap: .4rem; padding: 0 .8rem; border: 1.5px solid #111; border-radius: 7px; color: #111; background: #72e2bb; font-size: .78rem; font-weight: 800; text-decoration: none; }
.dialog-links a:hover { background: #f4e84a; }
.dialog-source { display: grid; gap: .2rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.dialog-source small { color: #008f79; font-size: .54rem; font-weight: 800; }
.dialog-source b { overflow: hidden; color: #5c554c; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.related-cards { padding: 1.25rem 1.75rem 1.5rem; border-top: 2px solid #111; background: #e9e2d6; }
.related-cards > header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: .9rem; }
.related-cards h3 { margin: .2rem 0 0; font-size: 1.3rem; letter-spacing: -.04em; }
.related-cards header p { max-width: 390px; margin: 0; color: var(--muted); font-size: .65rem; line-height: 1.45; text-align: right; }
.related-card-list { display: flex; gap: .65rem; overflow-x: auto; padding: 4px 4px 10px; scroll-snap-type: x proximity; }
.related-mini-card { --field: #008f79; --label: #fff4d6; flex: 0 0 132px; display: grid; min-width: 0; grid-template-rows: auto auto auto; gap: .32rem; padding: 6px 6px 8px; border: 1.5px solid #111; border-radius: 8px; background: var(--field); cursor: pointer; scroll-snap-align: start; text-align: left; }
.related-mini-card > span { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 5px; }
.related-mini-card img { width: 100%; height: 100%; object-fit: cover; }
.related-mini-card i { position: absolute; top: 6px; right: 6px; padding: 3px 4px; border-radius: 3px; background: var(--label); font-size: .42rem; font-style: normal; font-weight: 800; }
.related-mini-card b, .related-mini-card small { overflow: hidden; padding: 0 3px; color: var(--label); text-overflow: ellipsis; white-space: nowrap; }
.related-mini-card b { margin-top: 2px; font-size: .61rem; }
.related-mini-card small { font-size: .47rem; opacity: .82; }

/* Footer */
.site-footer { display: flex; max-width: var(--page); align-items: center; justify-content: space-between; gap: 2rem; margin: 2rem auto 0; padding: 1.5rem; border-top: 2px solid #111; }
.site-footer span { font-size: .7rem; font-weight: 800; }
.site-footer p { margin: 0; color: var(--muted); font-size: .62rem; }

@media (max-width: 1080px) {
  .site-header { padding-inline: 1.25rem; }
  .binder-grid, .art-library-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .showcase, .system-preview-section { grid-template-columns: 360px minmax(0,1fr); gap: 3rem; }
  .showcase-copy h1 { font-size: 4rem; }
  .pilot-grid { grid-template-columns: 1fr; }
  .pilot-item { grid-template-columns: 220px minmax(0,1fr); }
}

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .site-header nav { width: 100%; }
  .site-header nav button { flex: 1 1 0; justify-content: center; }
  .showcase, .system-preview-section { grid-template-columns: 1fr; }
  .showcase-copy { max-width: 700px; margin: 0 auto; }
  .showcase-copy h1 { font-size: clamp(2.7rem, 10vw, 4.5rem); }
  .collection-tools { grid-template-columns: 1fr; }
  .binder-grid, .art-library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .preset-grid { grid-template-columns: 1fr; }
  .system-spec { max-width: 700px; margin: 0 auto; }
  .card-dialog-body { grid-template-columns: 1fr; }
  .card-dialog-copy { max-width: 700px; margin: 0 auto; }
  .pilot-intro { grid-template-columns: 1fr; gap: .8rem; }
  .pilot-bible { grid-template-columns: 1fr; margin-inline: 1.5rem; }
  .ontology-key > div { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ontology-key article { border-bottom: 1px solid #4c4740; }
}

@media (max-width: 620px) {
  .site-header { position: static; padding: .75rem; }
  .brand-seal { width: 36px; border-radius: 9px; }
  .brand b { font-size: .86rem; }
  .brand small { font-size: .57rem; }
  .site-header nav { gap: .2rem; overflow-x: auto; }
  .site-header nav button { min-width: max-content; height: 38px; padding: 0 .45rem; font-size: .61rem; }
  .site-header nav svg { width: 15px; }
  .deck-count { min-width: 1.1rem; height: 1.1rem; }
  .page-intro { padding: 3.3rem 1rem 2rem; }
  .page-intro h1 { font-size: 2.35rem; }
  .page-intro p { font-size: .82rem; }
  .showcase { padding: 2.6rem 1rem 3.5rem; }
  .showcase::after { right: 1rem; left: 1rem; height: 7px; }
  .showcase-copy h1 { font-size: 2.75rem; }
  .showcase-copy > p { font-size: .83rem; }
  .showcase-rule { grid-template-columns: 1fr; }
  .collection-section, .deck-section, .preset-section, .lineage-list, .art-library-section { padding: 3.5rem 1rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .65rem; }
  .section-heading h2 { font-size: 1.8rem; }
  .section-heading > p { font-size: .72rem; }
  .binder-grid, .art-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .binder-card { grid-template-rows: minmax(0,1fr) 82px; }
  .binder-info > em { display: none; }
  .binder-info { grid-template-rows: auto 1fr auto; }
  .binder-info > b { align-self: center; font-size: .67rem; }
  .physical-note { align-items: center; }
  .physical-note small { display: none; }
  .project-card-object { width: min(340px, calc(100vw - 32px)); }
  .card-front { grid-template-rows: minmax(0,1fr) 124px; }
  .card-copy-panel > strong { font-size: 1.2rem; }
  .back-heading strong { font-size: 1.16rem; }
  .back-summary { font-size: .76rem; }
  .back-section > span { font-size: .71rem; }
  .lineage-row > header { grid-template-columns: 2.2rem minmax(0,1fr); }
  .lineage-card-track { margin-inline: -1rem; border-radius: 0; }
  .preset-card { min-height: 230px; grid-template-columns: 38% 1fr; gap: .7rem; padding: 1rem; }
  .preset-fan { height: 160px; }
  .preset-fan span { width: 85px; }
  .palette-options, .system-rules { grid-template-columns: 1fr; }
  .system-preview-section { padding: 1rem 1rem 4rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .45rem; margin-inline: 1rem; padding-inline: 0; }
  .card-dialog-backdrop { padding: 0; }
  .card-dialog { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .card-dialog-head { padding: .8rem 1rem; }
  .card-dialog-head h2 { font-size: 1.35rem; }
  .card-dialog-body { gap: 1.5rem; padding: 1.25rem 1rem; }
  .card-dialog-card .project-card-object { width: min(310px, calc(100vw - 40px)); }
  .dialog-lead { font-size: 1.35rem; }
  .dialog-facts { grid-template-columns: 1fr; }
  .dialog-facts > div:first-child { grid-row: auto; }
  .related-cards { padding: 1rem; }
  .related-cards > header { align-items: start; flex-direction: column; gap: .35rem; }
  .related-cards header p { max-width: none; text-align: left; }
  .related-mini-card { flex-basis: 122px; }
  .pilot-intro { padding: 2.5rem 1rem 1.5rem; }
  .pilot-intro h1 { font-size: 2.25rem; }
  .pilot-bible { margin: 0 1rem 3.5rem; }
  .pilot-gallery { padding: 0 1rem 4rem; }
  .pilot-item { grid-template-columns: 1fr; gap: 1rem; }
  .pilot-card-preview { width: min(270px,100%); justify-self: center; grid-template-rows: minmax(0,1fr) 108px; }
  .pilot-meta > p { min-height: 0; }
  .ontology-key { margin-inline: 1rem; }
  .ontology-key > header { grid-template-columns: 1fr; gap: .8rem; padding: 1.25rem; }
  .ontology-key > div { grid-template-columns: 1fr; }
  .ontology-key article { min-height: 0; border-right: 0; }
}

@media (max-width: 390px) {
  .site-header nav button { font-size: .57rem; }
  .project-card-object { width: calc(100vw - 28px); }
  .card-back-panel { gap: 7px; padding: 14px 14px 12px; }
  .back-heading { padding-bottom: 8px; }
  .back-summary { padding: 8px 9px; }
  .back-section { padding-bottom: 6px; }
  .inheritance-list i { font-size: .5rem; }
  .binder-card { padding: 6px; gap: 6px; }
  .art-library-grid button { padding: 6px 6px 9px; }
}

/* Readability standard: prose stays readable; only short labels may be compact. */
.brand small { font-size: .75rem; }
.site-header nav button { font-size: .8rem; }
.deck-count { font-size: .65rem; }
.eyebrow { font-size: .75rem; }
.section-heading > p,
.page-intro p,
.showcase-copy > p,
.system-spec > p,
.pilot-intro > p { font-size: 1rem; line-height: 1.7; }

.card-front { grid-template-rows: minmax(0,1fr) 148px; }
.card-status,
.card-number { font-size: .64rem; }
.card-copy-panel > small { font-size: .72rem; }
.card-copy-panel > strong { font-size: clamp(1.35rem, 5.2vw, 1.55rem); }
.card-copy-panel > b { font-size: .84rem; line-height: 1.48; }
.card-copy-foot i { font-size: .64rem; }
.project-card-object.is-planned .card-art-panel::after { font-size: .62rem; }
.back-heading small { font-size: .68rem; }
.back-heading span { font-size: .72rem; }
.back-summary { font-size: .86rem; line-height: 1.5; }
.back-section small { font-size: .66rem; }
.back-section b { font-size: .84rem; }
.back-section > span { font-size: .78rem; line-height: 1.5; }
.inheritance-list i { font-size: .64rem; }
.back-source small,
.back-source b { font-size: .63rem; }

.physical-note span { font-size: .72rem; }
.physical-note b { font-size: .92rem; }
.physical-note small { font-size: .7rem; }
.flip-button,
.showcase-actions button,
.preset-card button,
.text-button { font-size: .8rem; }
.showcase-rule span { font-size: .7rem; }
.showcase-rule p { font-size: .94rem; line-height: 1.6; }
.showcase-evolution > span,
.evolution-node button { font-size: .74rem; }

.search-field input { font-size: .9rem; }
.type-tabs button { font-size: .75rem; }
.binder-card { grid-template-rows: minmax(0,1fr) 112px; }
.binder-image > i { font-size: .58rem; }
.binder-info > small { font-size: .58rem; }
.binder-info > b { font-size: .82rem; }
.binder-info > em { font-size: .75rem; line-height: 1.4; }
.binder-info > span i,
.binder-info > span small { font-size: .56rem; }

.lineage-row header p { font-size: .94rem; line-height: 1.65; }
.lineage-mini-image small { font-size: .55rem; }
.lineage-mini-copy b { font-size: .78rem; }
.lineage-mini-copy i,
.lineage-arrow small { font-size: .6rem; }
.preset-card > div:last-child > small { font-size: .72rem; }
.preset-card p { font-size: .94rem; line-height: 1.65; }
.spec-badge { font-size: .72rem; }
.palette-options b { font-size: .82rem; }
.palette-options small { font-size: .68rem; }
.system-rules > div > b { font-size: .78rem; }
.system-rules span { font-size: .9rem; line-height: 1.55; }
.system-rules strong { font-size: .82rem; }
.art-library-grid i { font-size: .55rem; }
.art-library-grid b { font-size: .78rem; }
.art-library-grid small { font-size: .62rem; }

.pilot-bible b { font-size: .78rem; }
.pilot-bible span { font-size: .86rem; line-height: 1.6; }
.pilot-card-preview { grid-template-rows: minmax(0,1fr) 118px; }
.pilot-card-art > i,
.pilot-card-art > b { font-size: .57rem; }
.pilot-card-copy small { font-size: .63rem; }
.pilot-card-copy strong { font-size: 1.08rem; }
.pilot-card-copy > span { font-size: .75rem; line-height: 1.42; }
.pilot-relation { font-size: .68rem; }
.pilot-meta > p { font-size: .94rem; line-height: 1.65; }
.pilot-formula > small,
.pilot-motifs > small { font-size: .66rem; }
.pilot-formula span b,
.pilot-formula > div > strong { font-size: .66rem; line-height: 1.35; }
.pilot-formula span i { font-size: .7rem; }
.pilot-direct-flow span em { font-size: .82rem; }
.pilot-motifs i { font-size: .63rem; }
.ontology-key header p { font-size: .9rem; line-height: 1.65; }
.ontology-key article > span { font-size: .68rem; }
.ontology-key article > b { font-size: 1rem; }
.ontology-key article > p { font-size: .9rem; line-height: 1.62; }

.card-dialog-head > button { font-size: .78rem; }
.dialog-status { font-size: .76rem; }
.dialog-summary { font-size: .96rem; line-height: 1.72; }
.dialog-facts small { font-size: .68rem; }
.dialog-facts b { font-size: .88rem; }
.dialog-facts span { font-size: .9rem; line-height: 1.6; }
.dialog-inheritance i { font-size: .64rem; }
.dialog-actions button { font-size: .78rem; }
.dialog-source small,
.dialog-source b { font-size: .66rem; }
.related-cards header p { font-size: .88rem; line-height: 1.6; }
.related-mini-card i { font-size: .54rem; }
.related-mini-card b { font-size: .72rem; }
.related-mini-card small { font-size: .6rem; }
.site-footer span { font-size: .8rem; }
.site-footer p { font-size: .75rem; }

@media (max-width: 620px) {
  .brand b { font-size: .96rem; }
  .brand small { font-size: .72rem; }
  .site-header nav button { font-size: .72rem; }
  .page-intro p,
  .showcase-copy > p,
  .section-heading > p { font-size: .94rem; }
  .binder-info > em { display: none; }
  .binder-info > b { font-size: .78rem; }
  .back-summary { font-size: .82rem; }
  .back-section > span { font-size: .75rem; }
}

/* Card archive shell v0.4 */
body { background: #c9c0b3; }
.app-shell { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.app-shell::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 280px; background: #dcd4c7; }
.site-header { min-height: 88px; padding-top: 1.15rem; border-bottom: 2px solid #111; background: #fff4d6; box-shadow: 0 6px 0 rgba(17,17,17,.08); }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, #008f79 0 25%, #1658d7 25% 50%, #6b3ca4 50% 75%, #e94c38 75% 100%); }
.brand-seal { border-radius: 8px; box-shadow: 3px 3px 0 #111; }
.brand > span:last-child { gap: .12rem; }
.site-header nav { padding: 4px; border: 1.5px solid #111; border-radius: 10px; background: #e9e2d6; }
.site-header nav button { border-radius: 6px; }
.site-header nav button:hover { background: #fff9e8; }
.site-header nav button.is-active { box-shadow: inset 0 -3px 0 #111; }
.material-count { display: grid; min-width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 4px; color: #fff9e8; background: #008f79; font-size: .65rem; font-weight: 800; }

.page-intro { display: grid; max-width: var(--page); grid-template-columns: minmax(260px,.85fr) minmax(0,1.15fr); gap: .4rem 4rem; align-items: center; margin: 2.5rem auto 4rem; padding: 2rem 2.2rem; border: 2px solid #111; border-radius: 16px; background: #fff9e8; box-shadow: 10px 10px 0 #1658d7; }
.page-intro > .eyebrow { grid-column: 1; align-self: end; }
.page-intro h1 { grid-column: 1; margin: .35rem 0 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; }
.page-intro p { grid-column: 2; grid-row: 1 / span 2; max-width: 600px; }

.showcase { margin: 2.5rem auto 5rem; padding: 4.5rem 2rem 2.5rem; border: 2px solid #111; border-radius: 18px; background: #fff9e8; box-shadow: 12px 12px 0 var(--field); }
.showcase::before { content: "SELECTED CARD"; position: absolute; top: 24px; left: 2rem; color: var(--field); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.showcase::after { top: 0; right: 0; left: 0; height: 12px; border-radius: 14px 14px 0 0; }
.showcase-card-column { padding: 1.2rem; border-radius: 14px; background: #e9e2d6; }
.physical-note { width: 100%; padding-bottom: .65rem; border-bottom: 2px solid #111; }
.showcase-copy h1 { max-width: 680px; font-size: clamp(2.55rem, 5vw, 3.9rem); line-height: .98; }
.showcase-lead { max-width: 620px; }
.showcase-actions button,
.flip-button,
.text-button { box-shadow: 3px 3px 0 #111; }
.showcase-actions button:active,
.flip-button:active,
.text-button:active { box-shadow: none; transform: translate(3px,3px); }
.showcase-rule div { border-left: 6px solid var(--field); border-radius: 6px; background: #e9e2d6; }
.showcase-evolution { border: 1.5px solid var(--field); background: #fff9e8; }

.collection-section,
.deck-section,
.preset-section,
.lineage-list,
.art-library-section { margin-bottom: 3rem; padding: clamp(2rem, 5vw, 4rem); border: 2px solid #111; border-radius: 18px; background: #e9e2d6; box-shadow: 8px 8px 0 rgba(17,17,17,.16); }
.section-heading { align-items: end; padding-bottom: 1rem; border-bottom: 2px solid #111; }
.section-heading > div > .eyebrow { padding: .38rem .52rem; border-radius: 4px; color: #fff9e8; background: #111; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.collection-tools { padding: .8rem; border: 1.5px solid #111; border-radius: 10px; background: #fff9e8; }
.search-field { background: #fff; }
.type-tabs button { border-color: #b9af9f; background: #fff; }
.type-tabs button.is-active { border-color: #111; box-shadow: inset 0 -3px 0 #111; }
.binder-grid { padding: 1rem; border-radius: 12px; background: #cfc6b8; box-shadow: inset 0 0 0 1px #b8ad9d; }
.binder-card { box-shadow: 3px 3px 0 rgba(17,17,17,.18); }
.binder-card:hover { box-shadow: 5px 8px 0 color-mix(in srgb, var(--field) 35%, transparent); }
.lineage-row { padding: 1.4rem; border: 1.5px solid #111; border-radius: 12px; background: #fff9e8; }
.lineage-row + .lineage-row { margin-top: 1rem; }
.lineage-card-track { background: #cfc6b8; }
.preset-card { border: 1.5px solid #111; background: #fff9e8; box-shadow: 5px 5px 0 var(--deck-accent); }
.system-preview-section { margin: 0 auto 4rem; padding: clamp(2rem, 5vw, 4rem); border: 2px solid #111; border-radius: 18px; background: #fff9e8; box-shadow: 10px 10px 0 #f4e84a; }
.system-rules > div { border-left: 5px solid #008f79; }
.art-library-grid { padding: 1rem; border-radius: 12px; background: #cfc6b8; }
.pilot-intro { margin-top: 2.5rem; border: 2px solid #111; border-radius: 16px; background: #fff9e8; box-shadow: 10px 10px 0 #6b3ca4; }
.pilot-bible { border: 2px solid #111; }
.pilot-item { border: 1.5px solid #111; box-shadow: 5px 5px 0 color-mix(in srgb, var(--field) 70%, #111); }
.ontology-key { border: 2px solid #111; box-shadow: 10px 10px 0 #79dcef; }

.card-dialog-backdrop,
.showcase-viewer-backdrop { background: rgba(17,17,17,.82); }
.card-dialog { border-radius: 16px; box-shadow: 12px 12px 0 #008f79; }
.card-dialog-head { padding-top: 1.35rem; box-shadow: inset 0 7px 0 #f4e84a; }
.card-dialog-body { background: #f4efe5; }
.dialog-facts > div { border: 1px solid #d6cdbd; }
.related-cards { background: #cfc6b8; }

/* Project explainer library */
.showcase-library-main { padding-bottom: 2rem; }
.showcase-library-intro { box-shadow: 10px 10px 0 #e94c38; }
.showcase-library { max-width: var(--page); margin: 0 auto 4rem; padding: clamp(2rem, 5vw, 4rem); border: 2px solid #111; border-radius: 18px; background: #e9e2d6; box-shadow: 8px 8px 0 rgba(17,17,17,.16); }
.showcase-pack-grid { display: grid; gap: 1.25rem; }
.showcase-pack { --pack-accent: #008f79; display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: clamp(1.5rem,4vw,3rem); align-items: center; padding: 1.25rem; border: 2px solid #111; border-radius: 14px; background: #fff9e8; box-shadow: 8px 8px 0 var(--pack-accent); }
.showcase-pack-2 { --pack-accent: #e94c38; }
.showcase-pack-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #111; cursor: pointer; }
.showcase-pack-2 .showcase-pack-cover { aspect-ratio: 16 / 9; }
.showcase-pack-cover img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform 180ms ease; }
.showcase-pack-cover:hover img { transform: scale(1.02); }
.showcase-pack-status,
.showcase-pack-count { position: absolute; top: 12px; padding: 6px 8px; border-radius: 4px; color: #111; font-size: .72rem; font-weight: 800; }
.showcase-pack-status { left: 12px; background: #f4e84a; }
.showcase-pack-count { right: 12px; background: #fff9e8; }
.showcase-pack-copy { min-width: 0; }
.showcase-kind { display: inline-flex; padding: .4rem .55rem; border-radius: 4px; color: #fff; background: var(--pack-accent); font-size: .75rem; font-weight: 800; }
.showcase-pack-copy h2 { max-width: 660px; margin: .85rem 0 .7rem; font-size: clamp(1.85rem,4vw,3rem); line-height: 1.06; letter-spacing: -.055em; }
.showcase-pack-copy > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.showcase-pack-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.showcase-pack-actions button,
.showcase-pack-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .4rem; padding: 0 .85rem; border: 1.5px solid #111; border-radius: 6px; color: #111; background: #fff9e8; box-shadow: 3px 3px 0 #111; cursor: pointer; font-size: .8rem; font-weight: 800; text-decoration: none; }
.showcase-pack-actions button { background: var(--pack-accent); color: #fff; }
.showcase-project-links { margin-top: 1.4rem; padding-top: 1rem; border-top: 2px solid #111; }
.showcase-project-links > small { display: block; color: var(--pack-accent); font-size: .75rem; font-weight: 800; }
.showcase-project-links > span { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.showcase-project-links button { padding: .45rem .58rem; border: 0; border-radius: 4px; background: #e9e2d6; cursor: pointer; font-size: .78rem; font-weight: 700; }
.showcase-next { display: grid; grid-template-columns: minmax(160px,.55fr) minmax(260px,1fr) minmax(0,1.4fr); gap: 1rem 2rem; align-items: center; margin-top: 2rem; padding: 1.3rem; border: 2px solid #111; border-radius: 12px; color: #fff9e8; background: #111; }
.showcase-next > span { color: #79dcef; font-size: .75rem; font-weight: 800; }
.showcase-next > strong { color: #f4e84a; font-size: 1.25rem; line-height: 1.3; }
.showcase-next > p { margin: 0; color: #d7cec0; font-size: .94rem; line-height: 1.6; }
.showcase-coverage { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid #111; }
.showcase-coverage > header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.showcase-coverage > header span { color: #008f79; font-size: .72rem; font-weight: 800; }
.showcase-coverage h3 { margin: .3rem 0 0; font-size: 1.65rem; letter-spacing: -.04em; }
.showcase-coverage > header p { max-width: 520px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; text-align: right; }
.showcase-coverage-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .55rem; }
.showcase-coverage-grid button { display: grid; min-width: 0; grid-template-columns: 42px minmax(0,1fr); gap: .65rem; align-items: center; padding: .62rem; border: 1px solid #b9af9f; border-radius: 7px; background: #fff9e8; cursor: pointer; text-align: left; }
.showcase-coverage-grid button.is-ready { border: 1.5px solid #111; box-shadow: inset 5px 0 0 var(--field); }
.showcase-coverage-grid i { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border-radius: 5px; color: #fff; background: var(--field); font-size: .66rem; font-style: normal; font-weight: 800; }
.showcase-coverage-grid span { display: grid; min-width: 0; gap: .15rem; }
.showcase-coverage-grid b,
.showcase-coverage-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showcase-coverage-grid b { font-size: .8rem; }
.showcase-coverage-grid small { color: var(--muted); font-size: .68rem; }
.showcase-coverage-grid button.is-ready small { color: var(--field); font-weight: 800; }

.project-showcases { padding: 1.25rem 1.75rem 1.5rem; border-top: 2px solid #111; background: #fff9e8; }
.project-showcases > header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: .9rem; }
.project-showcases h3 { margin: .2rem 0 0; font-size: 1.3rem; letter-spacing: -.04em; }
.project-showcases header p { max-width: 470px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; text-align: right; }
.project-showcase-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.project-showcase-list > button { display: grid; min-width: 0; grid-template-columns: 110px minmax(0,1fr); grid-template-rows: auto auto 1fr; gap: .2rem .8rem; align-items: start; padding: .7rem; border: 1.5px solid #111; border-radius: 9px; background: #e9e2d6; cursor: pointer; text-align: left; }
.project-showcase-list > button > span { position: relative; grid-row: 1 / 4; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #111; }
.project-showcase-list img { width: 100%; height: 100%; object-fit: cover; }
.project-showcase-list i { position: absolute; right: 5px; bottom: 5px; padding: 3px 5px; border-radius: 3px; background: #f4e84a; font-size: .62rem; font-style: normal; font-weight: 800; }
.project-showcase-list small { color: #008f79; font-size: .68rem; font-weight: 800; }
.project-showcase-list b { font-size: .9rem; line-height: 1.3; }
.project-showcase-list em { color: var(--muted); font-size: .78rem; font-style: normal; line-height: 1.45; }
.project-showcase-pending { padding: 1rem; border: 1.5px dashed #766e63; border-radius: 9px; background: #e9e2d6; }
.project-showcase-pending span { color: #e94c38; font-size: .72rem; font-weight: 800; }
.project-showcase-pending b { display: block; margin-top: .35rem; font-size: 1rem; }
.project-showcase-pending p { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.showcase-viewer-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.showcase-viewer { width: min(1320px,calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow: auto; border: 2px solid #111; border-radius: 16px; background: #f4efe5; box-shadow: 12px 12px 0 #e94c38; }
.showcase-viewer-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem 1rem; border-bottom: 2px solid #111; background: #fff9e8; box-shadow: inset 0 7px 0 #008f79; }
.showcase-viewer-head span { color: #008f79; font-size: .72rem; font-weight: 800; }
.showcase-viewer-head h2 { margin: .25rem 0 0; font-size: clamp(1.4rem,3vw,2.1rem); line-height: 1.05; }
.showcase-viewer-head-actions { display: flex; gap: .5rem; }
.showcase-viewer-head-actions button { min-height: 40px; padding: 0 .75rem; border: 1.5px solid #111; border-radius: 6px; background: #f4e84a; cursor: pointer; font-size: .8rem; font-weight: 800; }
.showcase-viewer-head-actions button:first-child { background: #79dcef; }
.showcase-viewer-head-actions button:first-child.is-active { color: #fff; background: #008f79; }
.showcase-viewer-head-actions button b { margin-left: .35rem; font-size: 1.1rem; }
.showcase-viewer-meta { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(200px,.8fr) minmax(200px,.8fr); gap: 1rem; align-items: start; padding: 1rem 1.5rem; border-bottom: 2px solid #111; background: #fff9e8; }
.showcase-viewer-meta p { margin: 0; color: #3f3932; font-size: 1rem; line-height: 1.65; }
.showcase-viewer-meta > span { color: #5e574e; font-size: .88rem; line-height: 1.55; }
.showcase-viewer-meta small { display: block; margin-bottom: .25rem; color: #008f79; font-size: .72rem; font-weight: 800; }
.showcase-copy-editor { margin: 1rem 1.5rem; }
.showcase-viewer-body { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 1rem; min-height: 620px; padding: 1rem; background: #cfc6b8; }
.showcase-page-rail { display: flex; min-height: 0; flex-direction: column; gap: .55rem; overflow-y: auto; }
.showcase-page-rail button { position: relative; flex: 0 0 auto; padding: 5px; border: 1.5px solid transparent; border-radius: 7px; background: #e9e2d6; cursor: pointer; }
.showcase-page-rail button.is-current { border-color: #111; background: #f4e84a; }
.showcase-page-rail img { width: 100%; max-height: 112px; object-fit: contain; background: #fff; }
.showcase-page-rail span { position: absolute; right: 7px; bottom: 7px; padding: 2px 4px; border-radius: 3px; background: #111; color: #fff; font-size: .6rem; font-weight: 800; }
.showcase-page-stage { position: relative; display: grid; min-width: 0; place-items: center; padding: 1rem 4rem; overflow: hidden; border: 2px solid #111; border-radius: 12px; background: #48423b; }
.showcase-page-stage img { width: auto; max-width: 100%; height: auto; max-height: 72vh; object-fit: contain; box-shadow: 0 10px 30px rgba(17,17,17,.3); }
.showcase-page-stage > button { position: absolute; top: 50%; display: grid; width: 42px; aspect-ratio: 1; place-items: center; border: 1.5px solid #111; border-radius: 6px; background: #f4e84a; cursor: pointer; font-size: 1.2rem; font-weight: 800; transform: translateY(-50%); }
.showcase-page-stage > button:first-of-type { left: 12px; }
.showcase-page-stage > button:last-of-type { right: 12px; }
.showcase-page-stage > button:disabled { cursor: default; opacity: .3; }
.showcase-viewer-foot { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-top: 2px solid #111; background: #fff9e8; }
.showcase-viewer-foot small { display: block; color: #008f79; font-size: .68rem; font-weight: 800; }
.showcase-viewer-foot span { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.showcase-viewer-foot button,
.showcase-viewer-links a { padding: .42rem .55rem; border: 1px solid #b9af9f; border-radius: 4px; color: #111; background: #e9e2d6; cursor: pointer; font-size: .75rem; font-weight: 700; text-decoration: none; }
.showcase-viewer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: .4rem; }

.site-footer { position: relative; max-width: var(--page); margin-bottom: 1.5rem; padding-top: 2rem; border: 2px solid #111; border-radius: 12px; background: #fff9e8; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; border-radius: 9px 9px 0 0; background: linear-gradient(90deg, #008f79 0 25%, #1658d7 25% 50%, #6b3ca4 50% 75%, #e94c38 75% 100%); }

@media (max-width: 860px) {
  .page-intro { grid-template-columns: 1fr; gap: .45rem; margin-inline: 1.25rem; }
  .page-intro > .eyebrow,
  .page-intro h1,
  .page-intro p { grid-column: 1; grid-row: auto; }
  .showcase-pack { grid-template-columns: 1fr; }
  .showcase-pack-cover { max-height: 540px; }
  .showcase-next { grid-template-columns: 1fr; }
  .showcase-coverage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-showcase-list { grid-template-columns: 1fr; }
  .showcase-viewer-body { grid-template-columns: 1fr; min-height: 0; }
  .showcase-page-rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .showcase-page-rail button { flex-basis: 110px; }
  .showcase-page-stage { min-height: 58vh; }
}

@media (max-width: 620px) {
  .app-shell::before { height: 190px; }
  .site-header { padding-top: 1rem; }
  .site-header nav { width: 100%; flex: 0 0 auto; }
  .site-header nav button { flex: 0 0 auto; }
  .page-intro { margin: 1.25rem 1rem 3rem; padding: 1.35rem; border-radius: 13px; box-shadow: 6px 6px 0 #1658d7; }
  .page-intro h1 { font-size: 2.25rem; }
  .showcase { margin: 1.25rem 1rem 3.5rem; padding: 4rem 1rem 1.4rem; border-radius: 14px; box-shadow: 6px 6px 0 var(--field); }
  .showcase::before { left: 1rem; }
  .showcase-card-column { margin-inline: 0; padding: .75rem; }
  .showcase-copy h1 { font-size: 2.55rem; }
  .collection-section,
  .deck-section,
  .preset-section,
  .lineage-list,
  .art-library-section,
  .showcase-library { margin: 0 1rem 2.5rem; padding: 1rem; border-radius: 14px; box-shadow: 5px 5px 0 rgba(17,17,17,.16); }
  .binder-grid,
  .art-library-grid { margin-inline: -.35rem; padding: .5rem; }
  .lineage-row { padding: .8rem; }
  .pilot-intro { margin: 1.25rem 1rem 1.5rem; padding: 1.25rem; box-shadow: 6px 6px 0 #6b3ca4; }
  .pilot-bible { margin-inline: 1rem; }
  .ontology-key { box-shadow: 6px 6px 0 #79dcef; }
  .system-preview-section { margin: 0 1rem 3rem; padding: 1rem; box-shadow: 6px 6px 0 #f4e84a; }
  .showcase-pack { padding: .75rem; border-radius: 11px; box-shadow: 5px 5px 0 var(--pack-accent); }
  .showcase-pack-cover,
  .showcase-pack-2 .showcase-pack-cover { aspect-ratio: 16 / 10; max-height: 320px; }
  .showcase-pack-cover img { object-fit: cover; object-position: top; }
  .showcase-pack-copy h2 { font-size: 1.85rem; }
  .showcase-pack-copy > p { font-size: .94rem; }
  .showcase-next { padding: 1rem; }
  .showcase-coverage > header { align-items: start; flex-direction: column; gap: .45rem; }
  .showcase-coverage > header p { text-align: left; }
  .showcase-coverage-grid { grid-template-columns: 1fr; }
  .showcase-coverage-grid button { grid-template-columns: 38px minmax(0,1fr); }
  .showcase-coverage-grid i { width: 38px; }
  .project-showcases { padding: 1rem; }
  .project-showcases > header { align-items: start; flex-direction: column; gap: .35rem; }
  .project-showcases header p { max-width: none; text-align: left; }
  .project-showcase-list > button { grid-template-columns: 92px minmax(0,1fr); }
  .showcase-viewer-backdrop { padding: 0; }
  .showcase-viewer { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .showcase-viewer-head { padding: 1.2rem 1rem .8rem; }
  .showcase-viewer-head h2 { font-size: 1.3rem; }
  .showcase-viewer-head-actions { flex-direction: column-reverse; }
  .showcase-viewer-head-actions button { min-height: 38px; padding-inline: .6rem; }
  .showcase-viewer-meta { grid-template-columns: 1fr; padding: 1rem; }
  .showcase-copy-editor { margin: .75rem; }
  .copy-editor { grid-template-columns: 1fr; padding: .8rem; }
  .copy-editor label,
  .copy-editor label.is-wide { grid-column: 1; }
  .copy-editor-actions,
  .copy-save-note { grid-column: 1; }
  .showcase-viewer-body { padding: .65rem; }
  .showcase-page-stage { min-height: 56vh; padding: .75rem 2.8rem; border-radius: 8px; }
  .showcase-page-stage img { max-height: 64vh; }
  .showcase-page-stage > button { width: 36px; }
  .showcase-page-stage > button:first-of-type { left: 6px; }
  .showcase-page-stage > button:last-of-type { right: 6px; }
  .showcase-viewer-foot { align-items: start; flex-direction: column; padding: .9rem 1rem; }
  .showcase-viewer-links { justify-content: start; }
  .site-footer { margin: 1rem; padding: 1.5rem 1rem 1rem; }
  .work-nav-menu summary { height: 38px; padding: 0 .45rem; font-size: .61rem; }
  .work-nav-menu > div { position: fixed; top: 112px; right: .75rem; width: 172px; }
}

@media print {
  .site-header, .site-footer, .flip-button, .showcase-actions, .collection-tools, .binder-deck { display: none !important; }
  body { background: #fff; }
  .showcase { min-height: 100vh; }
  .card-inner { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Global channel switcher */
.brand-channel-cluster { display: flex; min-width: 0; align-items: center; gap: 1rem; }
.channel-switcher { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1.5px solid #111; border-radius: 9px; background: #111; }
.channel-switcher button { display: grid; min-width: 112px; gap: 1px; padding: .42rem .65rem; border: 0; border-radius: 5px; color: #d9d0c2; background: #35312c; cursor: pointer; text-align: left; }
.channel-switcher button small { font-size: .65rem; font-weight: 700; }
.channel-switcher button b { font-size: .82rem; letter-spacing: -.02em; }
.channel-switcher button.is-active { color: #111; background: #f4e84a; }
.channel-public-gitlab::before { background: linear-gradient(90deg, #123a8c 0 62%, #5de1c4 62% 84%, #f4e84a 84% 100%); }
.channel-public-gitlab .brand-seal { background: #123a8c; }
.channel-public-gitlab nav button.is-active { background: #5de1c4; }
.site-header nav .public-source-nav { display: inline-flex; min-height: 40px; align-items: center; padding: 0 .72rem; border-radius: 6px; color: #fff9e8; background: #111; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }

/* Cross-channel link inside a personal card */
.dialog-review-links { display: grid; gap: .45rem; margin-top: .9rem; }
.dialog-review-links > small { color: #123a8c; font-size: .72rem; font-weight: 800; }
.dialog-review-links > button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .8rem; border: 1.5px solid #111; border-radius: 7px; background: #5de1c4; cursor: pointer; text-align: left; }
.dialog-review-links button > span { display: grid; gap: .18rem; }
.dialog-review-links b { font-size: .9rem; }
.dialog-review-links em { color: #26312f; font-size: .8rem; font-style: normal; line-height: 1.45; }
.dialog-review-links i { font-size: 1.15rem; font-style: normal; font-weight: 800; }

/* Public GitLab review channel */
.public-review-main { --review-blue: #123a8c; --review-mint: #5de1c4; --review-yellow: #f4e84a; }
.review-channel-intro { display: grid; max-width: var(--page); grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 1rem 2rem; align-items: end; margin: 1.5rem auto 2.25rem; padding: 1.35rem; border: 2px solid #111; border-radius: 14px; background: #fff9e8; box-shadow: 7px 7px 0 var(--review-blue); }
.review-channel-intro .eyebrow { color: var(--review-blue); }
.review-channel-intro h1 { max-width: 720px; margin: .35rem 0 0; font-size: clamp(1.9rem,3.8vw,2.85rem); line-height: 1.05; letter-spacing: -.055em; }
.review-channel-intro > p { margin: 0; color: #4d473f; font-size: 1.05rem; line-height: 1.72; }
.review-channel-intro dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem; margin: .15rem 0 0; padding-top: .85rem; border-top: 2px solid #111; }
.review-channel-intro dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; border-radius: 6px; background: #e9e2d6; }
.review-channel-intro dt { color: #5f584f; font-size: .8rem; font-weight: 700; }
.review-channel-intro dd { margin: 0; color: var(--review-blue); font-size: 1.1rem; font-weight: 800; }
.review-featured-list, .review-criteria-section { max-width: var(--page); margin: 0 auto 4rem; padding: 1.35rem; border: 2px solid #111; border-radius: 16px; background: #e9e2d6; }
.review-featured-list .section-heading .eyebrow, .review-criteria-section .section-heading .eyebrow { color: var(--review-blue); }
.review-featured { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: clamp(2.5rem,6vw,5rem); align-items: center; padding: 1.5rem; border: 2px solid #111; border-radius: 14px; background: #fff9e8; box-shadow: 9px 9px 0 var(--review-blue); }
.review-card-stage { display: grid; justify-items: center; gap: .8rem; padding: 1rem; border-radius: 12px; background: #cfc6b8; }
.review-card-stage > small, .review-art-credit { color: #5a534b; font-size: .76rem; line-height: 1.45; text-align: center; }
.review-card-object .review-card-art img { object-position: 35% center; }
.review-card-object .card-copy-panel { grid-template-rows: auto minmax(24px,auto) minmax(0,1fr) auto; }
.review-card-object .card-copy-panel > strong { font-size: 1.52rem; }
.review-card-object .card-copy-panel > b { display: -webkit-box; align-self: start; overflow: hidden; font-size: .76rem; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.review-card-object.has-long-title .card-copy-panel { grid-template-rows: auto minmax(40px,auto) minmax(0,1fr) auto; }
.review-card-object.has-long-title .card-copy-panel > b { -webkit-line-clamp: 2; }
.review-card-object .card-back-panel { gap: 7px; padding: 15px 16px 13px; }
.review-card-object .back-heading { padding-bottom: 7px; }
.review-card-object .back-summary { padding: 8px 10px; }
.review-card-object .back-section { padding-bottom: 5px; }
.review-card-object .back-summary { font-size: .76rem; line-height: 1.46; }
.review-card-object.is-compact { width: 100%; }
.review-card-object.is-compact .card-front { grid-template-rows: minmax(0,1fr) 126px; gap: 9px; padding: 10px; }
.review-card-object.is-compact .card-copy-panel { grid-template-rows: auto minmax(20px,auto) minmax(0,1fr) auto; padding: 11px 12px 9px; }
.review-card-object.is-compact .card-copy-panel > small { font-size: .58rem; }
.review-card-object.is-compact .card-copy-panel > strong { font-size: 1.12rem; }
.review-card-object.is-compact.has-long-title .card-copy-panel > strong { font-size: .96rem; }
.review-card-object.is-compact .card-copy-panel > b { display: -webkit-box; align-self: start; overflow: hidden; font-size: .71rem; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.review-card-object.is-compact.has-long-title .card-copy-panel { grid-template-rows: auto minmax(34px,auto) minmax(0,1fr) auto; }
.review-card-object.is-compact.has-long-title .card-copy-panel > b { -webkit-line-clamp: 2; }
.review-card-object.is-compact .card-copy-foot i { font-size: .57rem; }
.review-rank-crown { justify-self: start; padding: .42rem .6rem; border-radius: 5px; color: #fff; background: var(--field); font-size: .78rem; font-weight: 850; }

/* Functional artwork families: related projects share a visual grammar, not one repeated picture. */
.review-art-scene { --art-dark: #111; position: absolute; inset: 0; display: block; overflow: hidden; background: color-mix(in srgb, var(--field) 84%, #fff); }
.review-art-scene::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; top: -22%; right: -20%; border-radius: 50%; background: var(--tag); opacity: .92; }
.review-art-scene::after { content: ""; position: absolute; inset: 13% 9% auto auto; width: 34%; height: 16%; border: 2px solid color-mix(in srgb, var(--label) 75%, transparent); border-radius: 999px; transform: rotate(-12deg); }
.review-art-scene.variant-2 { filter: saturate(1.06); }
.review-art-scene.variant-3::before { top: 56%; right: 62%; }
.review-art-scene.variant-4::after { inset: 64% auto auto 57%; transform: rotate(18deg); }
.review-art-scene.variant-5::before { width: 58%; top: 5%; right: 58%; }
.review-art-scene.variant-6::before { width: 92%; top: 58%; right: -28%; }
.review-art-scene.motif-2::after { width: 19%; height: 34%; inset: 10% auto auto 11%; border-radius: 45% 45% 10% 10%; transform: rotate(18deg); }
.review-art-scene.motif-3::after { width: 54%; height: 9%; inset: auto 8% 12% auto; border-radius: 5px; transform: rotate(-5deg); }
.review-art-scene.motif-2 .art-orbit { top: 11%; left: 26%; transform: rotate(31deg) scale(.82); }
.review-art-scene.motif-3 .art-orbit { top: 31%; left: 4%; transform: rotate(-37deg) scale(1.08); }
.review-art-scene.motif-2 .art-ground { right: 14%; left: 24%; transform: skewX(19deg); }
.review-art-scene.motif-3 .art-ground { right: 25%; left: 5%; transform: skewX(-9deg) rotate(4deg); }

.review-art-scene.is-security.motif-2 .art-window { inset: 16% 12% 20% 19%; transform: rotate(5deg); }
.review-art-scene.is-security.motif-2 .art-redaction { right: 13%; bottom: 13%; }
.review-art-scene.is-document.motif-2 .art-window { inset: 14% 9% 18% 22%; transform: rotate(5deg); }
.review-art-scene.is-document.motif-2 .art-sheet-a { width: 29%; height: 43%; top: 36%; left: 9%; transform: rotate(-12deg); }
.review-art-scene.is-document.motif-3 .art-calendar { width: 46%; height: 48%; top: 30%; left: 41%; transform: rotate(9deg); }
.review-art-scene.is-document.motif-3 .art-sheet-a { left: 11%; }
.review-art-scene.is-knowledge.motif-2 .art-book-a { width: 31%; height: 37%; top: 48%; left: 52%; transform: rotate(11deg); }
.review-art-scene.is-knowledge.motif-3 .art-window { inset: 21% 10% 17%; transform: rotate(3deg); }
.review-art-scene.is-data.motif-2 .art-chart { right: 7%; bottom: 10%; width: 48%; }
.review-art-scene.is-data.motif-3 .art-chart { right: 8%; bottom: 9%; width: 44%; }
.review-art-scene.is-workflow.motif-2 .art-box-c { right: 7%; bottom: 10%; width: 22%; }
.review-art-scene.is-workflow.motif-3 .art-calendar { width: 43%; height: 48%; top: 29%; left: 8%; }
.review-art-scene.is-workflow.motif-3 .art-window { inset: 16% 8% 21% 38%; transform: rotate(5deg); }
.review-art-scene.is-emergency.motif-2 .art-cross { top: 48%; left: 68%; transform: scale(.72); }
.review-art-scene.is-emergency.motif-3 .art-calendar { width: 62%; height: 58%; top: 22%; left: 19%; transform: rotate(3deg); }
.review-art-scene.is-emergency.motif-3 .art-cross { top: 31%; left: 44%; transform: scale(.76); }
.review-art-scene.is-education.motif-2 .art-certificate { width: 35%; height: 40%; right: 8%; bottom: 10%; }
.review-art-scene.is-education.motif-3 .art-window { inset: 15% 12% 19%; transform: rotate(4deg); }
.review-art-scene.is-education.motif-3 .art-certificate { width: 31%; height: 34%; right: 7%; bottom: 10%; }
.review-art-scene.is-automation.motif-2 .art-gear-a { top: 9%; right: 8%; }
.review-art-scene.is-automation.motif-3 .art-sheet-a { width: 47%; height: 57%; left: 14%; }
.art-ground { position: absolute; z-index: 1; right: 7%; bottom: 7%; left: 7%; height: 16%; border-radius: 50%; background: color-mix(in srgb, var(--art-dark) 28%, transparent); transform: skewX(-22deg); }
.art-orbit { position: absolute; z-index: 1; width: 76%; height: 54%; top: 23%; left: 12%; border: 3px solid color-mix(in srgb, var(--label) 62%, transparent); border-radius: 50%; transform: rotate(-18deg); }
.variant-2 .art-orbit { transform: rotate(12deg) scale(.82); }
.variant-3 .art-orbit { top: 15%; left: 5%; transform: rotate(-35deg) scale(1.08); }
.variant-4 .art-orbit { top: 34%; transform: rotate(28deg) scale(.9); }
.variant-5 .art-orbit { transform: rotate(4deg) scale(1.14); }
.variant-6 .art-orbit { top: 12%; transform: rotate(42deg) scale(.74); }

.art-shield { position: absolute; z-index: 3; width: 40%; height: 48%; top: 25%; left: 30%; border: 7px solid var(--art-dark); border-radius: 34% 34% 46% 46%; background: var(--label); clip-path: polygon(50% 0,100% 16%,91% 72%,50% 100%,9% 72%,0 16%); }
.art-shield::after { content: ""; position: absolute; width: 18%; height: 38%; top: 26%; left: 40%; border-right: 6px solid var(--field); border-bottom: 6px solid var(--field); transform: rotate(42deg); }
.art-scan { position: absolute; z-index: 4; top: 45%; left: 15%; width: 70%; height: 7px; border-radius: 8px; background: var(--tag); box-shadow: 0 0 18px var(--tag); transform: rotate(-9deg); }
.art-redaction { position: absolute; z-index: 3; width: 38%; height: 12%; right: 8%; bottom: 14%; border-radius: 4px; background: var(--art-dark); box-shadow: -40px -22px 0 -5px var(--art-dark); }

.art-sheet { position: absolute; z-index: 3; width: 42%; height: 56%; top: 21%; border: 5px solid var(--art-dark); border-radius: 8px; background: var(--label); box-shadow: 7px 8px 0 color-mix(in srgb, var(--art-dark) 22%, transparent); }
.art-sheet::after { content: ""; position: absolute; inset: 22% 16%; background: repeating-linear-gradient(to bottom,var(--field) 0 5px,transparent 5px 14px); }
.art-sheet-a { left: 13%; transform: rotate(-9deg); }
.art-sheet-b { right: 11%; transform: rotate(8deg) translateY(5%); }
.variant-2 .art-sheet-a { transform: rotate(8deg) translateY(8%); }
.variant-3 .art-sheet-b { transform: rotate(-5deg) translate(-28%,5%); }
.variant-4 .art-sheet-a { transform: rotate(-16deg) translate(18%,2%); }
.variant-5 .art-sheet-b { transform: rotate(16deg) translate(-8%,-5%); }
.variant-6 .art-sheet-a { transform: rotate(3deg) scale(.88) translate(15%,5%); }
.art-transfer { position: absolute; z-index: 5; width: 30%; height: 9px; top: 50%; left: 35%; background: var(--tag); transform: rotate(-5deg); }
.art-transfer::after { content: ""; position: absolute; top: -10px; right: -2px; border: 14px solid transparent; border-left-color: var(--tag); }

.art-book { position: absolute; z-index: 3; width: 37%; height: 46%; top: 35%; border: 5px solid var(--art-dark); background: var(--label); }
.art-book::after { content: ""; position: absolute; top: 14%; bottom: 14%; width: 4px; background: var(--field); }
.art-book-a { left: 15%; border-radius: 9px 2px 2px 9px; transform: rotate(-8deg); }
.art-book-a::after { right: 10%; }
.art-book-b { right: 15%; border-radius: 2px 9px 9px 2px; transform: rotate(8deg); }
.art-book-b::after { left: 10%; }
.art-node { position: absolute; z-index: 4; width: 10%; aspect-ratio: 1; border: 4px solid var(--art-dark); border-radius: 50%; background: var(--tag); box-shadow: 0 0 0 5px color-mix(in srgb, var(--label) 36%, transparent); }
.art-node-a { top: 12%; left: 18%; }.art-node-b { top: 18%; right: 20%; }.art-node-c { top: 39%; left: 45%; }

.art-map { position: absolute; z-index: 2; inset: 20% 12% 18%; border: 5px solid var(--art-dark); border-radius: 43% 57% 38% 62%; background: var(--label); transform: rotate(-6deg); }
.art-map::after { content: ""; position: absolute; inset: 18%; background: linear-gradient(35deg,transparent 45%,var(--field) 46% 51%,transparent 52%),linear-gradient(145deg,transparent 45%,var(--field) 46% 51%,transparent 52%); opacity: .55; }
.art-pin { position: absolute; z-index: 4; width: 14%; aspect-ratio: .8; border: 4px solid var(--art-dark); border-radius: 50% 50% 50% 0; background: var(--tag); transform: rotate(-45deg); }
.art-pin-a { top: 28%; left: 28%; }.art-pin-b { top: 42%; right: 22%; transform: rotate(-45deg) scale(.72); }
.art-chart { position: absolute; z-index: 5; right: 10%; bottom: 12%; width: 38%; height: 28%; border: 4px solid var(--art-dark); border-radius: 7px; background: repeating-linear-gradient(to right,var(--tag) 0 12%,transparent 12% 22%); transform: skewY(-7deg); }

.art-box { position: absolute; z-index: 3; width: 28%; height: 20%; border: 4px solid var(--art-dark); border-radius: 8px; background: var(--label); box-shadow: 5px 5px 0 color-mix(in srgb, var(--art-dark) 24%, transparent); }
.art-box-a { top: 20%; left: 9%; }.art-box-b { top: 43%; left: 37%; background: var(--tag); }.art-box-c { right: 8%; bottom: 13%; }
.art-flow { position: absolute; z-index: 2; width: 62%; height: 42%; top: 29%; left: 21%; border-right: 8px solid var(--tag); border-bottom: 8px solid var(--tag); border-radius: 0 0 35px; transform: rotate(8deg); }
.variant-2 .art-box-b { top: 16%; left: 54%; }.variant-2 .art-box-c { right: 14%; bottom: 15%; }.variant-3 .art-box-a { top: 48%; }.variant-3 .art-box-b { top: 17%; }

.art-radar { position: absolute; z-index: 2; width: 62%; aspect-ratio: 1; top: 18%; left: 19%; border: 5px solid var(--art-dark); border-radius: 50%; background: repeating-radial-gradient(circle,transparent 0 12%,color-mix(in srgb,var(--label) 64%,transparent) 13% 15%); }
.art-pulse { position: absolute; z-index: 4; width: 78%; height: 22%; top: 46%; left: 11%; background: var(--label); clip-path: polygon(0 52%,24% 52%,31% 12%,40% 86%,49% 42%,59% 42%,65% 3%,73% 70%,80% 52%,100% 52%,100% 68%,83% 68%,72% 100%,66% 48%,61% 70%,52% 70%,39% 100%,32% 54%,29% 68%,0 68%); }
.art-cross { position: absolute; z-index: 5; width: 13%; height: 36%; top: 31%; left: 44%; background: var(--tag); }
.art-cross::after { content: ""; position: absolute; width: 280%; height: 36%; top: 32%; left: -90%; background: var(--tag); }
.art-signal { position: absolute; z-index: 5; right: 10%; top: 12%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--label); box-shadow: 0 0 0 8px color-mix(in srgb,var(--label) 44%,transparent),0 0 0 17px color-mix(in srgb,var(--label) 20%,transparent); }

.art-calendar { position: absolute; z-index: 3; width: 52%; height: 54%; top: 23%; left: 13%; border: 5px solid var(--art-dark); border-radius: 9px; background: repeating-linear-gradient(90deg,var(--label) 0 25%,color-mix(in srgb,var(--field) 25%,var(--label)) 25% 27%); box-shadow: inset 0 18% 0 var(--tag); transform: rotate(-7deg); }
.art-certificate { position: absolute; z-index: 4; width: 43%; height: 48%; right: 10%; bottom: 13%; border: 5px solid var(--art-dark); border-radius: 8px; background: var(--label); transform: rotate(9deg); }
.art-certificate::after { content: "✓"; position: absolute; inset: 20% 0 0; color: var(--field); font-size: clamp(2rem,6vw,4.5rem); font-weight: 900; text-align: center; }
.art-pencil { position: absolute; z-index: 5; width: 58%; height: 8%; right: -4%; top: 29%; border: 4px solid var(--art-dark); border-radius: 8px; background: var(--tag); transform: rotate(-32deg); }

.art-window { position: absolute; z-index: 3; inset: 20% 15% 19%; border: 5px solid var(--art-dark); border-radius: 11px; background: var(--label); box-shadow: inset 0 18% 0 var(--tag); transform: rotate(-4deg); }
.art-window::after { content: ""; position: absolute; inset: 34% 12% 14%; background: linear-gradient(90deg,var(--field) 0 20%,transparent 20% 28%,var(--field) 28% 58%,transparent 58% 66%,var(--field) 66%); opacity: .78; }
.art-cursor { position: absolute; z-index: 5; width: 24%; aspect-ratio: .8; left: 43%; top: 42%; background: var(--art-dark); clip-path: polygon(0 0,100% 66%,61% 72%,78% 100%,60% 100%,43% 74%,15% 100%); transform: rotate(-11deg); }
.art-gear { position: absolute; z-index: 4; border: 7px dotted var(--art-dark); border-radius: 50%; background: var(--tag); }
.art-gear-a { width: 22%; aspect-ratio: 1; top: 12%; right: 6%; }.art-gear-b { width: 15%; aspect-ratio: 1; right: 28%; bottom: 10%; }
.review-featured-copy { min-width: 0; }
.review-index { display: inline-flex; padding: .45rem .6rem; border-radius: 4px; color: #fff; background: var(--review-blue); font-size: .8rem; font-weight: 800; }
.review-featured-copy h3 { margin: .75rem 0 .5rem; font-size: clamp(2.4rem,5vw,4.3rem); line-height: .95; letter-spacing: -.07em; }
.review-featured-copy > p { max-width: 720px; margin: 0; color: #514a42; font-size: 1rem; line-height: 1.72; }
.review-featured-copy > .review-featured-lead { margin-bottom: .75rem; color: var(--review-blue); font-size: 1.25rem; font-weight: 800; line-height: 1.42; }
.review-test-result { display: grid; gap: .22rem; margin-top: 1rem; padding: .75rem .85rem; border-left: 7px solid var(--review-yellow); border-radius: 5px; background: #e9e2d6; }
.review-test-result small { color: var(--review-blue); font-size: .76rem; font-weight: 800; }
.review-test-result b { font-size: .95rem; line-height: 1.45; }
.review-public-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin: 1rem 0 0; }
.review-public-stats > div { display: grid; gap: .18rem; padding: .65rem .75rem; border-radius: 6px; background: #e9e2d6; }
.review-public-stats dt { color: var(--review-blue); font-size: .72rem; font-weight: 800; }
.review-public-stats dd { margin: 0; font-size: .92rem; font-weight: 850; line-height: 1.35; }
.review-featured-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.review-featured-actions button, .review-featured-actions a, .review-source-links a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 .85rem; border: 1.5px solid #111; border-radius: 6px; color: #111; background: #fff9e8; box-shadow: 3px 3px 0 #111; cursor: pointer; font-size: .84rem; font-weight: 800; text-decoration: none; }
.review-featured-actions button { background: var(--review-mint); }
.review-related-personal { display: grid; width: 100%; grid-template-columns: 72px minmax(0,1fr) 28px; gap: .8rem; align-items: center; margin-top: 1.25rem; padding: .6rem; border: 1.5px solid #111; border-radius: 8px; background: #e9e2d6; cursor: pointer; text-align: left; }
.review-related-personal > span:first-child { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 5px; background: #111; }
.review-related-personal img { width: 100%; height: 100%; object-fit: cover; }
.review-related-personal i { position: absolute; top: 5px; right: 5px; padding: 2px 4px; border-radius: 3px; background: #fff9e8; font-size: .65rem; font-style: normal; font-weight: 800; }
.review-related-personal > span:nth-child(2) { display: grid; min-width: 0; gap: .12rem; }
.review-related-personal small { color: var(--review-blue); font-size: .74rem; font-weight: 800; }
.review-related-personal b { font-size: 1rem; }
.review-related-personal em { color: #5b544c; font-size: .82rem; font-style: normal; line-height: 1.42; }
.review-related-personal > strong { font-size: 1.2rem; text-align: center; }

.review-catalog { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #111; }
.review-catalog-tools { display: grid; grid-template-columns: minmax(240px,.42fr) auto minmax(0,1fr); gap: .75rem 1rem; align-items: end; }
.review-search { display: grid; gap: .42rem; }
.review-search span { color: var(--review-blue); font-size: .8rem; font-weight: 850; }
.review-search input { width: 100%; min-height: 48px; padding: 0 .9rem; border: 1.5px solid #111; border-radius: 7px; background: #fff9e8; font: inherit; font-size: .95rem; outline: none; }
.review-search input:focus { box-shadow: 0 0 0 4px color-mix(in srgb,var(--review-mint) 55%,transparent); }
.review-view-switch { display: flex; align-items: center; gap: .28rem; }
.review-view-switch > span { margin-right: .18rem; color: var(--review-blue); font-size: .8rem; font-weight: 850; }
.review-view-switch button { min-height: 40px; padding: 0 .62rem; border: 1.5px solid #111; border-radius: 6px; background: #fff9e8; cursor: pointer; font-size: .76rem; font-weight: 800; }
.review-view-switch button.is-active { color: #fff; background: var(--review-blue); }
.review-family-filters { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.review-family-filters button { min-height: 40px; padding: 0 .72rem; border: 1.5px solid #111; border-radius: 999px; background: #fff9e8; cursor: pointer; font-size: .78rem; font-weight: 800; }
.review-family-filters button.is-active { color: #fff; background: var(--review-blue); }
.review-ranking-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 2.2rem 0 1.2rem; }
.review-ranking-head h3 { margin: .25rem 0 0; font-size: clamp(1.7rem,3vw,2.6rem); letter-spacing: -.055em; }
.review-ranking-head > p { max-width: 460px; margin: 0; color: #514a42; font-size: .95rem; line-height: 1.6; }
.review-ranking-grid { display: grid; gap: 1.25rem 1rem; }
.review-ranking-grid.is-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.review-ranking-grid.is-compact { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1rem .75rem; }
.review-ranking-grid.is-list { grid-template-columns: minmax(0,1fr); gap: .42rem; }
.review-ranked-item { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr); gap: .55rem; align-content: start; }
.review-ranked-item > header, .review-ranked-item > footer { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: .7rem; }
.review-ranked-item > header { padding: 0 .15rem; }
.review-ranked-item > header span { color: var(--field); font-size: 1rem; font-weight: 900; }
.review-ranked-item > header b { display: inline-flex; min-width: 52px; min-height: 32px; align-items: center; justify-content: center; border-radius: 5px; color: #fff; background: var(--field); font-size: .9rem; }
.review-ranked-item > footer { align-items: flex-start; padding: 0 .12rem; }
.review-ranked-item > footer span { flex: 0 0 auto; padding: .28rem .4rem; border-radius: 4px; color: #111; background: var(--tag); font-size: .67rem; font-weight: 850; }
.review-ranked-item > footer b { min-width: 0; flex: 1 1 auto; overflow: hidden; color: #5a534b; font-size: .72rem; line-height: 1.35; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.review-ranked-item > footer button { flex: 0 0 auto; min-height: 28px; padding: .28rem .42rem; border: 1px solid #111; border-radius: 5px; background: #fff9e8; cursor: pointer; font: inherit; font-size: .67rem; font-weight: 900; }
.review-ranked-item .card-side { box-shadow: 5px 6px 0 color-mix(in srgb,var(--field) 74%,#111); }
.review-ranked-item .review-card-object.is-compact { width: 100%; max-width: 100%; min-width: 0; }
.review-ranking-grid.is-compact .review-ranked-item { gap: .38rem; }
.review-ranking-grid.is-compact .review-ranked-item > header b { min-height: 27px; padding-inline: .42rem; font-size: .72rem; }
.review-ranking-grid.is-compact .review-ranked-item > header span { font-size: .82rem; }
.review-list-row { display: grid; width: 100%; min-height: 82px; grid-template-columns: 48px 72px minmax(0,1fr) 88px minmax(100px,170px); gap: .8rem; align-items: center; padding: .45rem .7rem; border: 1.5px solid #111; border-radius: 8px; background: #fff9e8; cursor: pointer; text-align: left; }
.review-list-row:hover { transform: translateX(3px); box-shadow: -5px 0 0 var(--field); }
.review-list-rank { color: var(--field); font-size: .9rem; font-weight: 900; }
.review-list-thumb { position: relative; display: block; width: 72px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; background: var(--field); }
.review-list-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.review-list-copy { display: grid; min-width: 0; gap: .12rem; }
.review-list-copy small { color: var(--field); font-size: .66rem; font-weight: 800; }
.review-list-copy b { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.review-list-copy em { overflow: hidden; color: #5a534b; font-size: .78rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.review-list-metrics { display: grid; gap: .14rem; justify-items: end; }
.review-list-metrics b { color: var(--field); font-size: .88rem; }
.review-list-metrics small { color: #5a534b; font-size: .7rem; font-weight: 700; }
.review-list-author { overflow: hidden; color: #5a534b; font-size: .75rem; font-weight: 700; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.review-empty { display: grid; justify-items: center; gap: .25rem; padding: 4rem 1rem; border: 1.5px dashed #766e64; border-radius: 10px; background: #fff9e8; text-align: center; }
.review-empty b { font-size: 1.15rem; }.review-empty span { color: #5a534b; font-size: .92rem; }

/* Public review detail window */
.review-dialog { width: min(1180px,calc(100vw - 40px)); }
.review-dialog .card-dialog-head { box-shadow: inset 0 7px 0 #123a8c; }
.review-dialog .eyebrow, .review-dialog .dialog-status { color: #123a8c; }
.review-dialog-body { align-items: start; }
.review-verification-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: .7rem; margin-top: 1rem; }
.review-verification-grid > section { padding: .9rem; border-radius: 8px; background: #fff9e8; }
.review-verification-grid section > small { display: block; margin-bottom: .55rem; color: #123a8c; font-size: .76rem; font-weight: 800; }
.review-verification-grid p { display: grid; gap: .12rem; margin: 0; padding: .45rem 0; border-bottom: 1px solid #d8cfc1; }
.review-verification-grid p:last-child { border-bottom: 0; }
.review-verification-grid p b { font-size: .84rem; }
.review-verification-grid p span, .review-verification-grid li { color: #4f4941; font-size: .96rem; line-height: 1.55; }
.review-verification-grid ul { margin: 0; padding-left: 1.1rem; }
.review-verification-grid li + li { margin-top: .45rem; }
.review-source-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.review-source-links a { min-height: 38px; box-shadow: none; background: #5de1c4; }
.review-detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1.2rem 1.75rem 1.5rem; border-top: 2px solid #111; background: #e9e2d6; }
.review-detail-columns article { padding: 1rem; border: 1.5px solid #111; border-radius: 8px; background: #fff9e8; }
.review-detail-columns article.is-caution { box-shadow: inset 7px 0 0 #f4e84a; }
.review-detail-columns article > span { color: #123a8c; font-size: .82rem; font-weight: 800; }
.review-detail-columns ul { margin: .65rem 0 0; padding-left: 1.2rem; }
.review-detail-columns li { color: #4f4941; font-size: 1rem; line-height: 1.62; }
.review-dialog .dialog-lead { font-size: 1.22rem; line-height: 1.46; }
.review-dialog .dialog-summary { font-size: 1rem; line-height: 1.68; }
.review-detail-columns li + li { margin-top: .45rem; }
.review-dialog-related { padding: 1.25rem 1.75rem 1.5rem; border-top: 2px solid #111; background: #fff9e8; }
.review-dialog-related h3 { margin: .2rem 0 .85rem; font-size: 1.35rem; }
.review-dialog-related .review-related-personal { max-width: 720px; margin-top: 0; }

/* Review method */
.criteria-intro { box-shadow: 10px 10px 0 #5de1c4; }
.review-criteria-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .6rem; }
.review-criteria-grid article { min-height: 220px; padding: 1rem; border: 1.5px solid #111; border-radius: 8px; background: #fff9e8; box-shadow: inset 0 7px 0 #123a8c; }
.review-criteria-grid span { color: #123a8c; font-size: .8rem; font-weight: 800; }
.review-criteria-grid h3 { margin: 1.5rem 0 .5rem; font-size: 1.3rem; letter-spacing: -.04em; }
.review-criteria-grid p { margin: 0; color: #514a42; font-size: .95rem; line-height: 1.62; }
.review-method-rules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid #111; }
.review-method-rules article { padding: 1rem; border-radius: 7px; background: #fff9e8; }
.review-method-rules b { color: #123a8c; font-size: 1rem; }
.review-method-rules p { margin: .4rem 0 0; color: #514a42; font-size: .95rem; line-height: 1.6; }

@media (max-width: 1180px) {
  .site-header { align-items: stretch; flex-direction: column; gap: .75rem; }
  .brand-channel-cluster { justify-content: space-between; }
  .site-header nav { width: 100%; justify-content: flex-end; }
  .review-ranking-grid.is-compact { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .review-channel-intro { grid-template-columns: 1fr; margin-inline: 1.25rem; }
  .review-channel-intro dl { grid-column: 1; }
  .review-featured-list, .review-criteria-section { margin-inline: 1.25rem; }
  .review-featured { grid-template-columns: 1fr; }
  .review-card-stage { max-width: 430px; margin-inline: auto; }
  .review-criteria-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-criteria-grid article:last-child { grid-column: 1 / -1; min-height: 150px; }
  .review-dialog-body { grid-template-columns: 1fr; }
  .review-dialog .card-dialog-card { max-width: 360px; margin-inline: auto; }
  .review-catalog-tools { grid-template-columns: 1fr; }
  .review-view-switch { justify-content: flex-start; }
  .review-family-filters { justify-content: flex-start; }
  .review-ranking-grid.is-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-ranking-grid.is-compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .review-ranking-head { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .review-list-row { grid-template-columns: 42px 64px minmax(0,1fr) 82px; }
  .review-list-author { display: none; }
}

@media (max-width: 620px) {
  .brand-channel-cluster { align-items: stretch; flex-direction: column; gap: .65rem; }
  .channel-switcher { width: 100%; }
  .channel-switcher button { min-width: 0; flex: 1 1 0; }
  .site-header nav { justify-content: flex-start; }
  .site-header nav .public-source-nav { min-height: 38px; padding-inline: .55rem; font-size: .74rem; }
  .review-channel-intro { margin: 1.25rem 1rem 3rem; padding: 1.25rem; border-radius: 13px; box-shadow: 6px 6px 0 var(--review-blue); }
  .review-channel-intro h1 { font-size: 2.25rem; }
  .review-channel-intro > p { font-size: 1rem; }
  .review-channel-intro dl { grid-template-columns: 1fr; }
  .review-featured-list, .review-criteria-section { margin: 0 1rem 3rem; padding: 1rem; border-radius: 14px; }
  .review-featured-list .section-heading, .review-criteria-section .section-heading { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .review-featured { padding: .8rem; border-radius: 11px; box-shadow: 5px 5px 0 var(--review-blue); }
  .review-card-stage { padding: .65rem; }
  .review-featured-copy h3 { font-size: 2.8rem; }
  .review-related-personal { grid-template-columns: 64px minmax(0,1fr) 22px; }
  .review-related-personal em { font-size: .78rem; }
  .review-verification-grid, .review-detail-columns, .review-method-rules { grid-template-columns: 1fr; }
  .review-detail-columns, .review-dialog-related { padding: 1rem; }
  .review-criteria-grid { grid-template-columns: 1fr; }
  .review-criteria-grid article, .review-criteria-grid article:last-child { grid-column: auto; min-height: 0; }
  .review-criteria-grid h3 { margin-top: .9rem; }
  .dialog-review-links em { font-size: .76rem; }
  .review-catalog { margin-top: 2rem; padding-top: 1.25rem; }
  .review-family-filters { flex-wrap: nowrap; margin-right: -1rem; padding-right: 1rem; overflow-x: auto; }
  .review-family-filters button { flex: 0 0 auto; }
  .review-ranking-grid.is-cards, .review-ranking-grid.is-compact { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
  .review-ranked-item { width: min(320px,100%); justify-self: center; }
  .review-ranked-item > header, .review-ranked-item > footer { width: 100%; }
  .review-card-object.is-compact .card-copy-panel > b { font-size: .76rem; }
  .review-list-row { min-height: 72px; grid-template-columns: 38px 58px minmax(0,1fr) 66px; gap: .5rem; padding: .38rem .5rem; }
  .review-list-thumb { width: 58px; }
  .review-list-copy em { display: none; }
  .review-list-metrics b { font-size: .78rem; }
  .review-list-metrics small { font-size: .64rem; }
  .review-public-stats { grid-template-columns: 1fr; }
}

/* TCG relationship playground */
.relationship-main {
  --relation-navy: #0e2d69;
  --relation-blue: #1658d7;
  --relation-mint: #5de1c4;
  --relation-yellow: #f4e84a;
  --relation-coral: #ff6848;
  --relation-purple: #7d45c5;
  min-height: 100vh;
  padding-bottom: 5rem;
  background:
    linear-gradient(90deg, var(--relation-blue) 0 25%, var(--relation-mint) 25% 50%, var(--relation-yellow) 50% 75%, var(--relation-coral) 75%) top / 100% 8px no-repeat,
    #f4efe5;
}

.relation-view-tabs {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 230px));
  justify-content: center;
  gap: .55rem;
  margin: 0 0 .65rem;
  padding: .7rem clamp(.75rem, 1.4vw, 1.25rem) 0;
}
.relation-view-tabs button { display: grid; min-height: 62px; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: .55rem; padding: .55rem .65rem; border: 1.5px solid #111; border-radius: 10px; background: #e7dfd2; cursor: pointer; text-align: left; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.relation-view-tabs button:hover { transform: translateY(-3px); background: #fff9e8; }
.relation-view-tabs button.is-active { color: #fff; background: var(--relation-navy); box-shadow: 0 6px 0 var(--relation-mint); transform: translateY(-4px); }
.relation-view-tabs i { display: grid; width: 30px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: .7rem; font-style: normal; font-weight: 800; }
.relation-view-tabs .is-active i { color: #111; background: var(--relation-yellow); }
.relation-view-tabs span { display: grid; min-width: 0; gap: .16rem; }
.relation-view-tabs b { font-size: .86rem; }
.relation-view-tabs small { color: #5a534b; font-size: .68rem; line-height: 1.3; }
.relation-view-tabs .is-active small { color: #dce8ff; }

.relation-view-stage { width: 100%; max-width: none; margin: 0; padding: 0 clamp(.75rem, 1.4vw, 1.25rem); }
.tcg-view-panel { overflow: hidden; border: 2px solid #111; border-radius: 16px; background: #e9e2d6; box-shadow: 7px 7px 0 #111; animation: relationPanelIn .5s cubic-bezier(.2,.8,.2,1) both; }
.tcg-view-heading { display: grid; min-height: 54px; grid-template-columns: minmax(180px, 300px) minmax(360px, 1fr); align-items: center; gap: .8rem; padding: .6rem .9rem; border-bottom: 2px solid #111; background: #fff9e8; }
.tcg-view-heading h2 { margin: 0; font-size: clamp(1.16rem, 1.45vw, 1.42rem); line-height: 1.2; letter-spacing: -.035em; }
.tcg-view-heading p { max-width: none; margin: 0; color: #514a42; font-size: .98rem; line-height: 1.55; }
.tcg-view-heading p b { color: #111; }

.tcg-relation-card { position: relative; display: grid; width: 100%; padding: .55rem; overflow: hidden; border: 2px solid #111; border-radius: 15px; background: var(--project-accent, #1658d7); box-shadow: 5px 5px 0 #111; cursor: pointer; text-align: left; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.tcg-relation-card:hover { z-index: 4; box-shadow: 9px 10px 0 #111; transform: translateY(-7px) rotate(-1deg); }
.tcg-relation-card.is-active { box-shadow: 0 0 0 5px var(--relation-yellow), 8px 9px 0 #111; }
.tcg-card-art { position: relative; display: block; aspect-ratio: 1.34 / 1; overflow: hidden; border-radius: 9px 9px 5px 5px; background: #d8d0c2; }
.tcg-card-art img { width: 100%; height: 100%; object-fit: cover; }
.tcg-card-art > i { position: absolute; top: .38rem; right: .38rem; padding: .24rem .38rem; border-radius: 5px; color: #111; background: #fff9e8; font-size: .62rem; font-style: normal; font-weight: 900; }
.tcg-card-copy { display: grid; min-height: 118px; align-content: start; gap: .2rem; margin-top: .5rem; padding: .68rem; border-radius: 7px; background: #fff9e8; }
.tcg-card-copy small { color: var(--project-accent, #1658d7); font-size: .7rem; font-weight: 800; }
.tcg-card-copy strong { font-size: 1.06rem; line-height: 1.15; letter-spacing: -.035em; }
.tcg-card-copy em { margin-top: .25rem; color: #4f4941; font-size: .8rem; font-style: normal; font-weight: 700; line-height: 1.4; }
.tcg-relation-card.is-compact { padding: .42rem; border-radius: 12px; box-shadow: 4px 4px 0 #111; }
.tcg-relation-card.is-compact .tcg-card-art { border-radius: 7px 7px 4px 4px; }
.tcg-relation-card.is-compact .tcg-card-copy { min-height: 98px; margin-top: .38rem; padding: .55rem; }
.tcg-relation-card.is-compact .tcg-card-copy strong { font-size: .9rem; }
.tcg-relation-card.is-compact .tcg-card-copy em { font-size: .76rem; }
.tcg-flip-shell { position: relative; width: 100%; aspect-ratio: 63 / 88; perspective: 1100px; }
.tcg-flip-inner { display: grid; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 560ms cubic-bezier(.2,.72,.2,1); }
.tcg-flip-shell.is-flipped .tcg-flip-inner { transform: rotateY(180deg); animation: gameCardSpinToBack 560ms cubic-bezier(.2,.72,.2,1) both; }
.tcg-flip-shell.is-returning .tcg-flip-inner { transform: rotateY(0deg); animation: gameCardSpinToFront 560ms cubic-bezier(.2,.72,.2,1) both; }
.tcg-flip-inner > .tcg-relation-card, .tcg-relation-card-back { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; backface-visibility: hidden; }
.tcg-flip-shell .tcg-relation-card { grid-template-rows: auto minmax(0, 1fr); }
.tcg-flip-shell .tcg-card-copy { min-height: 0; overflow: hidden; }
.tcg-relation-card-back { position: relative; z-index: 2; display: grid; align-content: start; gap: .7rem; padding: 1rem; overflow: hidden; border: 2px solid #111; border-radius: 15px; background: var(--label, #fff9e8); box-shadow: 5px 5px 0 #111; color: #111; transform: rotateY(180deg); }
.tcg-back-face-toggle { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tcg-relation-card-back > :not(.tcg-back-face-toggle) { position: relative; z-index: 1; pointer-events: none; }
.tcg-relation-card-back > footer { pointer-events: auto; }
.tcg-relation-card-back::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--project-accent); }
.tcg-relation-card-back > small { padding-top: .3rem; color: var(--project-accent); font-size: .64rem; font-weight: 900; letter-spacing: .06em; }
.tcg-relation-card-back > strong { overflow-wrap: anywhere; font-size: 1.2rem; line-height: 1.2; }
.tcg-relation-card-back > p { display: -webkit-box; margin: 0; overflow: hidden; overflow-wrap: anywhere; font-size: .82rem; font-weight: 800; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tcg-relation-card-back > div { display: grid; gap: .25rem; padding: .65rem; border-left: 6px solid var(--project-accent); background: #f4efe5; }
.tcg-relation-card-back > div b { color: var(--project-accent); font-size: .68rem; }
.tcg-relation-card-back > div span { display: -webkit-box; overflow: hidden; font-size: .78rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.tcg-relation-card-back footer { display: grid; grid-template-columns: 1fr; gap: .45rem; margin-top: auto; }
.tcg-relation-card-back footer button { min-height: 38px; padding: .45rem; border: 1.5px solid #111; border-radius: 7px; background: #fff; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 900; }
.tcg-relation-card-back footer button:last-child { background: var(--relation-yellow); }
.tcg-flip-shell.is-compact .tcg-relation-card-back { gap: .45rem; padding: .72rem; border-radius: 12px; }
.tcg-flip-shell.is-compact .tcg-relation-card-back > strong { font-size: .95rem; }
.tcg-flip-shell.is-compact .tcg-relation-card-back > p { display: -webkit-box; overflow: hidden; font-size: .72rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tcg-flip-shell.is-compact .tcg-relation-card-back > div span { font-size: .7rem; -webkit-line-clamp: 3; }
.tcg-flip-shell.is-compact .tcg-relation-card-back footer button { min-height: 30px; padding: .3rem; font-size: .64rem; }
.tcg-flip-shell.is-compact .tcg-relation-card { padding: .36rem; }
.tcg-flip-shell.is-compact .tcg-card-art { aspect-ratio: 1.55 / 1; }
.tcg-flip-shell.is-compact .tcg-card-copy { grid-template-rows: auto auto minmax(0, 1fr) auto; gap: .12rem; margin-top: .3rem; padding: .42rem .46rem; }
.tcg-flip-shell.is-compact .tcg-card-copy small { display: -webkit-box; overflow: hidden; line-height: 1.25; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tcg-flip-shell.is-compact .tcg-card-copy strong { display: -webkit-box; overflow: hidden; line-height: 1.16; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tcg-flip-shell.is-compact .tcg-card-copy em { display: -webkit-box; overflow: hidden; margin-top: .08rem; font-size: .7rem; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tcg-flip-shell.is-compact .relation-card-facts { padding-top: .2rem; font-size: .62rem; }

/* 01 summon field */
.summon-field { position: relative; min-height: 760px; overflow: hidden; background: radial-gradient(circle at center, rgba(244,232,74,.72) 0 10%, rgba(93,225,196,.25) 10% 25%, transparent 25% 47%), linear-gradient(135deg, #d9eef5 0 24%, #fff9e8 24% 76%, #f7d9d0 76%); isolation: isolate; }
.summon-field::before { position: absolute; inset: 7%; border: 2px solid rgba(14,45,105,.34); border-radius: 50%; content: ""; animation: fieldRingRotate 16s linear infinite; }
.summon-field::after { position: absolute; inset: 17%; border: 1px dashed rgba(14,45,105,.5); border-radius: 50%; content: ""; animation: fieldRingRotate 12s linear infinite reverse; }
.field-beams { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.field-beams line { stroke: #1658d7; stroke-width: .42; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; animation: beamDraw .8s ease calc(var(--beam-delay) + 180ms) both, beamFlow 1.5s linear 1.2s infinite; }
.field-core { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; width: 224px; justify-items: center; transform: translate(-50%, -50%); animation: coreSummon .75s cubic-bezier(.15,.85,.2,1.2) both; }
.field-core .tcg-relation-card { width: 208px; }
.summon-ring { position: absolute; top: 43%; left: 50%; z-index: -1; width: 285px; aspect-ratio: 1; border: 3px solid var(--relation-blue); border-radius: 50%; transform: translate(-50%, -50%); animation: summonPulse 2.2s ease-in-out infinite; }
.summon-ring i { position: absolute; inset: 10%; border: 2px solid var(--relation-coral); transform: rotate(45deg); }
.summon-ring i:nth-child(2) { inset: 24%; border-color: var(--relation-mint); transform: rotate(22deg); }
.summon-ring i:nth-child(3) { inset: 38%; border-color: var(--relation-yellow); transform: rotate(68deg); }
.field-detail-button { margin-top: .9rem; padding: .65rem .9rem; border: 1.5px solid #111; border-radius: 8px; color: #fff; background: #111; cursor: pointer; font-size: .78rem; font-weight: 800; }
.field-satellites { position: absolute; inset: 0; z-index: 2; }
.field-slot { position: absolute; width: 156px; animation: satelliteDeal .58s cubic-bezier(.16,.85,.25,1.15) var(--deal-delay) both; }
.field-slot.slot-1 { top: 5%; left: 5%; transform: rotate(-5deg); }
.field-slot.slot-2 { top: 2%; left: 50%; transform: translateX(-50%) rotate(2deg); }
.field-slot.slot-3 { top: 5%; right: 5%; transform: rotate(5deg); }
.field-slot.slot-4 { bottom: 5%; left: 5%; transform: rotate(4deg); }
.field-slot.slot-5 { bottom: 2%; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.field-slot.slot-6 { right: 5%; bottom: 5%; transform: rotate(-4deg); }
.field-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; padding: 1rem 1.5rem; border-top: 2px solid #111; background: #fff9e8; }
.field-legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 800; }
.field-legend i { width: 27px; height: 5px; border-radius: 5px; background: var(--relation-blue); }
.field-legend .is-combo { background: var(--relation-coral); }
.field-legend .is-focus { background: var(--relation-yellow); box-shadow: 0 0 0 1px #111; }

/* 02 fusion */
.fusion-recipe-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; padding: 1rem 1.25rem; border-bottom: 2px solid #111; background: #d9d0ef; }
.fusion-recipe-tabs button { display: grid; min-height: 70px; align-content: center; gap: .16rem; padding: .62rem; border: 1.5px solid #111; border-radius: 9px; background: #fff9e8; cursor: pointer; text-align: left; }
.fusion-recipe-tabs button:hover { background: #f4e84a; }
.fusion-recipe-tabs button.is-active { color: #fff; background: var(--relation-purple); box-shadow: inset 0 -6px 0 var(--relation-mint); }
.fusion-recipe-tabs small { font-size: .61rem; font-weight: 800; }
.fusion-recipe-tabs b { font-size: .77rem; line-height: 1.3; }
.fusion-stage { position: relative; display: grid; min-height: 550px; grid-template-columns: minmax(0, 1.4fr) 150px minmax(210px, .6fr); align-items: center; gap: 1rem; padding: 2rem 2.2rem; overflow: hidden; background: radial-gradient(circle at 62% 50%, rgba(244,232,74,.72), transparent 18%), linear-gradient(120deg, #f4d5cb, #e1d8ef 45%, #cdeee8); }
.fusion-stage::before { position: absolute; inset: -55% 30% -55% 30%; border: 2px dashed rgba(125,69,197,.55); border-radius: 50%; content: ""; animation: fieldRingRotate 12s linear infinite; }
.fusion-materials { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 1.9rem; }
.fusion-material { position: relative; width: min(150px, 30%); animation: materialHover 2.4s ease-in-out calc(var(--material-index) * 180ms) infinite, fusionMaterialIn .65s cubic-bezier(.2,.8,.2,1) calc(var(--material-index) * 110ms) both; }
.fusion-plus { position: absolute; top: 45%; right: -1.45rem; display: grid; width: 28px; aspect-ratio: 1; place-items: center; border: 1.5px solid #111; border-radius: 50%; background: var(--relation-yellow); font-size: 1.1rem; font-style: normal; font-weight: 900; }
.fusion-gate { position: relative; z-index: 3; width: 132px; aspect-ratio: 1; border: 3px solid #111; border-radius: 50%; background: var(--relation-purple); box-shadow: 0 0 0 9px var(--relation-yellow), 0 0 0 12px #111, 0 0 45px rgba(125,69,197,.75); animation: fusionGate 1.6s ease-in-out infinite; }
.fusion-gate > span { position: absolute; inset: 14%; border: 2px solid var(--relation-mint); border-radius: 42% 58% 55% 45%; animation: fieldRingRotate 2.6s linear infinite; }
.fusion-gate > span:nth-child(2) { inset: 26%; border-color: #fff; animation-direction: reverse; animation-duration: 1.8s; }
.fusion-gate > span:nth-child(3) { inset: 38%; border-color: var(--relation-coral); }
.fusion-gate > b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .72rem; letter-spacing: .12em; }
.fusion-gate > i { --angle: calc(var(--particle) * 30deg); position: absolute; top: 50%; left: 50%; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--relation-yellow); transform: rotate(var(--angle)) translateX(86px); animation: fusionParticle 1.8s ease-in-out calc(var(--particle) * -90ms) infinite; }
.fusion-result { position: relative; z-index: 2; display: grid; justify-items: center; gap: .7rem; animation: resultSummon .9s cubic-bezier(.15,.85,.2,1.2) .35s both; }
.fusion-result > small { padding: .35rem .65rem; border-radius: 999px; color: #fff; background: #111; font-size: .7rem; font-weight: 800; }
.fusion-result .tcg-relation-card { width: 210px; }
.fusion-note { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-top: 2px solid #111; background: #fff9e8; }
.fusion-note > span { color: var(--relation-purple); font-size: .78rem; font-weight: 900; }
.fusion-note p { margin: 0; color: #4f4941; font-size: .9rem; line-height: 1.55; }
.fusion-note button { padding: .65rem .85rem; border: 1.5px solid #111; border-radius: 8px; background: var(--relation-yellow); cursor: pointer; font-size: .74rem; font-weight: 800; }

/* 03 evolution */
.evolution-selector { display: flex; gap: .5rem; padding: 1rem 1.25rem; overflow-x: auto; border-bottom: 2px solid #111; background: #cfe7f7; scrollbar-width: thin; }
.evolution-selector button { display: grid; min-width: 190px; grid-template-columns: 38px 1fr; align-items: center; gap: .55rem; padding: .58rem; border: 1.5px solid #111; border-radius: 9px; background: #fff9e8; cursor: pointer; text-align: left; }
.evolution-selector button.is-active { color: #fff; background: var(--relation-blue); box-shadow: inset 0 -6px 0 var(--relation-yellow); }
.evolution-selector i { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: .66rem; font-style: normal; font-weight: 900; }
.evolution-selector span { display: grid; gap: .1rem; }
.evolution-selector b { font-size: .76rem; }
.evolution-selector small { font-size: .64rem; }
.evolution-route { padding: 1.6rem; background: linear-gradient(160deg, #fff9e8, #e8f2f7); }
.evolution-route > header { display: grid; grid-template-columns: auto minmax(200px, .75fr) minmax(280px, 1.25fr); align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.evolution-route > header > span { padding: .45rem .65rem; border-radius: 6px; color: #fff; background: var(--relation-blue); font-size: .67rem; font-weight: 900; letter-spacing: .08em; }
.evolution-route h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.045em; }
.evolution-route header p { margin: 0; color: #514a42; font-size: .92rem; line-height: 1.55; }
.evolution-track { position: relative; display: flex; align-items: center; gap: 2.4rem; padding: 2.2rem 1rem 1.2rem; overflow-x: auto; }
.evolution-energy { position: absolute; top: 46%; right: 4%; left: 4%; height: 8px; border: 2px solid #111; border-radius: 999px; background: linear-gradient(90deg, var(--relation-mint), var(--relation-yellow), var(--relation-coral), var(--relation-purple)); transform: scaleX(0); transform-origin: left; animation: evolutionCharge 1.5s ease .25s forwards; }
.evolution-stage { position: relative; z-index: 2; display: grid; min-width: 180px; justify-items: center; gap: .55rem; animation: evolutionStageIn .58s cubic-bezier(.2,.8,.2,1.15) calc(var(--stage-index) * 180ms) both; }
.evolution-stage .tcg-relation-card { width: 170px; }
.evolution-level { padding: .32rem .55rem; border: 1.5px solid #111; border-radius: 999px; background: var(--relation-yellow); font-size: .66rem; font-weight: 900; }
.evolution-ability { display: grid; width: 170px; min-height: 68px; align-content: center; gap: .12rem; padding: .55rem; border: 1.5px solid #111; border-radius: 8px; background: #fff; text-align: center; }
.evolution-ability small { color: var(--relation-blue); font-size: .58rem; font-weight: 900; }
.evolution-ability b { font-size: .8rem; }
.evolution-chevron { position: absolute; top: 42%; right: -2rem; color: var(--relation-blue); font-size: 3rem; font-weight: 400; animation: chevronPulse 1.2s ease-in-out infinite; }

/* 04 binder */
.theme-pack-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; padding: 1.25rem; border-bottom: 2px solid #111; background: #d9d0c2; }
.theme-pack { --pack-color: #1658d7; position: relative; display: grid; min-height: 150px; grid-template-columns: 125px minmax(0, 1fr); align-items: center; gap: .8rem; padding: .85rem; overflow: hidden; border: 1.5px solid #111; border-radius: 12px; background: var(--pack-color); cursor: pointer; text-align: left; transition: transform .22s ease, box-shadow .22s ease; }
.theme-pack.pack-2 { --pack-color: #008f79; }
.theme-pack.pack-3 { --pack-color: #e94c38; }
.theme-pack.pack-4 { --pack-color: #6b3ca4; }
.theme-pack:hover { z-index: 2; transform: translateY(-5px) rotate(-.6deg); box-shadow: 7px 8px 0 #111; }
.theme-pack.is-open { box-shadow: inset 0 0 0 6px var(--relation-yellow), 7px 8px 0 #111; }
.pack-fan { position: relative; display: block; width: 115px; height: 115px; }
.pack-fan i { position: absolute; top: 7px; left: 27px; width: 70px; height: 95px; padding: 4px; overflow: hidden; border: 1.5px solid #111; border-radius: 8px; background: #fff9e8; box-shadow: 3px 3px 0 #111; transform: translateX(calc((var(--fan-index) - 1) * 22px)) rotate(calc((var(--fan-index) - 1) * 10deg)); transition: transform .28s ease; }
.theme-pack:hover .pack-fan i { transform: translateX(calc((var(--fan-index) - 1) * 30px)) rotate(calc((var(--fan-index) - 1) * 15deg)) translateY(-5px); }
.pack-fan img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.theme-pack > span:last-child { display: grid; gap: .26rem; color: #fff; }
.theme-pack small { font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.theme-pack b { font-size: 1rem; line-height: 1.18; }
.theme-pack em { width: max-content; padding: .23rem .38rem; border-radius: 4px; color: #111; background: var(--relation-yellow); font-size: .67rem; font-style: normal; font-weight: 900; }
.binder-page { padding: 1.4rem; background: #fff9e8; }
.binder-page > header { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(300px, 1.3fr); gap: 1.2rem; align-items: end; margin-bottom: 1.2rem; }
.binder-page header small { color: var(--relation-blue); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.binder-page h3 { margin: .25rem 0 0; font-size: 2rem; letter-spacing: -.055em; }
.binder-page header p { margin: 0; color: #514a42; font-size: .94rem; line-height: 1.6; }
.binder-pocket-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1rem; border-radius: 14px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(17,17,17,.16) calc(25% - 1px) 25%), linear-gradient(#d9eef5, #f2ddd7); box-shadow: inset 0 0 0 2px #111; }
.binder-pocket { padding: .55rem; border: 1px solid rgba(17,17,17,.32); border-radius: 11px; background: rgba(255,255,255,.3); animation: pocketFlip .58s cubic-bezier(.2,.8,.2,1.15) calc(var(--pocket-index) * 110ms) both; perspective: 800px; }

/* 05 combo relay */
.relay-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 2px solid #111; background: #ffd8cc; }
.relay-deck-tabs { display: flex; gap: .42rem; overflow-x: auto; }
.relay-deck-tabs button { min-width: max-content; padding: .55rem .7rem; border: 1.5px solid #111; border-radius: 7px; background: #fff9e8; cursor: pointer; font-size: .72rem; font-weight: 800; }
.relay-deck-tabs button.is-active { color: #fff; background: var(--relation-navy); box-shadow: inset 0 -5px 0 var(--relation-mint); }
.relay-play { display: inline-flex; min-width: 125px; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; gap: .45rem; padding: .65rem .9rem; border: 1.5px solid #111; border-radius: 8px; background: var(--relation-yellow); box-shadow: 4px 4px 0 #111; cursor: pointer; font-size: .77rem; font-weight: 900; }
.relay-play:disabled { cursor: wait; opacity: .7; }
.relay-board { padding: 1.5rem; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--deck-accent) 45%, transparent), transparent 42%), #10214d; color: #fff; }
.relay-board > header { display: grid; grid-template-columns: minmax(0, .75fr) minmax(260px, 1.25fr); align-items: end; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.3); }
.relay-board header small { color: var(--relation-mint); font-size: .67rem; font-weight: 900; letter-spacing: .1em; }
.relay-board h3 { margin: .25rem 0 0; font-size: 1.8rem; }
.relay-board header p { margin: 0; color: #dce8ff; font-size: .92rem; line-height: 1.55; }
.relay-chain { display: flex; align-items: center; gap: 2rem; padding: 2rem .6rem; overflow-x: auto; }
.relay-step { position: relative; display: grid; min-width: 156px; justify-items: center; gap: .55rem; opacity: .44; filter: grayscale(.55); transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.relay-step.is-fired { opacity: 1; filter: none; }
.relay-step.is-current { z-index: 4; transform: translateY(-14px); }
.relay-step.is-current .tcg-relation-card { box-shadow: 0 0 0 6px var(--relation-yellow), 0 0 35px var(--relation-mint), 6px 7px 0 #000; animation: relayCardFire .62s cubic-bezier(.15,.85,.2,1.2); }
.relay-step .tcg-relation-card { width: 150px; color: #111; }
.relay-number { padding: .28rem .48rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-size: .62rem; font-weight: 900; }
.relay-trigger { display: grid; width: 150px; min-height: 70px; grid-template-columns: 10px 1fr; gap: .12rem .4rem; align-content: center; padding: .55rem; border: 1px solid rgba(255,255,255,.42); border-radius: 8px; background: rgba(255,255,255,.09); }
.relay-trigger i { grid-row: 1 / 3; align-self: stretch; border-radius: 5px; background: #5a6685; }
.relay-step.is-fired .relay-trigger i { background: var(--relation-mint); box-shadow: 0 0 14px var(--relation-mint); }
.relay-trigger small { color: #aebbd6; font-size: .6rem; font-weight: 900; }
.relay-trigger b { font-size: .76rem; line-height: 1.3; }
.relay-link { position: absolute; top: 45%; right: -1.75rem; color: var(--relation-yellow); font-size: 1.65rem; animation: chevronPulse 1.1s ease-in-out infinite; }
.relay-finish { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .8rem 1rem; border: 1.5px solid rgba(255,255,255,.5); border-radius: 9px; background: rgba(0,0,0,.2); }
.relay-finish span { color: #aebbd6; font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.relay-finish b { font-size: .9rem; }
.relay-finish.is-complete { color: #111; border-color: #111; background: var(--relation-yellow); animation: completeFlash .7s cubic-bezier(.2,.8,.2,1.2); }
.relay-finish.is-complete span { color: #111; }

@keyframes relationPanelIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fieldRingRotate { to { transform: rotate(360deg); } }
@keyframes beamDraw { from { opacity: 0; stroke-dashoffset: 80; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes beamFlow { to { stroke-dashoffset: -18; } }
@keyframes coreSummon { from { opacity: 0; transform: translate(-50%, -42%) scale(.55) rotate(-8deg); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes summonPulse { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.92) rotate(0); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) rotate(8deg); } }
@keyframes satelliteDeal { from { opacity: 0; scale: .62; translate: 0 34px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes materialHover { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 7px; } }
@keyframes fusionMaterialIn { from { opacity: 0; transform: translateX(-60px) rotate(-8deg) scale(.75); } to { opacity: 1; transform: none; } }
@keyframes fusionGate { 0%, 100% { transform: scale(.92) rotate(-3deg); } 50% { transform: scale(1.06) rotate(3deg); } }
@keyframes fusionParticle { 0%, 100% { opacity: .15; scale: .55; } 50% { opacity: 1; scale: 1.25; } }
@keyframes resultSummon { from { opacity: 0; transform: translateX(80px) scale(.65) rotate(8deg); filter: brightness(2); } to { opacity: 1; transform: none; filter: none; } }
@keyframes evolutionCharge { to { transform: scaleX(1); } }
@keyframes evolutionStageIn { from { opacity: 0; transform: translateY(40px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes chevronPulse { 0%, 100% { opacity: .35; transform: translateX(-3px); } 50% { opacity: 1; transform: translateX(3px); } }
@keyframes pocketFlip { from { opacity: 0; transform: rotateY(70deg) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes relayCardFire { 0% { transform: scale(.82) rotate(-4deg); filter: brightness(2.2); } 55% { transform: scale(1.08) rotate(2deg); } 100% { transform: none; filter: none; } }
@keyframes completeFlash { from { transform: scale(.96); filter: brightness(2); } to { transform: none; filter: none; } }

@media (max-width: 980px) {
  .relation-view-tabs { grid-template-columns: repeat(3, minmax(0, 230px)); }
  .tcg-view-heading { grid-template-columns: 1fr; gap: .65rem; }
  .summon-field { display: grid; min-height: auto; gap: 1.5rem; padding: 2rem 1.25rem; }
  .summon-field::before, .summon-field::after, .field-beams { display: none; }
  .field-core { position: relative; top: auto; left: auto; width: 100%; transform: none; }
  .field-satellites { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
  .field-slot, .field-slot.slot-1, .field-slot.slot-2, .field-slot.slot-3, .field-slot.slot-4, .field-slot.slot-5, .field-slot.slot-6 { position: static; width: auto; transform: none; }
  .summon-ring { top: 42%; }
  .fusion-recipe-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fusion-stage { grid-template-columns: 1fr; }
  .fusion-materials { padding-top: 1rem; }
  .fusion-gate { width: 105px; justify-self: center; }
  .fusion-gate > i { transform: rotate(var(--angle)) translateX(68px); }
  .fusion-result .tcg-relation-card { width: 220px; }
  .theme-pack-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .binder-pocket-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #d9eef5; }
}

@media (max-width: 680px) {
  .relationship-main { padding-bottom: 3rem; }
  .relation-view-tabs { display: flex; gap: .4rem; margin-bottom: .65rem; padding: .2rem .75rem .45rem; overflow-x: auto; }
  .relation-view-tabs button { min-width: 158px; min-height: 60px; flex: 0 0 158px; grid-template-columns: 30px minmax(0,1fr); padding: .5rem .55rem; }
  .relation-view-tabs i { width: 30px; }
  .relation-view-stage { padding: 0 .75rem; }
  .tcg-view-panel { border-radius: 14px; box-shadow: 6px 6px 0 #111; }
  .tcg-view-heading { padding: .7rem .8rem; }
  .tcg-view-heading h2 { font-size: 1.4rem; }
  .tcg-view-heading p { font-size: .96rem; }
  .field-satellites { display: flex; margin-inline: -.1rem; padding: .25rem .2rem 1rem; overflow-x: auto; }
  .field-slot { min-width: 160px; flex: 0 0 160px; }
  .field-core .tcg-relation-card { width: min(230px, 80vw); }
  .summon-ring { width: 265px; }
  .field-legend { gap: .7rem; padding: .85rem 1rem; }
  .fusion-recipe-tabs { display: flex; padding: .8rem; overflow-x: auto; }
  .fusion-recipe-tabs button { min-width: 145px; flex: 0 0 145px; }
  .fusion-stage { padding: 1.4rem .8rem; }
  .fusion-materials { justify-content: flex-start; padding: 1rem .4rem 1.5rem; overflow-x: auto; }
  .fusion-material { width: 145px; min-width: 145px; flex: 0 0 145px; }
  .fusion-note { grid-template-columns: 1fr; gap: .45rem; padding: 1rem; }
  .fusion-note button { justify-self: start; }
  .evolution-selector { padding: .8rem; }
  .evolution-route { padding: 1.1rem .6rem; }
  .evolution-route > header { grid-template-columns: 1fr; gap: .45rem; padding-inline: .4rem; }
  .evolution-route > header > span { width: max-content; }
  .evolution-track { padding-inline: .4rem; }
  .theme-pack-shelf { display: flex; padding: .9rem; overflow-x: auto; }
  .theme-pack { min-width: 280px; flex: 0 0 280px; grid-template-columns: 108px 1fr; }
  .pack-fan { width: 100px; }
  .binder-page { padding: 1rem; }
  .binder-page > header { grid-template-columns: 1fr; gap: .45rem; }
  .binder-pocket-grid { display: flex; gap: .75rem; padding: .8rem; overflow-x: auto; }
  .binder-pocket { min-width: 172px; flex: 0 0 172px; }
  .relay-toolbar { align-items: stretch; flex-direction: column; padding: .85rem; }
  .relay-deck-tabs { margin-right: -.85rem; padding-right: .85rem; }
  .relay-play { align-self: flex-start; }
  .relay-board { padding: 1rem; }
  .relay-board > header { grid-template-columns: 1fr; gap: .45rem; }
  .relay-chain { padding-inline: .2rem; }
  .relay-finish { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .relationship-main *, .relationship-main *::before, .relationship-main *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* Public GitLab problem / solution map */
.public-relation-card .tcg-card-art > .review-art-scene { position: absolute; inset: 0; }
.public-relation-card { color: #111; }
.public-relation-card .tcg-card-copy { grid-template-rows: auto auto 1fr auto; }
.public-relation-card .tcg-card-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.public-relation-card .tcg-card-copy em { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.public-relation-card.is-compact .tcg-card-copy { min-height: 128px; }
.public-relation-card.is-compact .tcg-card-copy small { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.public-relation-card.is-compact .tcg-card-copy strong { font-size: .95rem; line-height: 1.2; }
.public-relation-card.is-compact .tcg-card-copy em { font-size: .81rem; line-height: 1.42; }
.relation-card-facts { align-self: end; padding-top: .36rem; border-top: 1px solid color-mix(in srgb, var(--project-accent) 26%, transparent); color: #111; font-size: .7rem; font-weight: 900; }

.public-family-tabs { display: flex; gap: .45rem; padding: 1rem 1.25rem; overflow-x: auto; border-bottom: 2px solid #111; background: #d9d0ef; scrollbar-width: thin; }
.public-family-tabs button { min-width: max-content; padding: .62rem .78rem; border: 1.5px solid #111; border-radius: 999px; background: #fff9e8; cursor: pointer; font-size: .78rem; font-weight: 850; }
.public-family-tabs button:hover { box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--family-color) 45%, transparent); }
.public-family-tabs button.is-active { color: #fff; background: var(--family-color); box-shadow: inset 0 -5px 0 var(--relation-yellow); }

.solution-hand-stage { padding: 1.7rem; overflow: hidden; background: linear-gradient(150deg, var(--family-pale), #fff9e8 54%, color-mix(in srgb, var(--family-color) 18%, #fff)); }
.solution-hand-stage > header { display: grid; max-width: 760px; gap: .35rem; }
.solution-hand-stage > header small { width: max-content; padding: .3rem .5rem; border-radius: 4px; color: #fff; background: var(--family-color); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.solution-hand-stage > header h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.05em; }
.solution-hand-stage > header p { margin: 0; color: #514a42; font-size: .94rem; line-height: 1.55; }
.solution-card-fan { display: flex; min-height: 330px; align-items: flex-end; justify-content: center; gap: clamp(.15rem, 1.5vw, 1rem); padding: 1.2rem .5rem .8rem; perspective: 1200px; }
.solution-card-fan > span { display: grid; width: min(176px, 17vw); min-width: 145px; gap: .65rem; transform: rotate(calc((var(--hand-index) - 2) * 4deg)); transform-origin: 50% 120%; animation: handDeal .65s cubic-bezier(.15,.85,.2,1.15) calc(var(--hand-index) * 90ms) both; }
.solution-card-fan > span > i { display: -webkit-box; min-height: 62px; padding: .45rem .55rem; overflow: hidden; border: 1px solid #111; border-radius: 6px; background: #fff9e8; font-size: .72rem; font-style: normal; font-weight: 800; line-height: 1.4; text-align: left; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.solution-hand-stage > footer { display: flex; gap: .75rem; padding: .85rem 1rem; border: 1.5px solid #111; border-radius: 8px; background: #fff9e8; font-size: .86rem; line-height: 1.5; }
.solution-hand-stage > footer b { color: var(--family-color); white-space: nowrap; }

.pulse-dashboard { padding: 1.5rem; background: #101e43; color: #fff; }
.pulse-bars { display: grid; min-height: 340px; grid-template-columns: repeat(8, minmax(82px, 1fr)); align-items: end; gap: .65rem; padding: 1.2rem 1rem; overflow-x: auto; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 100% 25%; }
.pulse-bars > button { display: grid; min-width: 82px; height: 285px; grid-template-rows: 1fr auto auto; gap: .36rem; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; text-align: center; }
.pulse-column { position: relative; display: flex; height: 100%; align-items: flex-end; justify-content: center; }
.pulse-column i { display: block; width: min(62px, 70%); height: var(--pulse-height); border: 2px solid #fff; border-radius: 9px 9px 3px 3px; background: var(--pulse-color); box-shadow: 0 0 24px color-mix(in srgb, var(--pulse-color) 72%, transparent); transform-origin: bottom; animation: pulseRise .72s cubic-bezier(.2,.8,.2,1) var(--pulse-delay) both; }
.pulse-column b { position: absolute; bottom: calc(var(--pulse-height) - 2px); left: 50%; translate: -50% -100%; padding-bottom: .34rem; font-size: 1rem; }
.pulse-bars strong { font-size: .78rem; line-height: 1.2; }
.pulse-bars small { color: #b9c9e8; font-size: .66rem; }
.pulse-bars > button.is-active .pulse-column i { outline: 5px solid var(--relation-yellow); outline-offset: 3px; }
.pulse-detail { margin-top: 1rem; padding: 1.1rem; border: 2px solid #111; border-radius: 12px; color: #111; background: #fff9e8; }
.pulse-detail > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pulse-detail > header span { padding: .35rem .55rem; border-radius: 5px; color: #fff; background: var(--pulse-color); font-size: .76rem; font-weight: 900; }
.pulse-detail > header h3 { margin: 0; font-size: 1.05rem; }
.pulse-detail > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.pulse-card { animation: pulseCardIn .5s cubic-bezier(.2,.8,.2,1.12) calc(var(--pulse-index) * 90ms) both; }

.public-relationship-main .theme-pack .pack-fan i > .review-art-scene { position: absolute; inset: 0; }
.public-relationship-main .relay-toolbar { align-items: center; }
.public-relationship-main .relay-toolbar .public-family-tabs { flex: 1; margin: 0; padding: 0; border: 0; background: transparent; }
.public-relationship-main .relay-step { min-width: 174px; }
.public-relationship-main .relay-step .tcg-relation-card, .public-relationship-main .relay-trigger { width: 168px; }
.public-relationship-main .relay-trigger { min-height: 82px; }
.public-relationship-main .relay-trigger b { font-size: .8rem; line-height: 1.38; }

@keyframes handDeal { from { opacity: 0; transform: translateY(120px) rotate(0) scale(.7); } }
@keyframes pulseRise { from { opacity: .2; transform: scaleY(.04); } to { opacity: 1; transform: scaleY(1); } }
@keyframes pulseCardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .solution-card-fan { justify-content: flex-start; overflow-x: auto; }
  .solution-card-fan > span { width: 165px; min-width: 165px; transform: none; }
  .pulse-bars { grid-template-columns: repeat(8, 96px); }
  .pulse-detail > div { display: flex; overflow-x: auto; }
  .pulse-card { min-width: 168px; flex: 0 0 168px; }
}

@media (max-width: 680px) {
  .public-family-tabs { padding: .8rem; }
  .solution-hand-stage { padding: 1.1rem .8rem; }
  .solution-card-fan { min-height: 320px; padding-top: 1rem; }
  .solution-card-fan > span { min-width: 150px; }
  .solution-hand-stage > footer { align-items: flex-start; flex-direction: column; }
  .pulse-dashboard { padding: .8rem; }
  .pulse-bars { margin: 0; padding: 1rem .6rem; }
  .pulse-detail > header { align-items: flex-start; flex-direction: column; }
  .public-relationship-main .relay-toolbar .public-family-tabs { margin-right: -.85rem; padding-right: .85rem; }
}

/* Revised evidence-first relationship views */
.keyword-tag-rack { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .65rem .85rem; overflow: visible; border-bottom: 2px solid #111; background: #cfe7f7; }
.keyword-tag-rack button { display: inline-flex; min-width: max-content; align-items: center; gap: .42rem; padding: .42rem .58rem; border: 1.5px solid #111; border-radius: 999px; background: #fff9e8; cursor: pointer; }
.keyword-tag-rack button b { font-size: .8rem; }
.keyword-tag-rack button span { display: grid; min-width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: .64rem; font-weight: 900; }
.keyword-tag-rack button.is-active { color: #fff; background: var(--relation-blue); box-shadow: inset 0 -5px 0 var(--relation-yellow); }
.keyword-tag-rack button.is-active span { color: #111; background: var(--relation-yellow); }
.keyword-board { padding: 1rem; background: linear-gradient(150deg, #fff9e8 0 48%, #d8eef4 48% 72%, #f6d8cf 72%); }
.keyword-board > header { display: grid; grid-template-columns: auto minmax(160px, .4fr) minmax(240px, 1fr); align-items: center; gap: .75rem; margin-bottom: .85rem; }
.keyword-board > header small { width: max-content; padding: .35rem .55rem; border-radius: 4px; color: #fff; background: var(--relation-blue); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.keyword-board > header h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.keyword-board > header p { margin: 0; color: #514a42; font-size: .94rem; line-height: 1.5; }
.keyword-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .65rem; align-items: start; }
.keyword-card-grid > span { animation: keywordDeal .55s cubic-bezier(.16,.85,.25,1.15) calc(var(--keyword-index) * 65ms) both; }

.theme-pack-shelf.is-action-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.theme-pack-shelf.is-action-shelf .theme-pack { grid-template-columns: 104px minmax(0, 1fr); }

.solo-toolbar .public-family-tabs { flex: 1; margin: 0; padding: 0; border: 0; background: transparent; }
.solo-board { padding: 1.5rem; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--solo-accent) 58%, transparent), transparent 43%), #10214d; }
.solo-board > header { display: grid; grid-template-columns: minmax(0, .7fr) minmax(250px, .7fr) minmax(300px, 1fr); align-items: end; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.3); }
.solo-board > header small { color: var(--relation-mint); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.solo-board > header h3 { margin: 0; font-size: 1.55rem; }
.solo-board > header p { margin: 0; color: #dce8ff; font-size: .92rem; line-height: 1.55; }
.solo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; padding: 2rem 0; }
.solo-player { display: grid; min-width: 0; gap: .55rem; opacity: .28; filter: grayscale(.75); transform: translateY(20px) scale(.94); transition: opacity .35s ease, filter .35s ease, transform .35s ease; }
.solo-player.is-visible { opacity: 1; filter: none; transform: none; }
.solo-player.is-current { z-index: 3; transform: translateY(-12px); }
.solo-player.is-current .tcg-relation-card { box-shadow: 0 0 0 6px var(--relation-yellow), 0 0 35px var(--relation-mint), 6px 7px 0 #000; animation: relayCardFire .62s cubic-bezier(.15,.85,.2,1.2); }
.solo-number { justify-self: center; padding: .28rem .48rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-size: .62rem; font-weight: 900; }
.solo-player-note { display: grid; min-height: 74px; align-content: center; gap: .18rem; padding: .58rem; border: 1px solid rgba(255,255,255,.42); border-radius: 8px; background: rgba(255,255,255,.09); }
.solo-player-note small { color: var(--relation-mint); font-size: .66rem; font-weight: 900; }
.solo-player-note b { overflow: hidden; font-size: .78rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pulse-bars.is-keyword-pulse { grid-template-columns: repeat(12, minmax(76px, 1fr)); }

@keyframes keywordDeal { from { opacity: 0; transform: translateY(44px) rotate(-3deg) scale(.82); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .keyword-card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .theme-pack-shelf.is-action-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solo-grid { display: flex; overflow-x: auto; }
  .solo-player { min-width: 165px; flex: 0 0 165px; }
}

@media (max-width: 680px) {
  .keyword-tag-rack { padding: .55rem .65rem; }
  .keyword-board { min-height: auto; padding: .7rem; }
  .keyword-board > header { grid-template-columns: 1fr; gap: .4rem; }
  .keyword-card-grid { display: flex; overflow-x: auto; }
  .keyword-card-grid > span { min-width: 154px; flex: 0 0 154px; }
  .theme-pack-shelf.is-action-shelf { display: flex; }
  .solo-board { padding: 1rem; }
  .solo-board > header { grid-template-columns: 1fr; gap: .4rem; }
  .solo-grid { padding: 1.4rem 0; }
  .solo-toolbar .public-family-tabs { margin-right: -.85rem; padding-right: .85rem; }
}

/* Final three-way public explorer */
.relation-view-tabs.is-three { grid-template-columns: repeat(3, minmax(0, 230px)); }
.relation-view-tabs.is-four { grid-template-columns: repeat(4, minmax(0, 230px)); }
.relation-view-tabs.is-five { grid-template-columns: repeat(5, minmax(0, 230px)); }
.problem-workspace { display: grid; min-width: 0; grid-template-columns: minmax(360px, 1fr) minmax(0, 2fr); align-items: stretch; }
.problem-pack-zone { min-width: 0; background: #102033; }
.problem-pack-rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; padding: 1rem; border-bottom: 2px solid #102033; background-color: #102033; background-image: radial-gradient(#3770bf 1px, transparent 1px); background-size: 18px 18px; }
.problem-pack-rack button { position: relative; display: grid; min-height: 102px; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: .7rem; padding: .65rem; border: 1.5px solid #8dc2ff; border-radius: 10px; color: #102033; background: #ffffff; box-shadow: 4px 4px 0 #244d85; cursor: pointer; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.problem-pack-rack button::before { position: absolute; top: 50%; left: -.72rem; width: .72rem; height: 2px; background: #8dc2ff; content: ""; }
.problem-pack-rack button:hover { transform: translateY(-4px); box-shadow: 6px 7px 0 #3770bf; }
.problem-pack-rack button.is-active { background: #e8f2ff; box-shadow: inset 0 0 0 5px #cef26d, 6px 7px 0 #3770bf; }
.problem-pack-icon { display: grid; width: 54px; aspect-ratio: 1; place-items: center; border: 2px solid #244d85; border-radius: 11px; color: #ffffff; background: #3770bf; box-shadow: inset 0 -6px 0 #244d85; font-size: 1.65rem; font-weight: 900; }
.problem-pack-rack button.is-active .problem-pack-icon { color: #102033; background: #cef26d; }
.problem-pack-copy { display: grid; min-width: 0; gap: .18rem; }
.problem-pack-copy small { color: #3770bf; font-size: .6rem; font-weight: 900; letter-spacing: .06em; }
.problem-pack-copy b { overflow: hidden; font-size: .9rem; line-height: 1.22; text-overflow: ellipsis; white-space: nowrap; }
.problem-pack-copy em { width: max-content; padding: .18rem .34rem; border-radius: 4px; color: #102033; background: #cef26d; font-size: .68rem; font-style: normal; font-weight: 900; }
.problem-random-draw { display: inline-flex; min-width: 190px; min-height: 50px; align-items: center; justify-content: center; gap: .55rem; padding: .6rem 1.1rem; border: 2px solid #102033; border-radius: 999px; color: #102033; background: #cef26d; box-shadow: 0 0 0 4px #8dc2ff, 5px 6px 0 #102033; cursor: pointer; font-size: 1rem; font-weight: 950; transition: transform .18s ease, box-shadow .18s ease; }
.problem-random-draw:hover { box-shadow: 0 0 0 6px #8dc2ff, 7px 8px 0 #102033; transform: translateY(-3px) scale(1.02); }
.problem-random-draw span { font-size: 1.25rem; }
.problem-random-draw i { font-size: 1.05rem; font-style: normal; }
.problem-hand { min-width: 0; padding: 1.15rem 1rem; overflow: hidden; border-bottom: 2px solid #111; border-left: 2px solid #102033; background: linear-gradient(145deg, color-mix(in srgb, var(--problem-color) 20%, #fff), #fff9e8 60%); }
.problem-hand > header { display: flex; width: min(100%, 770px); max-width: none; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 auto 1rem; }
.problem-hand > header small { width: max-content; padding: .3rem .5rem; border-radius: 4px; color: #fff; background: var(--problem-color); font-size: .68rem; font-weight: 900; }
.problem-hand > header h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.045em; }
.problem-hand > header p { margin: 0; color: #514a42; font-size: .94rem; line-height: 1.55; }
.problem-hand > footer { display: flex; gap: .7rem; padding: .8rem 1rem; border: 1.5px solid #111; border-radius: 8px; background: #fff9e8; font-size: .86rem; line-height: 1.5; }
.problem-hand > footer b { color: var(--problem-color); white-space: nowrap; }
.problem-hand > footer .random-draw-again { margin-left: auto; padding: .5rem .75rem; border: 1.5px solid #111; border-radius: 7px; background: var(--relation-yellow); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 900; }
.problem-binder { padding: .9rem; background: #fff9e8; }
.problem-binder > header { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(300px, 1.25fr); align-items: end; gap: 1rem; margin-bottom: 1rem; }
.problem-binder > header small { color: var(--relation-blue); font-size: .68rem; font-weight: 900; }
.problem-binder > header h3 { margin: .2rem 0 0; font-size: 1.25rem; }
.problem-binder > header p { margin: 0; color: #514a42; font-size: .9rem; line-height: 1.55; }
.problem-binder .binder-pocket-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .55rem; padding: .65rem; }
.problem-binder .binder-pocket { padding: .4rem; }

.trending-stage { display: grid; grid-template-columns: minmax(580px, 1fr) minmax(0, 1fr); align-items: start; gap: .7rem; padding: .9rem; color: #fff; background: #10214d; }
.trending-kpis { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.trending-kpis > div { display: grid; min-height: 64px; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; gap: .1rem .65rem; padding: .58rem .7rem; border: 1px solid rgba(255,255,255,.34); border-radius: 8px; background: rgba(255,255,255,.08); }
.trending-kpis small { color: #b9c9e8; font-size: .7rem; font-weight: 800; }
.trending-kpis b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--relation-yellow); font-size: 1.65rem; line-height: 1; }
.trending-kpis span { color: #fff; font-size: .76rem; font-weight: 750; }
.trending-domain-overview { display: grid; align-self: stretch; gap: .55rem; }
.trending-bars { display: grid; min-height: 250px; grid-template-columns: repeat(9, minmax(54px, 1fr)); align-items: end; justify-content: start; gap: .5rem; padding: .8rem .65rem; overflow-x: auto; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 100% 25%; }
.trend-item { display: grid; min-width: 0; height: 210px; grid-template-rows: 1fr auto auto; gap: .3rem; padding: 0; color: #fff; text-align: center; }
.trend-column { position: relative; display: flex; height: 100%; align-items: flex-end; justify-content: center; }
.trend-column i { display: block; width: min(58px, 70%); height: var(--trend-height); border: 2px solid #fff; border-radius: 9px 9px 3px 3px; background: var(--trend-color); box-shadow: 0 0 22px color-mix(in srgb, var(--trend-color) 68%, transparent); transform-origin: bottom; animation: pulseRise .72s cubic-bezier(.2,.8,.2,1) var(--trend-delay) both; }
.trend-column b { position: absolute; bottom: calc(var(--trend-height) - 4px); left: 50%; translate: -50% -100%; color: var(--relation-yellow); font-size: 1.2rem; }
.trending-bars strong { overflow: hidden; font-size: .76rem; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.trending-bars small { color: #b9c9e8; font-size: .64rem; }
.trending-domain-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.trending-domain-table > div { display: grid; min-width: 0; grid-template-columns: 5px minmax(0, 1fr) auto auto auto; align-items: center; gap: .35rem; min-height: 41px; padding: .42rem .48rem; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; background: rgba(255,255,255,.075); }
.trending-domain-table i { width: 5px; height: 24px; border-radius: 4px; background: var(--trend-color); }
.trending-domain-table b { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.trending-domain-table span, .trending-domain-table small { color: #dce6f9; font-size: .64rem; font-weight: 750; white-space: nowrap; }
.trending-domain-table em { color: var(--relation-yellow); font-size: .92rem; font-style: normal; font-weight: 950; }
.trending-detail { margin-top: 0; padding: .75rem; border: 2px solid #111; border-radius: 10px; color: #111; background: #fff9e8; }
.trending-detail > header { display: grid; grid-template-columns: auto minmax(180px, .6fr) minmax(240px, 1fr); align-items: center; gap: 1rem; margin-bottom: 1rem; }
.trending-detail > header span { width: max-content; padding: .35rem .55rem; border-radius: 5px; color: #fff; background: var(--relation-blue); font-size: .7rem; font-weight: 900; }
.trending-detail > header h3 { margin: 0; font-size: 1.7rem; }
.trending-detail > header p { margin: 0; color: #514a42; font-size: .9rem; }
.trending-feed { display: grid; gap: .35rem; }
.trending-feed-row { display: grid; min-width: 0; min-height: 48px; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .3rem .42rem; border: 1px solid #cfc5b7; border-radius: 7px; background: #f5efe3; cursor: pointer; text-align: left; animation: pulseCardIn .45s cubic-bezier(.2,.8,.2,1.12) calc(var(--trend-card-index) * 55ms) both; }
.trending-feed-row:hover { border-color: #111; background: #fff; transform: translateX(3px); }
.trending-feed-art { position: relative; display: block; width: 48px; height: 38px; overflow: hidden; border-radius: 5px; background: var(--project-accent); }
.trending-feed-art > .review-art-scene { position: absolute; inset: 0; }
.trending-feed-row > span:nth-child(2) { display: grid; min-width: 0; gap: .1rem; }
.trending-feed-row b, .trending-feed-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trending-feed-row b { font-size: .8rem; }
.trending-feed-row small { color: #625a51; font-size: .68rem; }
.trending-feed-row > i { color: var(--project-accent); font-size: .68rem; font-style: normal; font-weight: 850; white-space: nowrap; }

.match-problem-tabs { display: flex; gap: .45rem; padding: 1rem 1.25rem; overflow-x: auto; border-bottom: 2px solid #111; background: #f6d8cf; scrollbar-width: thin; }
.match-problem-tabs button { min-width: max-content; padding: .62rem .78rem; border: 1.5px solid #111; border-radius: 999px; background: #fff9e8; cursor: pointer; font-size: .76rem; font-weight: 850; }
.match-problem-tabs button.is-active { color: #fff; background: var(--match-color); box-shadow: inset 0 -5px 0 var(--relation-yellow); }
.match-stage { padding: 1rem; overflow: hidden; background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--match-color) 25%, transparent), transparent 25%), linear-gradient(135deg, #ffe7df, #fff9e8 50%, #dceaf8); }
.match-stage > header { display: grid; max-width: 800px; gap: .32rem; }
.match-stage > header small { width: max-content; padding: .3rem .5rem; border-radius: 4px; color: #fff; background: var(--match-color); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.match-stage > header h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.045em; }
.match-stage > header p { margin: 0; color: #514a42; font-size: .94rem; line-height: 1.55; }
.match-table { display: grid; max-width: 850px; grid-template-columns: minmax(220px, 280px) 150px minmax(220px, 280px); align-items: center; justify-content: center; gap: 1.7rem; margin: 1.7rem auto 1.5rem; }
.match-card { display: grid; gap: .6rem; animation: matchLeftIn .7s cubic-bezier(.16,.85,.25,1.15) both; }
.match-card.is-right { animation-name: matchRightIn; }
.match-card > span { justify-self: center; padding: .3rem .55rem; border: 1.5px solid #111; border-radius: 999px; background: var(--relation-yellow); font-size: .68rem; font-weight: 900; }
.match-card > small { display: -webkit-box; min-height: 62px; padding: .48rem .6rem; overflow: hidden; border: 1.5px solid #111; border-radius: 6px; background: #fff9e8; font-size: .76rem; font-weight: 800; line-height: 1.42; text-align: left; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.match-heart { position: relative; display: grid; place-items: center; animation: matchPulse 1.5s ease-in-out infinite; }
.match-heart svg { width: 110px; overflow: visible; filter: drop-shadow(3px 3px 0 #111); }
.match-heart path { fill: #fff9e8; stroke: var(--match-color); stroke-linejoin: round; stroke-width: 6; }
.match-heart b { position: absolute; top: 49%; left: 50%; color: #111; font-size: .7rem; line-height: 1.08; text-align: center; transform: translate(-50%, -50%); }
.match-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .65rem; padding: .8rem; border: 1.5px solid #111; border-radius: 10px; background: #fff9e8; }
.match-reasons > span { display: grid; gap: .15rem; padding: .55rem .65rem; border-left: 6px solid var(--match-color); background: #f4efe5; }
.match-reasons small { color: #635b52; font-size: .64rem; font-weight: 800; }
.match-reasons b { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.match-reasons button { padding: .65rem .85rem; border: 1.5px solid #111; border-radius: 8px; background: var(--relation-yellow); box-shadow: 4px 4px 0 #111; cursor: pointer; font-size: .76rem; font-weight: 900; }
@keyframes matchLeftIn { from { opacity: 0; transform: translateX(-100px) rotate(-10deg) scale(.75); } to { opacity: 1; transform: none; } }
@keyframes matchRightIn { from { opacity: 0; transform: translateX(100px) rotate(10deg) scale(.75); } to { opacity: 1; transform: none; } }
@keyframes matchPulse { 0%, 100% { transform: scale(.94) rotate(-2deg); } 50% { transform: scale(1.08) rotate(2deg); } }

@media (max-width: 980px) {
  .trending-stage { display: block; }
  .trending-domain-overview { margin-top: .7rem; }
  .trending-bars { grid-template-columns: repeat(9, 92px); }
  .trend-item { min-width: 76px; }
  .trending-detail { margin-top: .7rem; }
}

@media (min-width: 981px) {
  .problem-pack-rack { height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .problem-hand { display: flex; flex-direction: column; }
  .problem-hand .solution-card-fan { display: grid; min-height: 455px; grid-template-columns: repeat(3, 230px); justify-content: center; gap: 1.15rem; margin: 0; padding: .2rem .4rem 1rem; overflow: visible; }
  .problem-hand .solution-card-fan > span { width: 230px; min-width: 230px; transform: none; }
  .match-stage { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); grid-template-areas: "match-head match-table" "match-reasons match-reasons"; align-items: start; gap: 1.5rem 1rem; }
  .match-stage > header { grid-area: match-head; }
  .match-table { grid-area: match-table; max-width: none; grid-template-columns: minmax(220px, 270px) 130px minmax(220px, 270px); justify-content: start; gap: 1.25rem; margin: 0; }
  .match-reasons { grid-area: match-reasons; }
}

@media (min-width: 1400px) {
  .match-stage { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-areas: "match-table" "match-reasons"; }
  .match-stage > header { position: absolute; top: 1rem; left: 1rem; z-index: 2; width: 220px; }
  .match-table { width: max-content; justify-self: center; justify-content: center; }
}

@media (min-width: 981px) and (max-width: 1699px) {
  .problem-hand .solution-card-fan > span:nth-child(n + 6) { display: none; }
}

@media (max-width: 680px) {
  .relation-view-tabs { justify-content: flex-start; }
  .relation-view-tabs.is-three { display: flex; }
  .relation-view-tabs.is-four { display: flex; }
  .relation-view-tabs.is-five { display: flex; }
  .problem-pack-rack { display: flex; padding: .85rem; overflow-x: auto; }
  .problem-pack-rack button { min-width: 180px; flex: 0 0 180px; }
  .problem-workspace { display: block; }
  .problem-hand { padding: .8rem .7rem; }
  .problem-hand > header { width: 100%; }
  .problem-hand > footer { align-items: flex-start; flex-direction: column; }
  .problem-binder { padding: 1rem .7rem; }
  .problem-binder > header { grid-template-columns: 1fr; gap: .4rem; }
  .trending-stage { padding: .8rem; }
  .trending-kpis { grid-template-columns: repeat(4, minmax(118px, 1fr)); overflow-x: auto; }
  .trending-bars { padding-inline: .6rem; }
  .trending-domain-table { grid-template-columns: 1fr 1fr; }
  .trending-detail > header { grid-template-columns: 1fr; gap: .35rem; }
  .match-problem-tabs { padding: .6rem; }
  .match-stage { padding: 1rem .75rem; }
  .match-table { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; overflow-x: auto; }
  .match-card { min-width: 210px; flex: 0 0 210px; }
  .match-heart { min-width: 82px; flex: 0 0 82px; }
  .match-heart svg { width: 76px; }
  .match-heart b { font-size: .58rem; }
  .match-reasons { grid-template-columns: 1fr; }
  .match-reasons button { justify-self: start; }
}

/* Public explorer: sidebar on desktop, centered top tabs on smaller screens */
@media (min-width: 1101px) {
  .public-relationship-main {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    align-items: start;
    gap: .7rem;
    padding: .7rem clamp(.75rem, 1.4vw, 1.25rem) 5rem;
  }
  .public-relationship-main .relation-view-tabs,
  .public-relationship-main .relation-view-tabs.is-five {
    position: sticky;
    top: .7rem;
    display: grid;
    width: 154px;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: .45rem;
    margin: 0;
    padding: 0;
  }
  .public-relationship-main .relation-view-tabs button { width: 100%; min-height: 68px; }
  .public-relationship-main .relation-view-tabs button.is-active { box-shadow: 5px 0 0 var(--relation-mint); transform: translateX(3px); }
  .public-relationship-main .relation-view-stage { width: auto; min-width: 0; padding: 0; }
  .public-relationship-main .keyword-card-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .public-relationship-main .problem-pack-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-relationship-main .problem-binder .binder-pocket-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .problem-workspace { display: block; }
}

/* Full public repository catalog */
.catalog-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; padding: .75rem; border-bottom: 1px solid #b8afa2; background: #dceaf8; }
.catalog-kpis > div { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: .7rem; padding: .55rem .7rem; border: 1.5px solid #111; border-radius: 8px; background: #fff9e8; }
.catalog-kpis small { font-size: .72rem; font-weight: 800; }
.catalog-kpis b { color: var(--relation-blue); font-size: 1.45rem; line-height: 1; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(5, minmax(115px, .72fr)) auto; align-items: end; gap: .5rem; padding: .75rem; border-bottom: 2px solid #111; background: #d9d0c2; }
.catalog-toolbar label { display: grid; min-width: 0; gap: .22rem; }
.catalog-toolbar label > span { font-size: .67rem; font-weight: 850; }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; min-width: 0; height: 38px; padding: 0 .55rem; border: 1.5px solid #111; border-radius: 6px; color: #111; background: #fff9e8; font: inherit; font-size: .77rem; }
.catalog-test-toggle { display: inline-flex; height: 38px; align-items: center; justify-content: center; gap: .45rem; padding: 0 .65rem; border: 1.5px solid #111; border-radius: 7px; background: #fff9e8; cursor: pointer; font-size: .7rem; font-weight: 850; white-space: nowrap; }
.catalog-test-toggle b { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: .64rem; }
.catalog-test-toggle.is-active { background: var(--relation-yellow); }
.catalog-result-bar { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: .5rem .8rem; border-bottom: 1px solid #b8afa2; background: #fff9e8; }
.catalog-result-bar b { font-size: .86rem; }
.catalog-result-bar span { color: #5d554c; font-size: .75rem; }
.catalog-table { background: #fff9e8; }
.catalog-table-head, .catalog-row { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(155px, 1fr) minmax(160px, 1fr) 78px 78px minmax(112px, .75fr); align-items: center; gap: .55rem; }
.catalog-table-head { min-height: 38px; padding: .4rem .75rem; color: #fff; background: #111; font-size: .68rem; font-weight: 850; }
.catalog-row { min-height: 68px; padding: .48rem .75rem; border-bottom: 1px solid #d7cec1; transition: background .15s ease; }
.catalog-row:hover { background: #eef7fa; }
.catalog-row.is-test { background: #f2eee7; opacity: .78; }
.catalog-project { display: grid; min-width: 0; gap: .18rem; }
.catalog-project b { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-project small { display: -webkit-box; overflow: hidden; color: #5d554c; font-size: .75rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-domains { display: flex; min-width: 0; flex-wrap: wrap; gap: .25rem; }
.catalog-domains i { padding: .22rem .36rem; border-left: 4px solid var(--domain-color, #777); border-radius: 4px; background: #ece5da; font-size: .65rem; font-style: normal; font-weight: 800; }
.catalog-author { overflow: hidden; font-size: .75rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.catalog-activity { font-size: .72rem; font-weight: 800; }
.catalog-metrics { display: grid; gap: .1rem; font-size: .78rem; font-weight: 850; }
.catalog-metrics small { color: #61594f; font-size: .65rem; }
.catalog-status { display: grid; justify-items: start; gap: .2rem; }
.catalog-status button, .catalog-status a, .catalog-status > b { display: inline-flex; min-height: 29px; align-items: center; padding: 0 .48rem; border: 1px solid #111; border-radius: 5px; color: #111; background: var(--relation-yellow); cursor: pointer; font-size: .68rem; font-weight: 850; text-decoration: none; }
.catalog-status a { background: #fff; }
.catalog-status > b.is-test { background: #ddd4c7; }
.catalog-status small { color: #7a2920; font-size: .62rem; line-height: 1.25; }
.catalog-load-more { display: block; min-width: 230px; min-height: 42px; margin: 1rem auto; padding: 0 1rem; border: 1.5px solid #111; border-radius: 7px; background: var(--relation-yellow); box-shadow: 4px 4px 0 #111; cursor: pointer; font-size: .78rem; font-weight: 850; }

@media (max-width: 1100px) and (min-width: 681px) {
  .relation-view-tabs.is-five { display: flex; justify-content: center; overflow-x: auto; }
  .relation-view-tabs.is-five button { min-width: 174px; flex: 0 0 174px; }
  .catalog-toolbar { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 1fr)); }
  .catalog-test-toggle { align-self: end; }
  .catalog-table-head, .catalog-row { grid-template-columns: minmax(260px, 2fr) minmax(145px, 1fr) minmax(150px, 1fr) 72px 72px 108px; }
}

@media (max-width: 680px) {
  .catalog-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .6rem; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .65rem; }
  .catalog-search, .catalog-test-toggle { grid-column: 1 / -1; }
  .catalog-table-head { display: none; }
  .catalog-row { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .7rem; padding: .7rem; }
  .catalog-project { grid-column: 1 / -1; }
  .catalog-domains { grid-column: 1; }
  .catalog-author { grid-column: 1; }
  .catalog-activity, .catalog-metrics { grid-column: 2; justify-self: end; }
  .catalog-status { grid-column: 1 / -1; display: flex; align-items: center; }
}

/* 사용자가 선택한 게임식 카드 플립은 OS의 동작 줄이기 설정에서도 유지한다. */
@media (prefers-reduced-motion: reduce) {
  .project-card-object.is-flipped .card-inner,
  .tcg-flip-shell.is-flipped .tcg-flip-inner { animation: gameCardSpinToBack 560ms cubic-bezier(.2,.72,.2,1) both !important; transition-duration: 560ms !important; }
  .project-card-object.is-returning .card-inner,
  .tcg-flip-shell.is-returning .tcg-flip-inner { animation: gameCardSpinToFront 560ms cubic-bezier(.2,.72,.2,1) both !important; transition-duration: 560ms !important; }
}

/* 디스커버 카드 외형은 모두 같은 비율로 정렬하고 클릭할 때만 회전한다. */
.public-relationship-main .problem-hand .solution-card-fan > span {
  width: 230px;
  min-width: 230px;
  flex: 0 0 230px;
  transform: none;
}
.public-relationship-main .match-card,
.public-relationship-main .match-card.is-right { transform: none; }

/* 공공깃랩 디스커버: K-지방직 원본 팔레트 2안.
   레이아웃·타이포·간격·동작은 유지하고 색상 토큰만 교체한다. */
.public-discover-shell {
  --ink: #102033;
  --muted: #52667f;
  --paper: #f3f6ff;
  --cream: #ffffff;
  --line: #d5e5fb;
  min-height: 100vh;
  color: #102033;
  background: #f3f6ff;
}
body:has(.public-discover-shell) { color: #102033; background: #f3f6ff; }

.public-discover-shell .channel-public-gitlab {
  color: #ffffff;
  border-color: #102033;
  background: #244d85;
  box-shadow: 0 6px 0 #102033;
}
.public-discover-shell .channel-public-gitlab::before { background: linear-gradient(90deg, #3770bf 0 62%, #8dc2ff 62% 84%, #cef26d 84% 100%); }
.public-discover-shell .channel-public-gitlab .brand-seal { color: #102033; border-color: #102033; background: #cef26d; box-shadow: 3px 3px 0 #102033; }
.public-discover-shell .channel-public-gitlab .brand small { color: #e8f2ff; }
.public-discover-shell .channel-public-gitlab nav { border-color: #8dc2ff; background: #3770bf; }
.public-discover-shell .channel-public-gitlab nav > button,
.public-discover-shell .channel-public-gitlab .work-nav-menu > summary { color: #ffffff; }
.public-discover-shell .channel-public-gitlab nav button:hover { background: #244d85; }
.public-discover-shell .channel-public-gitlab nav button.is-active { color: #102033; background: #cef26d; box-shadow: inset 0 -3px 0 #102033; }
.public-discover-shell .channel-public-gitlab .work-nav-menu summary:hover { background: #244d85; }
.public-discover-shell .channel-public-gitlab .work-nav-menu summary > span { color: #244d85; background: #ffffff; }
.public-discover-shell .channel-public-gitlab .work-nav-menu > div { color: #102033; border-color: #102033; background: #ffffff; box-shadow: 6px 6px 0 #102033; }
.public-discover-shell .channel-public-gitlab .work-nav-menu > div button { background: #e8f2ff; }
.public-discover-shell .channel-public-gitlab .work-nav-menu > div button.is-active { background: #cef26d; }
.public-discover-shell .channel-public-gitlab .material-count { color: #ffffff; background: #244d85; }
.public-discover-shell .channel-public-gitlab .public-source-nav { color: #ffffff; background: #244d85; }
.public-discover-shell .channel-public-gitlab .public-source-nav:hover { background: #102033; }
.public-discover-shell .channel-public-gitlab .public-external-nav { min-width: 118px; justify-content: space-between; gap: .55rem; line-height: 1.08; }
.public-discover-shell .channel-public-gitlab .public-external-nav > span { display: grid; gap: 2px; }
.public-discover-shell .channel-public-gitlab .public-external-nav small { color: #ffffff; font-size: .65rem; font-weight: 700; }
.public-discover-shell .channel-public-gitlab .public-external-nav b { color: #ffffff; font-size: 1rem; }
.public-discover-shell .channel-public-gitlab .public-review-work-menu { order: 99; margin-left: .2rem; }

.public-discover-shell .public-review-main { --review-blue: #3770bf; --review-mint: #8dc2ff; --review-yellow: #cef26d; }
.public-discover-shell .review-channel-intro,
.public-discover-shell .review-featured,
.public-discover-shell .review-search input,
.public-discover-shell .review-view-switch button,
.public-discover-shell .review-family-filters button,
.public-discover-shell .review-list-row,
.public-discover-shell .review-empty,
.public-discover-shell .review-verification-grid > section,
.public-discover-shell .review-detail-columns article,
.public-discover-shell .review-dialog-related,
.public-discover-shell .review-criteria-grid article,
.public-discover-shell .review-method-rules article { color: #102033; border-color: #102033; background: #ffffff; }
.public-discover-shell .review-featured-list,
.public-discover-shell .review-criteria-section,
.public-discover-shell .review-card-stage,
.public-discover-shell .review-channel-intro dl > div,
.public-discover-shell .review-test-result,
.public-discover-shell .review-public-stats > div,
.public-discover-shell .review-related-personal,
.public-discover-shell .review-detail-columns { background: #e8f2ff; }
.public-discover-shell .review-channel-intro > p,
.public-discover-shell .review-channel-intro dt,
.public-discover-shell .review-featured-copy > p,
.public-discover-shell .review-related-personal em,
.public-discover-shell .review-ranking-head > p,
.public-discover-shell .review-ranked-item > footer b,
.public-discover-shell .review-list-copy em,
.public-discover-shell .review-list-metrics small,
.public-discover-shell .review-list-author,
.public-discover-shell .review-empty span,
.public-discover-shell .review-criteria-grid p,
.public-discover-shell .review-method-rules p { color: #52667f; }
.public-discover-shell .review-featured-actions button,
.public-discover-shell .review-source-links a { color: #102033; border-color: #102033; background: #cef26d; box-shadow: 3px 3px 0 #102033; }
.public-discover-shell .review-featured-actions a { color: #102033; border-color: #102033; background: #ffffff; box-shadow: 3px 3px 0 #102033; }
.public-discover-shell .review-view-switch button.is-active,
.public-discover-shell .review-family-filters button.is-active,
.public-discover-shell .review-index { color: #ffffff; background: #3770bf; }
.public-discover-shell .review-detail-columns article.is-caution { box-shadow: inset 7px 0 0 #cef26d; }
.public-discover-shell .review-dialog .card-dialog-head { box-shadow: inset 0 7px 0 #3770bf; }
.public-discover-shell .criteria-intro { box-shadow: 10px 10px 0 #8dc2ff; }

.public-discover-shell .review-art-scene { --art-dark: #102033; }
.public-discover-shell .card-side { border-color: #102033; }
.public-discover-shell .card-copy-panel > b,
.public-discover-shell .back-heading span { color: #40546f; }

.public-discover-shell .relationship-main {
  --relation-navy: #244d85;
  --relation-blue: #3770bf;
  --relation-mint: #8dc2ff;
  --relation-yellow: #cef26d;
  --relation-coral: #3770bf;
  --relation-purple: #244d85;
  background: #f3f6ff;
}
.public-discover-shell .relation-view-tabs button,
.public-discover-shell .tcg-view-panel,
.public-discover-shell .theme-pack-shelf,
.public-discover-shell .catalog-toolbar { border-color: #102033; background: #e8f2ff; }
.public-discover-shell .relation-view-tabs button:hover,
.public-discover-shell .tcg-view-heading,
.public-discover-shell .tcg-card-copy,
.public-discover-shell .tcg-relation-card-back,
.public-discover-shell .field-legend,
.public-discover-shell .fusion-recipe-tabs button,
.public-discover-shell .fusion-note,
.public-discover-shell .evolution-selector button,
.public-discover-shell .binder-page,
.public-discover-shell .pack-fan i,
.public-discover-shell .relay-deck-tabs button,
.public-discover-shell .catalog-kpis > div,
.public-discover-shell .catalog-toolbar input,
.public-discover-shell .catalog-toolbar select,
.public-discover-shell .catalog-test-toggle,
.public-discover-shell .catalog-result-bar,
.public-discover-shell .catalog-table { color: #102033; border-color: #102033; background: #ffffff; }
.public-discover-shell .relation-view-tabs button.is-active,
.public-discover-shell .fusion-recipe-tabs button.is-active,
.public-discover-shell .relay-deck-tabs button.is-active { color: #ffffff; background: #244d85; box-shadow: inset 0 -6px 0 #8dc2ff; }
.public-discover-shell .relation-view-tabs .is-active i,
.public-discover-shell .fusion-recipe-tabs button:hover,
.public-discover-shell .fusion-note button,
.public-discover-shell .evolution-level,
.public-discover-shell .catalog-test-toggle.is-active,
.public-discover-shell .catalog-status button,
.public-discover-shell .catalog-status > b,
.public-discover-shell .catalog-load-more { color: #102033; background: #cef26d; }
.public-discover-shell .relation-view-tabs small,
.public-discover-shell .tcg-view-heading p,
.public-discover-shell .tcg-card-copy em,
.public-discover-shell .fusion-note p,
.public-discover-shell .evolution-route header p,
.public-discover-shell .binder-page header p,
.public-discover-shell .catalog-result-bar span,
.public-discover-shell .catalog-project small,
.public-discover-shell .catalog-metrics small { color: #52667f; }
.public-discover-shell .tcg-relation-card,
.public-discover-shell .tcg-relation-card-back { border-color: #102033; box-shadow: 5px 5px 0 #102033; }
.public-discover-shell .tcg-card-art { background: #8dc2ff; }
.public-discover-shell .tcg-relation-card-back > div { background: #f3f6ff; }
.public-discover-shell .problem-hand { background: #f3f6ff; }
.public-discover-shell .problem-hand > header p { color: #52667f; }
.public-discover-shell .problem-hand > footer,
.public-discover-shell .solution-card-fan > span > i { color: #102033; border-color: #102033; background: #ffffff; }
.public-discover-shell .match-problem-tabs { border-color: #102033; background: #e8f2ff; }
.public-discover-shell .match-problem-tabs button,
.public-discover-shell .match-card > small,
.public-discover-shell .match-reasons { color: #102033; border-color: #102033; background: #ffffff; }
.public-discover-shell .match-problem-tabs button.is-active { color: #ffffff; background: #3770bf; box-shadow: inset 0 -5px 0 #cef26d; }
.public-discover-shell .match-stage { background: radial-gradient(circle at 50% 48%, #8dc2ff, transparent 25%), linear-gradient(135deg, #e8f2ff, #ffffff 50%, #f3f6ff); }
.public-discover-shell .match-stage > header p,
.public-discover-shell .match-reasons small { color: #52667f; }
.public-discover-shell .match-heart path { fill: #ffffff; stroke: #3770bf; }
.public-discover-shell .match-reasons > span { background: #f3f6ff; }
.public-discover-shell .summon-field { background: radial-gradient(circle at center, #cef26d 0 10%, #8dc2ff 10% 25%, transparent 25% 47%), linear-gradient(135deg, #e8f2ff 0 24%, #ffffff 24% 76%, #f3f6ff 76%); }
.public-discover-shell .field-beams line { stroke: #3770bf; }
.public-discover-shell .fusion-recipe-tabs,
.public-discover-shell .evolution-selector,
.public-discover-shell .relay-toolbar,
.public-discover-shell .catalog-kpis { background: #e8f2ff; }
.public-discover-shell .fusion-stage { background: radial-gradient(circle at 62% 50%, #cef26d, transparent 18%), linear-gradient(120deg, #e8f2ff, #f3f6ff 48%, #8dc2ff); }
.public-discover-shell .fusion-gate { background: #244d85; box-shadow: 0 0 0 9px #cef26d, 0 0 0 12px #102033, 0 0 45px #8dc2ff; }
.public-discover-shell .evolution-route { background: linear-gradient(160deg, #ffffff, #e8f2ff); }
.public-discover-shell .theme-pack { --pack-color: #3770bf; }
.public-discover-shell .theme-pack.pack-2 { --pack-color: #244d85; }
.public-discover-shell .theme-pack.pack-3 { --pack-color: #3770bf; }
.public-discover-shell .theme-pack.pack-4 { --pack-color: #102033; }
.public-discover-shell .binder-pocket-grid { background: #e8f2ff; box-shadow: inset 0 0 0 2px #102033; }
.public-discover-shell .relay-toolbar { border-color: #102033; }
.public-discover-shell .relay-board { color: #ffffff; background: #102033; }
.public-discover-shell .relay-board header p { color: #e8f2ff; }
.public-discover-shell .catalog-table-head { color: #ffffff; background: #244d85; }
.public-discover-shell .catalog-row { border-color: #d5e5fb; }
.public-discover-shell .catalog-row:hover { background: #e8f2ff; }
.public-discover-shell .catalog-row.is-test { background: #f3f6ff; }
.public-discover-shell .catalog-domains i { background: #e8f2ff; }
.public-discover-shell .catalog-status a { color: #102033; background: #ffffff; }
.public-discover-shell .catalog-status small { color: #244d85; }

.public-discover-shell .semantic-panel { color: #102033; border-color: #102033; background: #f3f6ff; box-shadow: 7px 7px 0 #102033; }
.public-discover-shell .semantic-heading,
.public-discover-shell .semantic-recent-card,
.public-discover-shell .semantic-discover-card > header,
.public-discover-shell .semantic-related-project { background: #ffffff; }
.public-discover-shell .semantic-recent,
.public-discover-shell .semantic-discover-tools { background: #e8f2ff; }
.public-discover-shell .semantic-discover-card,
.public-discover-shell .semantic-related-card,
.public-discover-shell .semantic-project-action,
.public-discover-shell .semantic-discover-tools input { color: #102033; border-color: #102033; }
.public-discover-shell .semantic-project-action,
.public-discover-shell .semantic-load-more button { color: #102033; background: #cef26d; }
.public-discover-shell .semantic-connection-reason { background: #f3f6ff; }
.public-discover-shell .semantic-heading p,
.public-discover-shell .semantic-recent > header small,
.public-discover-shell .semantic-recent-card p,
.public-discover-shell .semantic-discover-tools span,
.public-discover-shell .semantic-empty span { color: #52667f; }
.public-discover-shell .site-footer { color: #102033; border-color: #102033; background: #ffffff; }
.public-discover-shell .public-relationship-main { width: min(100%, 1680px); margin-inline: auto; }
.public-discover-shell .public-relationship-main { width: min(100%, 1680px); margin-right: auto; margin-left: auto; }
