/* VELIN tools pages (product photo presets, cost calculator, API quick start). Loads after guides.css. */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.tl-card { border: 3px solid var(--ink); border-radius: 16px; background: var(--card); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.tl-card h3 { margin: 0; font-size: 17px; }
.tl-meta { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.tl-prompt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 120px; flex: 1; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-btn { font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); padding: 6px 14px; text-decoration: none; }
.tl-btn.ghost { background: #fff; }
.tl-btn:hover { background: var(--yellow-2); }
.tl-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; padding: 18px; margin: 14px 0 10px; }
.tl-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.tl-form input[type=text], .tl-form input[type=number], .tl-form select, .tl-form textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; box-sizing: border-box; }
.tl-form textarea { min-height: 80px; resize: vertical; }
.tl-form .wide { grid-column: 1 / -1; }
.tl-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.tl-out { border: 3px solid var(--ink); border-radius: 16px; background: #f7fadb; padding: 18px; margin: 14px 0 20px; }
.tl-out .big { font-size: 34px; font-weight: 800; line-height: 1.1; }
.tl-out .row { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 10px; }
.tl-out .row > div { min-width: 140px; }
.tl-out small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.tl-tabs { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.tl-tabs button.on { background: var(--ink); color: #fff; }
.tl-code { position: relative; }
.tl-code pre { margin: 10px 0 8px; max-height: 520px; overflow: auto; font-size: 12.5px; line-height: 1.55; }
.tl-note { font-size: 13px; color: var(--muted); max-width: 52em; line-height: 1.6; }
@media (max-width: 640px) { .tl-grid { grid-template-columns: 1fr; } .tl-out .big { font-size: 28px; } }
