/* Free Genesys Provisioner tool (applications.html). Class-only styling; uses
   the tokens from site.css. No inline styles anywhere in the page or script. */
.tool { max-width: 940px; margin: 0 auto; }
.tool-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; }
.tool-step.locked { opacity: 0.55; pointer-events: none; }
.tool-step h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 6px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); font-size: 13px; font-weight: 700; }
.tool-step.done .step-num { background: rgba(53, 193, 124, 0.14); color: var(--positive); border-color: rgba(53, 193, 124, 0.35); }
.tool-sub { color: var(--text-secondary); font-size: 14px; margin: 0 0 16px; line-height: 1.55; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; margin: 0 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select, .field textarea {
  padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field .hint { font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

.drop { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.drop.over { border-color: var(--accent); background: var(--accent-dim); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); padding: 6px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.link-btn { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.sample-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--muted); align-items: center; }

.counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.count { display: flex; flex-direction: column; min-width: 104px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.count strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.count span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.plan-section { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--surface); }
.plan-section > summary { cursor: pointer; padding: 10px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.plan-section[open] > summary { border-bottom: 1px solid var(--border); }
.plan-section .table-wrap { border: none; border-radius: 0; padding: 4px 8px 8px; }
.status-table td.wrap { white-space: normal; max-width: 460px; }
.st { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-secondary); }
.st.ready, .st.created, .st.exists, .st.linked, .st.granted { color: var(--positive); border-color: rgba(53, 193, 124, 0.35); }
.st.needs_config, .st.skipped, .st.manual, .st.warn { color: var(--warning); border-color: rgba(242, 169, 60, 0.35); }
.st.error, .st.failed { color: var(--critical); border-color: rgba(240, 71, 63, 0.4); }

.notice { border: 1px solid rgba(242, 169, 60, 0.35); background: rgba(242, 169, 60, 0.08); border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; color: var(--text-secondary); margin: 12px 0; line-height: 1.55; }
.notice.error { border-color: rgba(240, 71, 63, 0.4); background: rgba(240, 71, 63, 0.08); }
.notice.ok { border-color: rgba(53, 193, 124, 0.35); background: rgba(53, 193, 124, 0.08); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }

.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-secondary); margin: 8px 0; line-height: 1.5; }
.check-row input { margin-top: 3px; }
.skip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px 16px; margin: 8px 0 14px; }
.btn-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.inline-error { color: var(--critical); font-size: 13px; margin-top: 8px; }

.run-progress { width: 100%; height: 10px; }
.run-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.log-box { max-height: 340px; overflow: auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; line-height: 1.55; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; margin: 0; }

.upsell { border: 1px solid var(--accent-border); background: var(--accent-dim); border-radius: var(--radius-lg); padding: 24px; margin-top: 8px; }
.upsell h2 { margin: 0 0 8px; font-size: 20px; }
.upsell p { color: var(--text-secondary); margin: 0 0 14px; line-height: 1.6; }
.tool-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 26px; }
.tool-facts .card h3 { font-size: 15px; }
.hidden { display: none !important; }
.field-pad { padding: 10px 14px 14px; }
.notice-small { font-size: 12.5px; color: var(--muted); margin-top: 24px; }
