/* The color atlas keeps neutral workspace controls and uses actual colors as its visual surface. */
.tc-app{--tc-mono:"Cascadia Mono",Consolas,monospace;--tc-display:"Noto Serif SC","Songti SC",SimSun,serif}
.tc-app *{box-sizing:border-box}.tc-app :is(button,input,select,textarea){font:inherit}.tc-app button{cursor:pointer}.tc-app button:disabled{opacity:.4;cursor:not-allowed}.tc-app [hidden]{display:none!important}.tc-app svg{width:17px;height:17px;flex-shrink:0}.tc-app [data-icon]{display:inline-flex;align-items:center;justify-content:center}.tc-app a{color:var(--ws-accent)}
body.tool-shell-chinese-colors{padding-top:72px!important}.tool-shell-chinese-colors .tool-shell-ad-bottom{margin:24px auto 0}
body.tool-shell-chinese-colors>.tc-app{width:min(1440px,calc(100% - 64px));padding:30px 0 48px}
body.tool-shell-chinese-colors>.tc-app>.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 26px;margin:0 0 22px;border-bottom:1px solid var(--ws-border)}
body.tool-shell-chinese-colors>.tc-app>.hero .eyebrow{font:10px/1.5 var(--tc-mono);color:var(--ws-secondary);margin:0 0 6px}
body.tool-shell-chinese-colors>.tc-app>.hero h1{font-size:29px!important;line-height:1.4;margin:0 0 6px;font-weight:600}
body.tool-shell-chinese-colors>.tc-app>.hero .lede{font-size:12px;line-height:1.8;margin:0;color:var(--ws-secondary)}
.tc-local{display:flex;align-items:center;gap:9px;color:var(--ws-secondary);font-size:11px;white-space:nowrap}.tc-local::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ws-accent)}
.tc-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}.tc-catalog{min-width:0}
.tc-search-row{display:flex;align-items:center;gap:14px}.tc-search{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border-bottom:1px solid var(--ws-border);color:var(--ws-secondary);padding:0 0 9px}.tc-search input{width:100%;min-width:0;border:0;outline:none;color:var(--ws-text);height:32px;background:transparent;font-size:13px}.tc-search input::placeholder{color:var(--ws-secondary);opacity:.8}.tc-search:focus-within{border-color:var(--ws-accent);box-shadow:0 1px 0 var(--ws-accent)}
.tc-btn,.tc-icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid var(--ws-border);border-radius:5px;background:var(--ws-surface);color:var(--ws-text);font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap}.tc-icon{width:30px;height:30px;min-height:30px;padding:6px;flex-shrink:0}.tc-btn:hover,.tc-icon:hover{background:var(--ws-soft)}.tc-primary{background:var(--ws-text);border-color:var(--ws-text);color:var(--ws-surface)}.tc-primary:hover{background:var(--ws-text);filter:brightness(.92)}.tc-btn[aria-pressed=true]{border-color:var(--ws-accent);color:var(--ws-accent)}.tc-btn[aria-pressed=true] svg{fill:currentColor}
#tc-favorites{background:transparent;border:0;font-size:12px;padding:6px 0 6px 10px;min-height:38px}#tc-favorite-count{font:11px var(--tc-mono)}
.tc-families{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:20px 0 14px;border-bottom:1px solid var(--ws-border);padding-bottom:3px}.tc-family{display:flex;align-items:center;gap:6px;padding:8px 0 11px;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--ws-secondary);font-size:12px;min-height:38px;white-space:nowrap}.tc-family i{width:7px;height:7px;flex-shrink:0;border:1px solid #0002;border-radius:50%;background:var(--swatch)}.tc-family small{font:9px var(--tc-mono);opacity:.8}.tc-family[aria-pressed=true]{color:var(--ws-text);border-bottom-color:var(--ws-text);font-weight:600}.tc-family:hover{color:var(--ws-text)}
.tc-results{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;color:var(--ws-secondary);font-size:11px}.tc-results label{display:flex;align-items:center;gap:6px}.tc-results select{padding:5px 18px 5px 6px;border:0;background:transparent;color:var(--ws-text);border-radius:3px;font-size:11px;max-width:140px}
.tc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px 10px}.tc-card{position:relative;min-width:0;border:1px solid color-mix(in srgb,var(--swatch),#000 9%);border-radius:2px;background:var(--swatch);color:var(--swatch-ink);transition:transform .18s ease,box-shadow .18s ease}.tc-card:hover{transform:translateY(-3px);box-shadow:0 5px 13px #00000012}.tc-card[data-selected=true]{outline:2px solid var(--ws-text);outline-offset:3px}.tc-pick{display:flex;flex-direction:column;width:100%;height:246px;padding:0;border:0;background:var(--swatch);color:var(--swatch-ink);border-radius:1px;text-align:left}.tc-card-color{display:block;position:relative;width:100%;flex:1;min-height:0;background:var(--swatch);color:var(--swatch-ink)}.tc-color-number{position:absolute;left:13px;top:16px;font:9px var(--tc-mono);opacity:.72}.tc-card-name{position:absolute;left:15px;top:52px;writing-mode:vertical-rl;text-orientation:upright;max-height:146px;font:24px/1.5 var(--tc-display);font-weight:400;letter-spacing:0}.tc-card-info{display:flex;align-items:center;justify-content:space-between;gap:3px;padding:10px 11px;min-height:36px;border-top:1px solid color-mix(in srgb,var(--swatch-ink),transparent 82%);color:var(--swatch-ink)}.tc-card-info code{font:9px var(--tc-mono)}.tc-card-info small{font-size:8px;opacity:.8}.tc-fav{position:absolute;right:7px;top:9px;width:24px;height:24px;min-height:24px;padding:5px;background:transparent;border:0;color:var(--swatch-ink);opacity:.7}.tc-fav:hover{background:color-mix(in srgb,var(--swatch-ink),transparent 90%);opacity:1}.tc-fav svg{width:13px;height:13px}.tc-fav[aria-pressed=true]{opacity:1;color:var(--swatch-ink)}.tc-fav[aria-pressed=true] svg{fill:currentColor}.tc-pick:focus-visible{outline-offset:-3px!important}
.tc-sidebar{position:sticky;top:96px;min-width:0;max-height:calc(100dvh - 120px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--ws-border) transparent;padding:0 4px 8px 0}#tc-inspector>summary{display:none}.tc-detail{background:transparent;border:0;border-radius:0}.tc-color-preview{position:relative;height:250px;padding:23px;background:var(--swatch);color:var(--swatch-ink);border:1px solid color-mix(in srgb,var(--swatch),#000 9%)}#tc-family-label{position:absolute;top:22px;left:22px;font-size:10px}#tc-name{position:absolute;top:32px;right:32px;writing-mode:vertical-rl;text-orientation:upright;font:40px/1.45 var(--tc-display);font-weight:400;letter-spacing:0;max-height:180px;margin:0}#tc-preview-hex{position:absolute;bottom:22px;left:22px;font:12px var(--tc-mono)}
.tc-detail-content{padding:16px 0 0}.tc-intro{font-size:12px;line-height:1.9;color:var(--ws-secondary);margin:0 0 12px;max-height:70px;overflow:auto}.tc-values{margin:0 0 14px}.tc-values>div{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:34px;border-bottom:1px solid var(--ws-border)}.tc-values dt{font:10px var(--tc-mono);color:var(--ws-secondary)}.tc-values dd{display:flex;align-items:center;gap:8px;margin:0;color:var(--ws-text)}.tc-values code{font:11px var(--tc-mono)}.tc-values .tc-icon{border:0;background:transparent;width:26px;height:26px;min-height:26px}.tc-values svg{width:14px;height:14px}.tc-detail-actions{display:flex;gap:8px}.tc-detail-actions>.tc-primary{flex:1}
.tc-palette{border-top:1px solid var(--ws-border);padding-top:20px;margin-top:22px}.tc-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.tc-section-head h2{font-size:14px;line-height:1.6;font-weight:600;margin:0}.tc-section-head>span{font:10px var(--tc-mono);color:var(--ws-secondary)}.tc-preset-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:11px;color:var(--ws-secondary)}.tc-preset-label select{min-width:132px;border:0;border-bottom:1px solid var(--ws-border);padding:6px;background:transparent;color:var(--ws-text);font-size:12px;border-radius:0}.tc-palette-strip{display:flex;height:58px;overflow:hidden;border:1px solid var(--ws-border);border-radius:2px;margin-bottom:8px}.tc-palette-strip>span{flex:1;background:var(--swatch)}.tc-palette-list{list-style:none;padding:0;margin:0}.tc-palette-list li{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--ws-border);min-width:0}.tc-mini-swatch{width:22px;height:28px;min-width:22px;padding:0;border:1px solid #0001;border-radius:1px;background:var(--swatch)}.tc-palette-name{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.tc-palette-name code{font:9px var(--tc-mono);color:var(--ws-secondary)}.tc-row-actions{display:flex;gap:0}.tc-row-actions .tc-icon{width:24px;height:26px;min-height:26px;padding:5px;border:0;background:transparent}.tc-row-actions svg{width:12px;height:12px}.tc-palette-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:12px}.tc-palette-actions>.tc-btn{flex:1}.tc-palette-actions>.tc-icon{height:36px;width:30px}.tc-palette-actions svg{width:15px;height:15px}.tc-source,.tc-helper{margin:16px 0 0;color:var(--ws-secondary);font-size:10px;line-height:1.9}.tc-source a{text-underline-offset:3px}.tc-empty{padding:64px 20px;text-align:center;color:var(--ws-secondary)}.tc-empty h2{font-size:18px;color:var(--ws-text)}.tc-empty p{font-size:12px;margin-bottom:20px}
.tc-status{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);z-index:500;padding:10px 18px;border-radius:5px;background:var(--ws-text);color:var(--ws-surface);box-shadow:0 4px 18px #0002;pointer-events:none;font-size:12px}.tc-status:empty{display:none}
#tc-copy-dialog{width:min(540px,calc(100% - 32px));padding:22px;border:1px solid var(--ws-border);border-radius:8px;background:var(--ws-surface);color:var(--ws-text)}#tc-copy-dialog::backdrop{background:#0007}#tc-copy-dialog p{font-size:13px;color:var(--ws-secondary)}#tc-copy-content{width:100%;min-height:200px;padding:12px;border:1px solid var(--ws-border);border-radius:6px;background:var(--ws-soft);color:var(--ws-text);font:13px/1.7 var(--tc-mono);resize:vertical}
:root[data-ui-theme=dark] .tc-card{border-color:color-mix(in srgb,var(--swatch),#fff 14%)}
@media(min-width:1500px){.tc-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:1200px){.tc-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.tc-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.tc-pick{height:226px}.tc-card-name{font-size:22px}.tc-card-info{padding-inline:8px}.tc-card-info small{display:none}}
@media(max-width:1000px){.tc-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.tc-families{column-gap:12px}}
@media(max-width:850px){body.tool-shell-chinese-colors>.tc-app{width:calc(100% - 40px);padding-top:24px}.tc-layout{grid-template-columns:1fr;gap:20px}.tc-sidebar{position:static;grid-row:1;max-height:none;overflow:visible;padding:0}#tc-inspector{scroll-margin-top:92px}.tc-inspector-body{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:20px}#tc-inspector>summary{display:list-item;cursor:pointer;padding:12px 0;border-top:1px solid var(--ws-border);border-bottom:1px solid var(--ws-border);color:var(--ws-text);font-size:12px;font-weight:500}.tc-palette{padding-top:0;border-top:0;margin-top:0}.tc-source{grid-column:1/-1;margin-top:0}.tc-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.tc-pick{height:230px}.tc-families{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:18px;margin-top:16px}.tc-family{flex-shrink:0}.tc-local{display:none}body.tool-shell-chinese-colors>.tc-app>.hero{margin-bottom:18px;padding-bottom:18px}body.tool-shell-chinese-colors>.tc-app>.hero h1{font-size:26px!important}}
@media(max-width:560px){body.tool-shell-chinese-colors>.tc-app{width:calc(100% - 32px);padding-top:22px}body.tool-shell-chinese-colors>.tc-app>.hero h1{font-size:25px!important}body.tool-shell-chinese-colors>.tc-app>.hero .lede{font-size:12px;max-width:28ch}.tc-layout{gap:18px}.tc-inspector-body{grid-template-columns:1fr;gap:20px}.tc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tc-pick{height:220px}.tc-card-name{font-size:23px;left:14px;top:48px;max-height:140px}.tc-card-info{padding:9px;font-size:10px}.tc-card-info code{font-size:9px}.tc-color-number{left:11px;top:15px}.tc-fav{right:4px;top:7px}.tc-search-row{gap:8px}.tc-search{padding-bottom:6px}.tc-search input{font-size:12px}#tc-favorites{font-size:11px;gap:5px}.tc-families{gap:16px;margin-bottom:12px}.tc-family{font-size:11px}.tc-family small{display:none}.tc-color-preview{height:220px}#tc-name{font-size:37px;top:24px}.tc-intro{max-height:90px}.tc-palette-list{display:block}.tc-palette-list li{padding:8px 0}.tc-row-actions .tc-icon{width:30px;height:30px;min-height:30px}.tc-palette-name{font-size:12px}.tc-palette-name code{font-size:10px}.tc-source{font-size:10px}}
@media(prefers-reduced-motion:reduce){.tc-card{transition:none}.tc-card:hover{transform:none}}
