/* Contextual market tools 2026-10-23.
 * Reason/fix: keep symbol and market management actions visible, touch-safe and
 * responsive while inheriting the established asset/archive light-dark tokens.
 * Dependencies: inc/market-tools.php markup on asset and market pages only.
 * Regression history: avoid horizontal action rails; earlier narrow layouts
 * hid important controls or required sideways scrolling.
 * Mobile order fix 2026-10-23: the asset variant is one grid item ordered
 * immediately after the simulator on narrow screens, while desktop keeps the
 * original full-width position above the two-column asset layout.
 */
.zc-market-tools{margin:0 0 24px;overflow:hidden;border:1px solid var(--zch-line);border-radius:18px;background:var(--zch-surface);box-shadow:var(--zch-shadow)}
.zc-market-tools--asset{order:4;margin:0}
.zc-market-tools__head{display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border-bottom:1px solid var(--zch-line);background:linear-gradient(110deg,var(--zch-gold-soft),transparent 55%)}
.zc-market-tools__head>div{min-width:0}.zc-market-tools__head span{display:block;margin-bottom:3px;color:var(--zch-gold);font-size:10px;font-weight:800}.zc-market-tools__head h2{margin:0;color:var(--zch-ink);font-size:16px;font-weight:900;line-height:1.65}.zc-market-tools__head>small{max-width:34ch;color:var(--zch-muted);font-size:10px;line-height:1.8;text-align:end}
.zc-market-tools__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
.zc-market-tool{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;min-width:0;min-height:82px;align-items:center;gap:10px;padding:14px;border-inline-end:1px solid var(--zch-line);color:var(--zch-ink);text-decoration:none;transition:background-color .16s ease,border-color .16s ease,transform .16s ease}
.zc-market-tool:last-child{border-inline-end:0}.zc-market-tool:hover{z-index:1;background:var(--zch-soft);transform:translateY(-1px)}.zc-market-tool:focus-visible{z-index:2;outline:3px solid color-mix(in srgb,var(--zch-gold-bright) 58%,transparent);outline-offset:-3px}
.zc-market-tool__icon{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border:1px solid var(--zch-line);border-radius:11px;background:var(--zch-gold-soft);color:var(--zch-gold)}.zc-market-tool__icon svg{width:20px;height:20px}
.zc-market-tool__copy{min-width:0}.zc-market-tool__copy strong,.zc-market-tool__copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.zc-market-tool__copy strong{font-size:12px;font-weight:900}.zc-market-tool__copy small{margin-top:5px;color:var(--zch-muted);font-size:9px}
.zc-market-tool__arrow{display:flex;color:var(--zch-muted)}.zc-market-tool__arrow svg{width:17px;height:17px}
.zcm-manage{display:inline-flex;min-height:36px;align-items:center;padding:0 10px;border:1px solid var(--zch-line);border-radius:8px;color:var(--zch-gold);font-size:10px;font-weight:850;text-decoration:none;white-space:nowrap}.zcm-manage:hover{border-color:var(--zch-gold-bright);background:var(--zch-gold-soft)}
.zcm-card-actions{display:flex;align-items:center;gap:6px}
@media(max-width:980px){.zc-market-tools__grid,.zc-market-tools--directory .zc-market-tools__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.zc-market-tool{border-bottom:1px solid var(--zch-line)}.zc-market-tool:nth-child(2n){border-inline-end:0}.zc-market-tool:last-child,.zc-market-tool:nth-last-child(2):nth-child(odd){border-bottom:0}}
@media(max-width:560px){.zc-market-tools{margin-bottom:18px;border-radius:14px}.zc-market-tools__head{display:block;min-height:0;padding:13px 14px}.zc-market-tools__head h2{font-size:14px}.zc-market-tools__head>small{display:block;margin-top:5px;text-align:start}.zc-market-tool{grid-template-columns:36px minmax(0,1fr);min-height:72px;padding:11px 10px;gap:9px}.zc-market-tool__icon{width:36px;height:36px;border-radius:10px}.zc-market-tool__copy strong{font-size:11px}.zc-market-tool__copy small{font-size:8px}.zc-market-tool__arrow{display:none}}
@media(max-width:370px){.zc-market-tools__grid,.zc-market-tools--directory .zc-market-tools__grid{grid-template-columns:minmax(0,1fr)}.zc-market-tool{border-inline-end:0;border-bottom:1px solid var(--zch-line)!important}.zc-market-tool:last-child{border-bottom:0!important}}
@media(min-width:1280px){.zc-market-tools--asset{grid-column:1/-1;order:0}}
@media(prefers-reduced-motion:reduce){.zc-market-tool{transition:none}}
