.color-studio .tc-panel,.color-studio .tc-dialog{--tc-paper:#f7f6f2;--tc-surface:#fff;--tc-ink:#35404b;--tc-muted:#68717a;--tc-line:#e7e3dd;--tc-accent:#7668b2;--tc-soft:#eeeaf5;color:var(--tc-ink)}
.color-studio .cs-view-switch{max-width:none}
.color-studio .cs-view-switch button[data-gallery-mode]{font-size:14px;min-width:0;white-space:nowrap}
.color-studio .cs-view-slider{width:calc((100% - 10px)/3)}
.color-studio[data-gallery-mode=traditional] .cs-view-slider{transform:translateX(200%)}
.color-studio .tc-intro{font-size:12px;color:var(--tc-muted);margin:0 0 12px}
.color-studio .tc-families{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.color-studio .tc-family{display:flex;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:4px;border:1px solid var(--tc-line);border-radius:10px;background:var(--tc-surface);color:var(--tc-muted);font:inherit;font-size:12px;cursor:pointer}
.color-studio .tc-family-dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--dot)}
.color-studio .tc-family[aria-pressed=true]{border-color:var(--tc-accent);background:var(--tc-soft);color:var(--tc-accent)}
.color-studio .tc-status{font-size:12px;line-height:1.7;color:var(--tc-muted);margin:14px 1px 10px}
.color-studio .tc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 8px}
.color-studio button.tc-color{min-width:0;width:100%;min-height:44px;padding:0;border:0;background:transparent;font:inherit;cursor:pointer;text-align:center;color:var(--tc-ink);appearance:none;touch-action:manipulation}
.color-studio .tc-square{display:block;aspect-ratio:1;background:var(--swatch);border-radius:5px;border:1px solid #0000000a;transition:transform .16s ease-out,box-shadow .16s ease-out}
.color-studio .tc-color:active .tc-square{transform:scale(.94)}
.color-studio .tc-color-name{display:block;margin-top:5px;font-size:11px;line-height:1.5;min-height:32px;overflow-wrap:anywhere;color:var(--tc-ink)}
.color-studio .tc-grid.is-changing{animation:tc-grid-in .22s ease-out}
.color-studio .tc-family-heading{font-size:15px;font-weight:600;line-height:1.6;color:var(--tc-ink);margin:22px 0 12px}
.color-studio .tc-family-heading:first-child{margin-top:0}
.color-studio .tc-family-heading small{margin-left:8px;font-size:12px;font-weight:400;color:var(--tc-muted)}
.color-studio .tc-empty{padding:30px 10px;text-align:center;font-size:14px;color:var(--tc-muted)}
.color-studio .tc-dialog{padding:0;border:1px solid var(--tc-line);background:var(--tc-paper);box-sizing:border-box;box-shadow:0 20px 80px #29212e33;overscroll-behavior:contain}
.color-studio .tc-dialog::backdrop{background:#28232e88;backdrop-filter:blur(4px)}
.color-studio .tc-dialog[open]{animation:tc-dialog-in .24s cubic-bezier(.2,.8,.3,1)}
.color-studio .tc-dialog :is(button,a,input):focus-visible{outline:2px solid var(--tc-accent);outline-offset:3px}
.color-studio .tc-catalog{width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0;overflow:hidden}
.color-studio .tc-catalog-shell{display:flex;flex-direction:column;height:100%;min-height:0;padding-top:env(safe-area-inset-top)}
.color-studio .tc-catalog-header{display:flex;justify-content:space-between;align-items:center;flex:none;padding:18px 16px 12px;gap:12px}
.color-studio .tc-catalog-header small{font-size:9px;letter-spacing:1.7px;color:#8c806b}
.color-studio .tc-catalog-header h2{font-family:'Songti SC',SimSun,serif;font-size:21px;line-height:1.6;margin:2px 0 0;color:var(--tc-ink)}
.color-studio .tc-close{flex:none;width:44px;height:44px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--tc-line);border-radius:50%;background:var(--tc-surface);color:var(--tc-muted);font-size:24px;line-height:1;cursor:pointer}
.color-studio .tc-catalog-controls{flex:none;padding:0 16px 3px;border-bottom:1px solid var(--tc-line)}
.color-studio .tc-search{display:flex;align-items:center;gap:8px;background:var(--tc-surface);border:1px solid var(--tc-line);border-radius:12px;padding:4px 6px 4px 12px;margin:0 0 12px}
.color-studio .tc-search>span{font-size:24px;color:var(--tc-muted)}
.color-studio .tc-search input{font:inherit;font-size:16px;min-width:0;width:100%;height:40px;line-height:40px;padding:0;background:transparent;color:var(--tc-ink);border:0;outline:0;box-shadow:none}
.color-studio .tc-search:focus-within{outline:2px solid #b8acd2}
.color-studio .tc-search button{flex:none;width:44px;height:44px;border:0;background:transparent;color:var(--tc-muted);font-size:22px;cursor:pointer}
.color-studio .tc-families-all{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.color-studio .tc-families-all .tc-family{font-size:11px;padding:2px;gap:3px}
.color-studio .tc-catalog-controls .tc-status{margin:10px 0 8px}
.color-studio .tc-catalog-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 16px calc(24px + env(safe-area-inset-bottom));scrollbar-gutter:stable;touch-action:pan-y}
.color-studio .tc-source{margin:26px 0 0;font-size:11px;line-height:1.8;color:var(--tc-muted)}
.color-studio .tc-source a,.color-studio .tc-detail-note a{color:var(--tc-accent)}
.color-studio .tc-detail{width:calc(100% - 32px);max-width:420px;max-height:84vh;max-height:84dvh;margin:auto;inset:0;border-radius:18px;overflow:auto;padding-bottom:env(safe-area-inset-bottom)}
.color-studio .tc-detail[open]{animation:tc-detail-in .2s ease-out}
.color-studio .tc-detail::backdrop{background:#28232e66;backdrop-filter:blur(2px)}
.color-studio .tc-detail-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 8px 0 18px;background:var(--tc-paper);border-bottom:1px solid var(--tc-line);box-sizing:border-box;font-size:12px;color:var(--tc-muted)}
.color-studio .tc-detail-top .tc-close{width:44px;height:44px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:24px}
.color-studio .tc-detail-summary{display:flex;align-items:center;gap:16px;margin:0 0 14px}
.color-studio .tc-detail-swatch{width:72px;height:72px;flex:none;border:1px solid #0000000a;border-radius:8px;background:var(--swatch);box-sizing:border-box}
.color-studio .tc-detail-identity{min-width:0}
.color-studio .tc-detail-paper{padding:18px}
.color-studio .tc-detail h2{font-family:'Songti SC',SimSun,serif;font-size:26px;line-height:1.4;font-weight:600;margin:0 0 2px;color:var(--tc-ink);overflow-wrap:anywhere}
.color-studio .tc-pinyin{font-size:12px;line-height:1.6;color:var(--tc-muted);margin:0}
.color-studio #tc-detail-number{display:block;font-size:10px;line-height:1.8;color:var(--tc-muted);margin-top:2px}
.color-studio .tc-tags{font-size:12px;line-height:1.6;color:var(--tc-muted);margin:0 0 12px}
.color-studio .tc-values{border-top:1px solid var(--tc-line);border-bottom:1px solid var(--tc-line)}
.color-studio .tc-values button{display:flex;align-items:center;width:100%;min-height:44px;border:0;padding:6px 0;background:transparent;color:var(--tc-ink);font:inherit;font-size:12px;gap:10px;cursor:pointer;text-align:left}
.color-studio .tc-values button+button{border-top:1px dashed var(--tc-line)}
.color-studio .tc-values small{flex:none;width:32px;color:var(--tc-muted);font-size:10px}
.color-studio .tc-values span{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.color-studio .tc-values em{margin-left:auto;font-style:normal;font-size:11px;color:var(--tc-accent);flex:none}
.color-studio .tc-description{font-size:13px;line-height:1.8;margin:14px 0;color:#5e666d;overflow-wrap:anywhere}
.color-studio .tc-related-heading{font-size:12px;line-height:1.6;font-weight:500;color:var(--tc-muted);margin:14px 0 8px}
.color-studio .tc-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.color-studio .tc-related-grid .tc-square{aspect-ratio:2}
.color-studio .tc-related-grid .tc-color-name{min-height:17px}
.color-studio .tc-detail-note{font-size:11px;line-height:1.8;color:var(--tc-muted);margin:18px 0 0}
@keyframes tc-dialog-in{from{opacity:.3;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes tc-detail-in{from{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes tc-grid-in{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:700px){.color-studio .tc-catalog{width:720px;max-width:calc(100% - 32px);height:90vh;height:90dvh;max-height:90vh;max-height:90dvh;margin:auto;border-radius:20px;border:1px solid var(--tc-line)}.color-studio .tc-families-all{grid-template-columns:repeat(9,minmax(0,1fr))}.color-studio .tc-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.color-studio .tc-catalog .tc-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.color-studio .tc-detail{margin:auto;border-radius:20px}.color-studio .tc-family{font-size:12px}}
@media(max-width:360px){.color-studio .tc-grid{gap:10px 6px}.color-studio .tc-family{font-size:11px;gap:4px}.color-studio .tc-detail-paper{padding:16px}.color-studio .cs-view-switch button[data-gallery-mode]{font-size:13px}.color-studio .cs-view-switch button span{font-size:16px;margin-right:4px}}
@media(max-width:699px){.color-studio[data-gallery-mode=traditional] .cs-palette{display:none}.color-studio[data-gallery-mode=traditional] .cs-hero{padding-bottom:12px}.color-studio[data-gallery-mode=traditional] .cs-hero h1 br{display:none}.color-studio[data-gallery-mode=traditional] .cs-hero h1{font-size:19px}}
@media(prefers-reduced-motion:reduce){.color-studio .tc-dialog,.color-studio .tc-grid,.color-studio .tc-square{animation:none!important;transition:none!important}}
