/* Try a Color — extends the main CRDMODS design system (style.css) */
.tc-hero{padding:84px 0 36px;border-bottom:1px solid var(--line);background-image:radial-gradient(ellipse 600px 280px at 85% 0%,rgba(255,66,24,.10),transparent 65%)}
.tc-hero h1{font-size:clamp(38px,6.4vw,70px);margin:14px 0 16px}
.tc-hero h1 span{color:var(--flame)}
.tc-hero .lede{color:var(--ink-muted);max-width:640px;font-size:16px}
.tc-steps{display:flex;flex-wrap:wrap;margin-top:30px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tc-steps div{flex:1 1 200px;padding:14px 18px;font-size:13px;color:var(--ink-muted);border-right:1px solid var(--line)}
.tc-steps div:last-child{border-right:0}
.tc-steps b{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--flame);margin-bottom:3px}
@media(max-width:700px){.tc-steps div{border-right:0;border-bottom:1px solid var(--line)}.tc-steps div:last-child{border-bottom:0}}

#tryTool{padding:44px 0 70px}
.tc-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;align-items:start}
@media(max-width:940px){.tc-grid{grid-template-columns:1fr}}

.tc-stage{position:relative;background:var(--bg-1);border:1px solid var(--line);border-radius:var(--radius);min-height:320px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.tc-stage.drag{border-color:var(--flame);box-shadow:0 0 0 2px rgba(255,66,24,.35)}
.tc-stage canvas{display:none;width:100%;height:auto;max-height:78vh;object-fit:contain;cursor:crosshair;background:#000;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.tc-stage.loaded canvas{display:block}
.tc-empty{text-align:center;padding:44px 24px;max-width:420px}
.tc-stage.loaded .tc-empty{display:none}
.tc-empty svg{width:54px;height:54px;color:var(--flame);margin-bottom:14px}
.tc-empty h2{font-size:clamp(24px,3.4vw,32px);margin-bottom:10px}
.tc-empty p{color:var(--ink-muted);font-size:14px;margin-bottom:20px}
.tc-empty .btn{cursor:pointer}
.tc-msg{margin-top:12px;font-size:13px;color:var(--chrome);min-height:20px}

.tc-panel{background:var(--bg-1);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.tc-panel.locked .tc-lockable{opacity:.4;pointer-events:none}
.tc-sec{padding:16px 0;border-bottom:1px solid var(--line)}
.tc-sec:first-child{padding-top:0}
.tc-sec:last-child{border-bottom:0;padding-bottom:0}
.tc-label{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--flame);font-weight:700;margin-bottom:12px}
.tc-label small{font-family:var(--body);letter-spacing:0;text-transform:none;font-weight:500;color:var(--ink-muted);font-size:12px}
.tc-seg{display:flex;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tc-seg button{flex:1;background:var(--bg-0);color:var(--ink-muted);border:0;border-right:1px solid var(--line);padding:11px 6px;font:600 13px var(--body);cursor:pointer;transition:background .18s,color .18s}
.tc-seg button:last-child{border-right:0}
.tc-seg button.on{background:var(--flame);color:#fff}
.tc-seg button:not(.on):hover{background:var(--bg-2);color:var(--ink)}

.tc-row{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:12px;color:var(--ink-muted)}
.tc-row span{min-width:78px}
.tc-row input[type=range]{flex:1;accent-color:#ff4218}
.tc-mini{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.tc-mini button{flex:1 1 90px;background:var(--bg-0);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:10px 8px;font:600 13px var(--body);cursor:pointer;transition:background .18s}
.tc-mini button:hover{background:var(--bg-2)}
.tc-check{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:12px;color:var(--ink-muted);cursor:pointer}
.tc-check input{accent-color:#ff4218}

.tc-swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
@media(max-width:520px){.tc-swatches{grid-template-columns:repeat(6,1fr)}}
.tc-sw{aspect-ratio:1;border-radius:50%;border:2px solid var(--line);background:var(--c);cursor:pointer;padding:0;transition:transform .15s,border-color .15s;box-shadow:inset 0 -6px 10px rgba(0,0,0,.28),inset 0 4px 8px rgba(255,255,255,.18)}
.tc-sw:hover{transform:scale(1.1)}
.tc-sw.on{border-color:#fff;box-shadow:0 0 0 2px var(--flame),inset 0 -6px 10px rgba(0,0,0,.28)}

.tc-picked{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:13px}
.tc-picked b{display:block;font-size:15px}
.tc-picked code{font-family:var(--mono);font-size:12px;color:var(--ink-muted)}
.tc-custom{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink-muted);cursor:pointer}
.tc-custom input{width:38px;height:30px;padding:0;border:1px solid var(--line);background:none;border-radius:4px;cursor:pointer}

.tc-actions{display:flex;flex-direction:column;gap:10px}
.tc-actions .btn{justify-content:center;width:100%;cursor:pointer}
.tc-note{margin-top:16px;font-size:12px;color:var(--ink-muted)}

.tc-tips{padding:10px 0 80px}
.tc-tips-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
@media(max-width:900px){.tc-tips-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.tc-tips-grid{grid-template-columns:1fr}}
.tc-tips-grid div{background:var(--bg-1);padding:22px 20px;font-size:14px;color:var(--ink-muted)}
.tc-tips-grid b{display:block;color:var(--ink);font-size:15px;margin-bottom:6px}

.tc-compare{position:absolute;right:10px;bottom:10px;z-index:3;background:rgba(10,10,12,.8);color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:10px 15px;font:700 11px var(--body);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.tc-compare:active{background:var(--flame);border-color:var(--flame)}
.tc-stage:not(.loaded) .tc-compare{display:none}

.tc-quick{display:none}
.tc-left{position:sticky;top:calc(var(--hdr,76px) + 16px);align-self:start}

@media(max-width:940px){
  .tc-grid{display:block}
  .tc-left{display:contents;position:static}
  .tc-view{margin-bottom:16px}
  .tc-view.loaded{position:sticky;top:var(--hdr,64px);z-index:40;background:var(--bg-0);margin:0 calc(50% - 50vw) 14px;padding:8px calc(50vw - 50%) 2px;border-bottom:1px solid var(--line);box-shadow:0 12px 20px -14px rgba(0,0,0,.85)}
  .tc-view.loaded .tc-stage{border-radius:6px}
  .tc-stage canvas{max-height:36vh;max-height:36svh}
  .tc-view.loaded .tc-quick{display:flex;gap:10px;overflow-x:auto;padding:10px 2px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .tc-quick::-webkit-scrollbar{display:none}
  .tc-quick .tc-sw{flex:0 0 38px;width:38px;height:38px;aspect-ratio:auto}
  .tc-msg{font-size:12px;line-height:1.35;min-height:32px;margin:2px 0 4px}
  #tryTool{padding-top:20px}
  .wa-float{display:none}
}

@media(max-width:700px){
  .tc-hero{padding:26px 0 24px}
  .tc-hero h1{margin:10px 0 12px}
  .tc-hero .lede{font-size:14px}
  .tc-steps{display:none}
  .tc-panel{padding:18px}
  .tc-tips{padding-bottom:50px}
}

.tc-panels{display:flex;flex-wrap:wrap;gap:8px}
.tc-none{font-size:13px;color:var(--ink-muted)}
.tc-chip{display:inline-flex;align-items:stretch;border:1px solid var(--line);border-radius:999px;background:var(--bg-0);overflow:hidden}
.tc-chip.on{border-color:var(--flame);box-shadow:0 0 0 1px var(--flame)}
.tc-chip-sel{display:inline-flex;align-items:center;gap:8px;background:none;border:0;color:var(--ink);font:600 13px var(--body);padding:8px 8px 8px 12px;cursor:pointer}
.tc-chip-sel i{width:16px;height:16px;border-radius:50%;background:var(--c);border:1px solid rgba(255,255,255,.35)}
.tc-chip-x{background:none;border:0;border-left:1px solid var(--line);color:var(--ink-muted);font-size:18px;line-height:1;padding:0 11px;cursor:pointer}
.tc-chip-x:hover{background:var(--flame);color:#fff}
.tc-hint{margin-top:12px;font-size:12px;color:var(--ink-muted)}

.tc-row output{min-width:26px;text-align:right;font-family:var(--mono);font-weight:700;font-size:12px;color:var(--ink)}
.tc-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;margin-left:6px;border-radius:999px;background:var(--flame);color:#fff;font:700 12px var(--mono);letter-spacing:0}
.tc-newpanel{margin-top:12px;width:100%;background:var(--bg-0);color:var(--ink);border:1px dashed var(--flame);border-radius:var(--radius);padding:11px 8px;font:700 13px var(--body);cursor:pointer;transition:background .18s}
.tc-newpanel:hover{background:var(--bg-2)}
.tc-newbtn{flex:0 0 auto;height:38px;padding:0 14px;border-radius:999px;background:var(--bg-0);color:#fff;border:1px dashed var(--flame);font:700 12px var(--body);white-space:nowrap;cursor:pointer}
.tc-newbtn:active{background:var(--flame)}

.tc-hexrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.tc-hexlabel{font-size:12px;color:var(--ink-muted)}
.tc-hexbox{display:flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-0);overflow:hidden;width:150px}
.tc-hexbox:focus-within{border-color:var(--flame);box-shadow:0 0 0 2px rgba(255,66,24,.3)}
.tc-hexbox span{padding:0 4px 0 12px;font:700 15px var(--mono);color:var(--flame)}
.tc-hexbox input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--ink);font:700 15px var(--mono);letter-spacing:.08em;text-transform:uppercase;padding:11px 10px 11px 0}
.tc-hexbox input::placeholder{color:#555962;letter-spacing:.08em}
.tc-hexname{margin-top:8px;font-size:12px;color:var(--ink-muted);min-height:18px}

.tc-row[hidden]{display:none}
.tc-eyebrow{align-items:flex-start;font-family:var(--body);font-weight:400;font-size:14px;line-height:1.55;letter-spacing:.01em;text-transform:none;color:var(--ink-muted);max-width:720px}
.tc-eyebrow::before{flex:0 0 22px;margin-top:11px}
.tc-eyebrow b{font-weight:800;color:var(--flame)}
.tc-legal{margin-top:26px;font-size:12px;line-height:1.6;color:var(--ink-muted);text-align:center;max-width:760px;margin-left:auto;margin-right:auto}
.tc-tolnote{margin-top:10px;font-size:12px;line-height:1.5;color:var(--ink-muted)}
.tc-tolnote b{color:var(--ink)}