/* Custom colors have the final say, including Classic and photo cards. */
.accent-black{--button-color:#171717;--button-dark:#050505;--button-bright:#8c8c8c;--button-rgb:80,80,80}
.hub-link[data-colors~="background"]:not(.featured){background:var(--link-background)}
.hub-link:is(.button-gloss,.button-glow,.button-material)[data-colors~="background"]:not(.featured),.hub-link[data-colors~="gradient"]:not(.featured){background:linear-gradient(120deg,var(--link-background,var(--button-color)),var(--link-gradient))}
.hub-link.button-gloss[data-colors~="background"]:not(.featured){background:linear-gradient(180deg,#ffffff38,transparent 45%),linear-gradient(120deg,var(--link-background),var(--link-gradient))}
.hub-link[data-colors~="background"] .feature-shade{background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--link-background) 88%,transparent))}
.hub-link[data-colors~="text"],.hub-link[data-colors~="text"] .link-title,.hub-link[data-colors~="text"] h2{color:var(--link-text)}
.hub-link[data-colors~="description"] .link-description,.hub-link[data-colors~="description"] .feature-bottom p{color:var(--link-description);opacity:1}
.hub-link[data-colors~="border"],.hub-link[data-colors~="border"]:hover{border-color:var(--link-border)}
html .hub-link[data-colors][data-colors~="iconBackground"] :is(.link-thumbnail,.feature-play){background:var(--link-iconBackground);border-color:color-mix(in srgb,var(--link-iconBackground),#fff 25%)}
html .hub-link[data-colors][data-colors~="icon"] :is(.link-thumbnail,.feature-play){color:var(--link-icon)}
.hub-link[data-colors~="badgeBackground"] :is(.link-badge,.feature-badge){background:var(--link-badgeBackground);border-color:transparent}
.hub-link[data-colors~="badge"] :is(.link-badge,.feature-badge){color:var(--link-badge)}
.hub-link[data-colors~="arrow"] :is(.link-arrow,.link-arrow .icon,.feature-arrow){color:var(--link-arrow);opacity:1}
.hub-link[data-colors~="glow"],.hub-link[data-colors~="glow"]:hover{box-shadow:0 5px 23px color-mix(in srgb,var(--link-glow) 35%,transparent),inset 0 1px 0 #ffffff25}
.hub-link[data-colors~="photoOverlay"] .feature-shade{background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--link-photoOverlay) 94%,transparent))}
html[data-page-colors~="headline"] .identity h1{color:var(--page-headline)}
html[data-page-colors~="emphasis"] .identity h1 em{color:var(--page-emphasis)}
html[data-page-colors~="footer"] .hub-footer{color:var(--page-footer)}
html[data-page-colors~="signup"] .newsletter-card,html[data-page-colors~="signup"] .newsletter-card:hover{background:var(--page-signup)}
html[data-page-colors~="signupText"] .newsletter-card{color:var(--page-signup-text)}
html[data-page-colors~="signupIconBackground"] .newsletter-icon{background:var(--page-signup-icon-bg)}
html[data-page-colors~="signupIcon"] .newsletter-icon{color:var(--page-signup-icon)}
html[data-page-colors~="accent"] .category.active{background:var(--accent);border-color:var(--accent)}
html[data-page-colors~="accent"] .status-dot{background:var(--accent)}
.color-facebook{background:#0866ff;color:#fff}.color-bilibili{background:#00a1d6;color:#fff}.color-rumble{background:#85c742;color:#112008}.color-x,.color-threads,.color-tiktok{background:#111;color:#fff}
.color-workbench{margin:16px 0 10px;padding:18px;border:1px solid #dfe3db;border-radius:16px;background:#f9faf6;color:#29342c}
.color-target{display:flex;align-items:end;gap:12px}.color-target label{display:block;flex:1;font-size:12px;font-weight:600;margin:0}.color-workbench select{display:block;width:100%;margin-top:7px;border:1px solid #ccd4c8;border-radius:9px;padding:10px;background:#fff;color:#29342c;font:inherit}
.color-mode{font-size:10px;border:1px solid #d6ddcf;border-radius:20px;padding:4px 9px;margin-bottom:7px;color:#5b6856;background:#edf1e8}
.color-value-row{display:flex;align-items:center;gap:12px;margin:18px 0}.color-workbench .color-chip{display:flex;margin:0;flex:none}.color-chip input[type=color]{width:54px;height:54px;padding:4px;border:1px solid #ccd4c8;background:#fff;border-radius:12px;cursor:pointer}.color-chip input::-webkit-color-swatch{border:0;border-radius:7px}.color-chip input::-webkit-color-swatch-wrapper{padding:0}
.color-workbench .hex-field{margin:0;font-size:10px;flex:1;min-width:100px}.color-workbench input[data-color-hex]{display:block;width:100%;max-width:160px;padding:8px 10px;margin-top:2px;border:1px solid #ccd4c8;border-radius:8px;background:#fff;color:#29342c;font:500 14px/1.3 monospace}.color-workbench input[aria-invalid=true]{border-color:#b53535;outline-color:#b53535}
.color-sliders{display:grid;gap:13px}.color-sliders label{display:block;margin:0;font-size:11px;font-weight:500}.color-sliders label>span{display:flex;justify-content:space-between;margin-bottom:8px}.color-sliders output{font-variant-numeric:tabular-nums;color:#586653}
.color-workbench input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:100%;height:13px;border-radius:8px;padding:0;margin:6px 0 10px;border:1px solid #0002;cursor:pointer;background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}
.color-workbench input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#29342c;box-shadow:0 1px 5px #0005}.color-workbench input[type=range]::-moz-range-thumb{width:17px;height:17px;border:3px solid #fff;border-radius:50%;background:#29342c;box-shadow:0 1px 5px #0005}
.color-workbench :is(input,select,button):focus-visible{outline:3px solid #bb7d37;outline-offset:3px}.color-actions{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:15px}.color-actions small{font-size:10px;max-width:210px;color:#63705d;line-height:1.5}.color-actions button{font-size:11px;text-align:left}.color-scope-tabs{display:flex;gap:8px;flex-wrap:wrap}.color-scope-tabs [aria-pressed=true]{background:#29342c;color:#fff;border-color:#29342c}
.link-custom-colors{border-top:1px solid var(--line);padding-top:16px;margin:16px 0}.link-custom-colors h3{font:600 16px/1.4 DM,Arial,sans-serif;margin:0}.link-custom-colors>small{display:block;margin-top:10px;line-height:1.5}.link-style-preview .hub-link{pointer-events:none}.link-style-preview .link-description{font-size:10px}.link-style-preview .link-badge{font-size:8px}
.icon-choice .brand-icon{width:23px;height:23px}.icon-picker{grid-template-columns:repeat(auto-fit,minmax(38px,1fr));max-height:200px;overflow:auto;padding:4px}.icon-choice{min-width:38px;min-height:38px}
@media(max-width:600px){.color-workbench{padding:13px}.color-value-row{gap:9px}.color-value-row .button{padding:9px;font-size:10px}.color-actions{align-items:start}.color-mode{font-size:9px}.color-actions small{max-width:155px}.color-workbench input[type=range]{height:16px;margin-top:10px;margin-bottom:12px}.color-workbench input[type=range]::-webkit-slider-thumb{width:26px;height:26px}.color-target{gap:8px}}
@media(prefers-reduced-motion:reduce){.color-workbench *{transition:none}}

.link-custom-colors .link-style-preview{position:sticky;top:0;z-index:2;padding:10px 0;margin:3px 0;background:#fff}
