.tools-shell { max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; }
.tools-hero { margin: 28px 0 22px; padding: clamp(26px, 5vw, 52px); border-radius: 32px; color: #fff; background: linear-gradient(135deg, #111827, #312e81); overflow: hidden; position: relative; }
.tools-hero::after { content: ""; position: absolute; width: 320px; height: 320px; left: -120px; top: -180px; border-radius: 50%; background: rgba(16, 185, 129, .24); filter: blur(10px); }
.tools-hero > * { position: relative; z-index: 1; }
.tools-hero h1 { margin: 8px 0 14px; font-size: clamp(30px, 5vw, 54px); line-height: 1.16; letter-spacing: -.035em; }
.tools-hero h1 span { color: #6ee7b7; }
.tools-hero > p:last-of-type { max-width: 820px; color: #dbeafe; line-height: 1.9; }
.tools-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tools-trust span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; }
.tools-trust strong { font-size: 17px; }
.tools-boundary { margin: 0 0 22px; padding: 20px; border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--border)); border-radius: 18px; background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.tools-boundary h2 { margin: 0 0 8px; font-size: 21px; }
.tools-boundary p { margin: 0; color: var(--muted); line-height: 1.9; }
.tools-controls { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.tools-controls label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.tools-controls input, .tools-controls select { min-height: 46px; width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface-soft); font: inherit; }
.tools-controls input:focus-visible, .tools-controls select:focus-visible, .tool-copy:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent); outline-offset: 2px; border-color: var(--primary); }
.tools-result-status { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 10px 28px rgba(17,24,39,.06); }
.tool-card[hidden] { display: none; }
.tool-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool-card h2 { margin: 2px 0 0; font-size: 22px; }
.tool-kind { margin: 0; color: var(--primary); font-size: 11px; font-weight: 900; }
.risk-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.risk-low { color: #065f46; background: #d1fae5; }
.risk-medium { color: #92400e; background: #fef3c7; }
.risk-high, .risk-critical { color: #991b1b; background: #fee2e2; }
.tool-description { color: var(--muted); line-height: 1.8; }
.tool-warning { margin: 2px 0 14px; padding: 12px; border-right: 4px solid #dc2626; border-radius: 12px; color: var(--text); background: color-mix(in srgb, #dc2626 8%, var(--surface)); font-size: 12px; line-height: 1.8; }
.tool-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.tool-facts div { min-width: 0; padding: 10px; border-radius: 12px; background: var(--surface-soft); }
.tool-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.tool-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 800; }
.tool-details { margin-top: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.tool-details summary { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 900; }
.tool-details-body { padding: 0 12px 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.tool-details-body h3 { margin: 13px 0 4px; color: var(--text); font-size: 13px; }
.tool-details-body p { margin: 0; }
.install-command { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 10px; background: var(--surface); }
.install-command code { min-width: 0; flex: 1; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.tool-copy { min-height: 40px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface-soft); cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; }
.copy-status { margin-inline-start: 4px; color: var(--accent); }
.tool-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.tool-card-actions .button { min-height: 44px; flex: 1; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.tool-verification { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.tool-empty { padding: 42px; border: 1px dashed var(--border); border-radius: 20px; text-align: center; color: var(--muted); background: var(--surface); }
.tools-next-step { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 24px; border-radius: 22px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border)); }
.tools-next-step h2 { margin: 0; }
.tools-next-step p { margin: 7px 0 0; color: var(--muted); }
@media (max-width: 980px) { .tools-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tools-controls button { width: 100%; } }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } .tools-next-step { align-items: stretch; flex-direction: column; } }
@media (max-width: 560px) { .tools-shell { padding-inline: 14px; } .tools-controls { grid-template-columns: 1fr; } .tool-card-head { flex-direction: column; } .tool-facts { grid-template-columns: 1fr; } .tool-card-actions { flex-direction: column; } .tools-hero { border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
