/* colors.crazyartzone.com — Harmony Checker, Palette from Image, home tool cards */
.tools { max-width: 1240px; }
.tool-hero { margin: 4px 0 18px; }
.tool-hero h1 { margin-bottom: 6px; }
.tool-hero p { color: var(--muted); max-width: 760px; line-height: 1.6; margin: 0; font-size: 15px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.tool-side { position: sticky; top: 76px; }
.tool-box, .tool-ad { background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(30,34,51,0.05); margin-bottom: 14px; }
.tool-box h3 { margin: 0 0 6px; font-size: 15px; }
.tool-box p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.hc-btn { display: inline-block; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; cursor: pointer; transition: transform .12s, box-shadow .12s; text-decoration: none; }
.hc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,34,51,0.08); }
.hc-btn.pri { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* swatch editor */
.hc-top { background: var(--card); border-radius: 22px; padding: 18px; box-shadow: 0 6px 20px rgba(30,34,51,0.07); margin-bottom: 20px; }
.hc-swatches { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.hc-sw { position: relative; flex: 1 1 150px; max-width: 220px; }
.hc-chip { display: flex; align-items: flex-end; height: 120px; border-radius: 16px; padding: 10px 12px; cursor: pointer; font-family: ui-monospace, Consolas, monospace; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.hc-chip input[type=color] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc-hex { width: 100%; box-sizing: border-box; margin-top: 8px; font: 600 13px ui-monospace, Consolas, monospace; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; text-transform: uppercase; }
.hc-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.35); color: #fff; cursor: pointer; line-height: 22px; }
.hc-add { flex: 0 0 120px; height: 120px; border-radius: 16px; border: 2px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.hc-add:hover { border-color: var(--accent); color: var(--accent); }
.hc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.hc-share { flex: 1 1 220px; font: 12.5px ui-monospace, Consolas, monospace; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fafbfe; }

/* result */
.hc-result h3 { margin: 26px 0 10px; font-size: 16px; }
.hc-score { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 20px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(30,34,51,0.05); }
.hc-num { width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; }
.hc-score.ok .hc-num { background: linear-gradient(135deg, #2ec27e, #1f9d6a); }
.hc-score.mid .hc-num { background: linear-gradient(135deg, #f6b73c, #ec8d1c); }
.hc-score.bad .hc-num { background: linear-gradient(135deg, #ff6b81, #e0385b); }
.hc-grade { font-size: 18px; font-weight: 700; }
.hc-scheme { color: var(--muted); font-size: 14px; margin-top: 2px; }
.hc-notes { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.hc-fix { margin-top: 12px; background: #fff8e6; border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.hc-fix .dot, .hc-matches i, .hc-matches .row i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin: 0 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }

.hc-mocks { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.mock { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(30,34,51,0.08); }
.mock.web .bar { padding: 10px 14px; font-weight: 700; font-size: 13px; }
.mock.web .hero { padding: 22px 18px 26px; }
.mock.web .hero b { font-size: 20px; display: block; }
.mock.web .hero p { margin: 6px 0 14px; opacity: .8; }
.mock.web .cta { display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.mock.card { border: 3px double; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px; text-align: center; font-family: Georgia, serif; }
.mock.card b { font-size: 22px; font-style: italic; }
.mock.card span { width: 60px; height: 3px; border-radius: 2px; }
.mock.strip { grid-column: 1 / -1; display: flex; height: 54px; }
.mock.strip i { flex: 1; }

.hc-contrast { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-contrast .pair { width: 108px; height: 70px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.hc-contrast .pair small { font-size: 11px; font-weight: 600; margin-top: 2px; }

.hc-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hc-matches .m { display: flex; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px; box-shadow: 0 2px 8px rgba(30,34,51,0.05); }
.hc-matches .m > i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; margin: 0; }
.hc-matches .mi { font-size: 13px; line-height: 1.5; }
.hc-matches .row { font-size: 12px; color: var(--muted); }
.hc-matches .row a { color: var(--ink); margin-right: 4px; }

.hc-alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.hc-alts .alt { font: inherit; font-size: 13px; font-weight: 600; text-align: left; border: 0; background: var(--card); border-radius: 14px; padding: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(30,34,51,0.06); color: var(--ink); }
.hc-alts .alt:hover { box-shadow: 0 6px 16px rgba(30,34,51,0.12); }
.hc-alts .strip, .tool-card .strip { display: flex; height: 36px; border-radius: 9px; overflow: hidden; margin-bottom: 6px; }
.hc-alts .strip i, .tool-card .strip i { flex: 1; }

/* palette from image */
.pi-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 200px; border: 2px dashed #cfd3e3; border-radius: 22px; background: var(--card); cursor: pointer; text-align: center; padding: 20px; transition: border-color .15s, background .15s; }
.pi-drop.over, .pi-drop:hover { border-color: var(--accent); background: #faf9ff; }
.pi-drop small { color: var(--muted); }
.pi-icon { font-size: 40px; }
.pi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.pi-img { width: 100%; border-radius: 18px; object-fit: cover; max-height: 380px; }
.pi-pal { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(30,34,51,0.08); }
.pi-c { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; min-height: 56px; cursor: copy; font-family: ui-monospace, Consolas, monospace; }
.pi-actions { margin-top: 16px; }

/* home tool cards */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 6px 0 26px; }
.tool-card { display: block; background: var(--card); border-radius: 22px; padding: 16px 18px 18px; box-shadow: 0 6px 20px rgba(30,34,51,0.07); color: var(--ink) !important; transition: transform .15s, box-shadow .15s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,34,51,0.12); }
.tool-card b { font-size: 17px; display: block; margin-bottom: 4px; }
.tool-card span.d { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 900px) {
	.tool-grid { grid-template-columns: 1fr; }
	.tool-side { position: static; }
	.hc-mocks, .pi-wrap { grid-template-columns: 1fr; }
}

/* ---------- AI palette maker ---------- */
.ai-form { display: flex; gap: 10px; background: var(--card); border-radius: 999px; padding: 8px; box-shadow: 0 8px 24px rgba(30,34,51,0.08); }
.ai-q { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 0; outline: none; padding: 10px 16px; background: transparent; }
.ai-form .hc-btn { white-space: nowrap; padding: 10px 22px; }
.ai-examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 20px; color: var(--muted); font-size: 13px; }
.ai-examples button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.ai-examples button:hover { border-color: var(--accent); color: var(--accent); }
.ai-status { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; color: var(--muted); }
.ai-status[hidden] { display: none; }   /* display:flex above would otherwise override the hidden attribute */
.ai-status .spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #e3e1f5; border-top-color: var(--accent); animation: aispin .8s linear infinite; }
@keyframes aispin { to { transform: rotate(360deg); } }
.ai-status .ai-cancel { margin-left: auto; padding: 5px 12px; font-size: 12px; }
.ai-card { background: var(--card); border-radius: 22px; padding: 20px; box-shadow: 0 6px 22px rgba(30,34,51,0.07); }
.ai-card.quick { opacity: .9; }
.ai-note { display: inline-block; background: #f0eeff; color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.ai-head h2 { margin: 0 0 6px; font-size: 22px; }
.ai-head p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.ai-swatches { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 18px; overflow: hidden; }
.ai-sw { min-height: 150px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; cursor: copy; transition: transform .15s; }
.ai-sw:hover { transform: translateY(-4px); }
.ai-sw small { text-transform: uppercase; letter-spacing: .6px; font-size: 10.5px; opacity: .75; }
.ai-sw b { font-size: 14px; line-height: 1.25; }
.ai-sw code { font-size: 12.5px; opacity: .85; }
.ai-sw.copied::after { content: "Copied!"; font-size: 12px; font-weight: 700; }
.ai-usage { list-style: none; padding: 0; margin: 16px 0 0; }
.ai-usage li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ai-usage i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.ai-tips { margin-top: 14px; background: #fafbfe; border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.ai-tips ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 10px; }
.ai-grid .tool-card b { font-size: 14px; }
.ai-crumb { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.ai-prompt { color: var(--muted); font-size: 13px; margin-top: 10px; }
@media (max-width: 700px) {
	.ai-swatches { grid-template-columns: 1fr 1fr; }
	.ai-sw { min-height: 110px; }
	.ai-form { border-radius: 18px; flex-direction: column; }
}
/* ---------- /themes browse + share ---------- */
.th-search { margin-bottom: 14px; }
.th-families { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.th-families a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--card); color: var(--ink) !important; font-size: 13px; font-weight: 600; box-shadow: 0 1px 4px rgba(30,34,51,0.07); }
.th-families a i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.th-families a.on { background: var(--ink); color: #fff !important; }
.th-count { color: var(--muted); font-size: 13px; margin: 10px 0 4px; }
.th-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.th-pages a { min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 10px; background: var(--card); color: var(--ink) !important; font-weight: 600; }
.th-pages a.on { background: var(--ink); color: #fff !important; }
.th-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 13px; }