/* Free tools: tambahan di atas site.css */
.tool-hero { padding-bottom: 28px; }
.tool-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18em; }
.tool-section { padding: 8px 0 24px; }
.tool-after { padding: 24px 0 72px; }
.tool-after > div { margin-bottom: 48px; }
.tool, .tool-row > *, .tool .field { min-width: 0; }
.tool h2 { font-size: 1.15rem; margin: 0 0 .6em; }
.tool .field { margin-bottom: 0; }
.tool .field + .field { margin-top: 0; }
.tool label { font-weight: 600; }
.tool label.opt { font-weight: 400; }
.tool textarea { width: 100%; tab-size: 4; white-space: pre; overflow: auto; }
.tool .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.tool .btn-sm { padding: .65em 1.05em; }
.tool-actions { margin: 14px 0; }
.opts { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.opts legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.ctl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 16px; margin: 14px 0; }
.ctl-grid .field label { margin-bottom: 4px; font-size: .92rem; }
.ctl-grid[hidden], [hidden] { display: none !important; }
.tool input[type=text], .tool input[type=number], .tool input[type=time], .tool select { padding: 10px 12px; }
.tool input[type=time] { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.tool .hint { font-size: .85rem; color: var(--ink-2); margin: 4px 0 0; }
.tool-sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.status { margin: 12px 0 0; font-size: .95rem; min-height: 1.4em; }
.status.err, .field-err { color: #b3261e; font-weight: 600; }
.field-err { font-size: .86rem; margin: 4px 0 0; font-weight: 500; }
@media (prefers-color-scheme: dark) { .status.err, .field-err { color: #ff8a80; } }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.stats li { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: .88rem; }
.stats li strong { font-family: var(--mono); }
.preview-title { margin: 18px 0 8px; font-size: 1rem; }
.table-wrap { max-width: 100%; max-height: 420px; overflow: auto; }
.table-wrap th { position: sticky; top: 0; }
.table-wrap td.num { text-align: right; }
.howto { padding-left: 1.2em; }
.howto li { margin-bottom: .5em; }
.prose h2:first-child { margin-top: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.explain { margin: 8px 0 0; padding: 0; list-style: none; }
.explain li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.explain code { background: var(--accent-soft); padding: .1em .4em; border-radius: 4px; }
.formula-out { font: 600 1rem/1.5 var(--mono); background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.note { background: color-mix(in srgb, #ffd76a 22%, var(--surface)); border-left: 3px solid #c98a00; border-radius: 6px; padding: 8px 12px; font-size: .9rem; margin: 8px 0 0; }
.alt-formulas { display: grid; gap: 10px; }
.alt-formulas .output { margin: 4px 0 0; }

/* Meta checker */
.score { display: flex; align-items: center; gap: 18px; margin: 8px 0 18px; }
.score-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 700 1.5rem var(--mono); background: conic-gradient(var(--ring, var(--accent)) calc(var(--pct, 0) * 1%), var(--surface-2) 0); position: relative; flex: none; }
.score-ring::before { content: ""; position: absolute; inset: 8px; background: var(--surface); border-radius: 50%; }
.score-ring span { position: relative; }
.checks-list { list-style: none; padding: 0; margin: 0; }
.checks-list li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; }
.checks-list li > div { min-width: 0; overflow-wrap: anywhere; }
.badge { font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; text-align: center; }
.badge-pass { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: #fff0c2; color: #7a5600; }
.badge-fail { background: #fddad6; color: #8c1d18; }
@media (prefers-color-scheme: dark) { .badge-warn { background: #4a3a0a; color: #ffd76a; } .badge-fail { background: #4a1a17; color: #ff9d95; } }
.checks-list small { display: block; color: var(--ink-2); }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .preview-grid { grid-template-columns: 1fr; } }
.serp { background: #fff; color: #202124; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-family: Arial, sans-serif; overflow: hidden; }
.serp .s-url { font-size: .8rem; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp .s-title { font-size: 1.2rem; line-height: 1.3; color: #1a0dab; margin: 2px 0 3px; overflow-wrap: anywhere; }
.serp .s-desc { font-size: .88rem; line-height: 1.5; color: #4d5156; overflow-wrap: anywhere; }
.social { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.social .s-img { aspect-ratio: 1.91 / 1; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); font-size: .85rem; text-align: center; padding: 8px; overflow: hidden; overflow-wrap: anywhere; }
.social .s-img img { width: 100%; height: 100%; object-fit: cover; }
.social .s-body { padding: 10px 14px; }
.social .s-host { font-size: .75rem; text-transform: uppercase; color: var(--ink-2); letter-spacing: .04em; }
.social .s-t { font-weight: 600; overflow-wrap: anywhere; }
.social .s-d { font-size: .88rem; color: var(--ink-2); overflow-wrap: anywhere; }

/* Cron */
.runs { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: r; }
.runs li { counter-increment: r; padding: 7px 0; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: .9rem; }
.runs li::before { content: counter(r) "."; display: inline-block; width: 1.8em; color: var(--accent); }
.fields-table { width: 100%; border-collapse: collapse; font-size: .88rem; display: block; overflow-x: auto; }
.fields-table th, .fields-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cron-input { font: 600 1.15rem var(--mono) !important; letter-spacing: .04em; }
.explain-big { font-size: 1.15rem; font-weight: 600; margin: 12px 0 4px; }
.tool .preview-title { margin: 24px 0 8px; font-size: 1rem; }
#notes .note:first-child { margin-top: 14px; }
.runs li:last-child { border-bottom: 1px dashed var(--line); }
