.style-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.style-profile-grid .profile-card{min-width:0;padding:24px;border:1px solid #e9e8e2;border-radius:20px;background:#fafaf7;box-shadow:none}
.style-profile-grid .profile-card[hidden]{display:none}
.style-profile-grid .profile-card h3{margin:0 0 20px;font-size:20px;color:#252624}
.style-profile-grid .profile-card h4{margin:0 0 12px;font-size:13px;font-weight:700;color:#6d7168;letter-spacing:.04em}
.style-profile-grid .profile-card p{margin:0;color:#555a51;font-size:15px;line-height:1.85}
.style-profile-grid .profile-card[data-visual="定义"],.style-profile-grid .profile-card[data-visual="色彩"],.style-profile-grid .profile-card[data-visual="风格区别"]{grid-column:1/-1}
.style-profile-grid .profile-card[data-visual="定义"]{background:#f3f1e7;border:0}
.style-profile-grid .profile-card .style-definition{font-size:17px;line-height:1.9;color:#33382e;max-width:70ch}
.style-color-group+.style-color-group{margin-top:22px}
.style-color-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:14px 12px;margin:12px 0 20px}
.style-color{min-width:0;font-size:12px;line-height:1.5;color:#555a51}
.style-color-chip{display:block;height:62px;border-radius:12px;margin-bottom:8px;box-shadow:inset 0 0 0 1px #0000000b}
.style-profile-grid .profile-card .style-guidance{margin:12px 0}
.style-profile-grid .profile-card .style-color-note{font-size:12px;color:#83877e;margin-top:16px}
.style-material-group+.style-material-group{margin-top:20px}
.style-material-tags{display:flex;flex-wrap:wrap;gap:8px}
.style-material-tag{display:inline-flex;padding:8px 12px;border:1px solid #e2e1d6;border-radius:9px;background:#fff;color:#555a51;font-size:14px;line-height:1.6;max-width:100%}
.style-feature-list{display:grid;gap:12px;margin:0;padding:0 0 0 18px;font-size:15px;line-height:1.85;color:#555a51}
.style-feature-list li{padding-left:4px;white-space:pre-line}
.style-feature-list li::marker{color:#a39a64}
.style-source{margin-top:20px;padding-top:14px;border-top:1px solid #e4e4da;font-size:12px;color:#7c8075}
.style-source summary{cursor:pointer;width:fit-content}
.style-profile-grid .profile-card .style-source p{font-size:13px;white-space:pre-line;margin-top:12px}
@media(max-width:700px){.style-profile-grid{grid-template-columns:minmax(0,1fr)}.style-profile-grid .profile-card{padding:20px}.style-color-grid{grid-template-columns:repeat(auto-fill,minmax(65px,1fr));gap:12px 10px}.style-color-chip{height:55px}}

.style-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.style-compare-panel{padding:20px;background:#fff;border:1px solid #e5e4db;border-radius:14px}.style-profile-grid .style-compare-panel h4{font-size:16px;color:#343a30}.style-profile-grid .profile-card[data-visual="风格区别"]{order:10}@media(max-width:700px){.style-comparison{grid-template-columns:minmax(0,1fr)}}

/* A reference from the existing gallery stays beside the style notes. */
.style-reference-card{position:sticky;top:68px;align-self:start;min-width:0;overflow:hidden;border:1px solid #dcdcd2;border-radius:20px;background:#f5f3eb;box-shadow:0 8px 24px #00000012}
.style-reference-photo{display:block;background:#e7e3d9;line-height:0;overflow:hidden}
.style-reference-photo img{display:block;width:100%;height:auto;max-height:calc(100dvh - 230px);object-fit:contain}
.style-reference-caption{padding:18px 20px}
.style-reference-eyebrow{font-size:11px;letter-spacing:.12em;color:#7d806e}
.style-reference-caption h3{font-size:20px;line-height:1.4;margin:6px 0;color:#2d352b}
.style-reference-caption p{font-size:12px;line-height:1.7;margin:0 0 12px;color:#757b6e}
.style-reference-caption a{font-size:12px;color:#535b43;text-decoration:none;border-bottom:1px solid #bec3b3;padding-bottom:2px}
.style-reference-photo:focus-visible,.style-reference-caption a:focus-visible{outline:3px solid #7664c3;outline-offset:-3px}
@media(min-width:1000px){
 .style-browser-layout:has(>.style-reference-card){grid-template-columns:180px minmax(0,1fr) minmax(230px,26%);gap:20px}
 .style-browser-layout:has(>.style-reference-card)>.style-sidebar{top:68px;padding:20px 16px}
 .style-browser-layout:has(>.style-reference-card)>.style-sidebar .section-head{flex-wrap:wrap;gap:8px}
 .style-browser-layout:has(>.style-reference-card)>.style-sidebar .section-head h2{font-size:21px}
 .style-browser-layout:has(>.style-reference-card)>.style-sidebar .text-link{font-size:12px}
 .style-browser-layout:has(>.style-reference-card)>.style-main-column>.card{padding:24px}
}
@media(max-width:999px){
 .style-browser-layout:has(>.style-reference-card){grid-template-columns:minmax(0,1fr)}
 .style-browser-layout:has(>.style-reference-card)>.style-sidebar{position:static;order:1}
 .style-browser-layout:has(>.style-reference-card)>.style-sidebar .section-head{flex-direction:row;align-items:center;flex-wrap:wrap}
 .style-browser-layout:has(>.style-reference-card)>.style-sidebar .style-sidebar-list{display:flex;max-height:none;overflow-x:auto;overflow-y:hidden;gap:10px;padding-bottom:6px}
 .style-browser-layout:has(>.style-reference-card) .style-sidebar-item{flex:0 0 auto;white-space:nowrap}
 .style-reference-card{order:2;top:56px;z-index:20;display:flex;align-items:center;padding:10px;gap:14px;border-radius:16px}
 .style-reference-photo{flex:0 0 120px;border-radius:10px}
 .style-reference-photo img{width:120px;height:90px;object-fit:contain}
 .style-reference-caption{padding:0;min-width:0}
 .style-reference-caption h3{font-size:17px;margin:2px 0}
 .style-reference-caption p{font-size:11px;margin:0 0 4px}
 .style-reference-caption a{font-size:11px}
 .style-browser-layout:has(>.style-reference-card)>.style-main-column{order:3}
}

/* Compact, single-row palettes with names printed on each color. */
.style-color-grid{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;padding:8px 5px 10px;margin:4px -5px 10px;scrollbar-width:thin;scrollbar-color:#b9bdaf transparent}
.style-color-grid::-webkit-scrollbar{height:5px}
.style-color-grid::-webkit-scrollbar-thumb{background:#b9bdaf;border-radius:5px}
.style-color{flex:0 0 auto;min-width:0}
.style-color-chip{display:flex;align-items:center;justify-content:center;min-width:64px;width:max-content;height:48px;padding:0 8px;margin:0;box-sizing:border-box;border-radius:9px;font-size:12px;font-weight:600;line-height:1;white-space:nowrap;cursor:default;transform-origin:center;transition:transform .18s ease,box-shadow .18s ease;box-shadow:inset 0 0 0 1px #0000000b}
.style-color-chip:hover,.style-color-chip:focus-visible{position:relative;z-index:1;transform:scale(1.12);box-shadow:inset 0 0 0 1px #0000000b,0 4px 9px #00000026}
.style-color-chip:focus-visible,.style-color-grid:focus-visible{outline:2px solid #70629d;outline-offset:2px}
.style-color-grid>.style-material-tag{flex:0 0 auto;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.style-color-chip{transition:none}}

/* Material reference photos with their original labels below. */
.style-material-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px;align-items:start}
.style-material-tile{margin:0;min-width:0;overflow:hidden;border:1px solid #e3e2d9;border-radius:11px;background:#fff}
.style-material-photo{aspect-ratio:4/3;overflow:hidden;background:#eeede6}
.style-material-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.style-material-tile:hover img{transform:scale(1.05)}
.style-material-tile figcaption{padding:8px;font-size:12px;line-height:1.6;color:#454d42;overflow-wrap:anywhere}
.style-material-photo-grid>.style-material-tag{font-size:12px;padding:8px;box-sizing:border-box}
@media(max-width:480px){.style-material-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.style-material-photo img{transition:none}}

.style-profile-grid .profile-card[data-visual="材料"]{grid-column:1/-1}

/* Full-width notes avoid empty half-rows; brief traits form compact strips. */
.style-profile-grid{grid-template-columns:minmax(0,1fr);gap:12px}
.style-profile-grid .profile-card{padding:20px}
.style-profile-grid .profile-card h3{margin-bottom:12px}
.style-profile-grid .profile-card[data-visual="典型特征"],.style-profile-grid .profile-card[data-visual="情绪氛围"]{display:flex;align-items:flex-start;gap:12px;padding:14px 18px}
.style-profile-grid .profile-card[data-visual="典型特征"] h3,.style-profile-grid .profile-card[data-visual="情绪氛围"] h3{flex:0 0 auto;margin:4px 0;font-size:16px;line-height:1.5}
.style-profile-grid .profile-card[data-visual="典型特征"] .style-profile-body,.style-profile-grid .profile-card[data-visual="情绪氛围"] .style-profile-body{flex:1;min-width:0}
.style-profile-grid .profile-card[data-visual="典型特征"] .style-feature-list,.style-profile-grid .profile-card[data-visual="情绪氛围"] .style-feature-list{display:flex;flex-wrap:wrap;gap:6px 8px;padding:0;list-style:none;font-size:13px;line-height:1.6}
.style-profile-grid .profile-card[data-visual="典型特征"] .style-feature-list li,.style-profile-grid .profile-card[data-visual="情绪氛围"] .style-feature-list li{padding:4px 9px;border-radius:7px;background:#eeede4;white-space:normal;max-width:100%;box-sizing:border-box}
.style-profile-grid .profile-card[data-visual="典型特征"][hidden],.style-profile-grid .profile-card[data-visual="情绪氛围"][hidden]{display:none}
@media(max-width:480px){.style-profile-grid .profile-card[data-visual="典型特征"],.style-profile-grid .profile-card[data-visual="情绪氛围"]{flex-direction:column;gap:6px;padding:14px}.style-profile-grid .profile-card{padding:16px}}
