/* Gabinete+ · instalador */
@font-face { font-family: Inter; src: url(fonts/inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-700.woff) format("woff"); font-weight: 700; font-display: swap; }
:root { --p: #0057ff; --p-d: #0046cc; --p-l: #eaf1ff; --ink: #0f172a; --ink2: #475569; --ink3: #64748b; --line: #e2e8f0; --bg: #f4f6fb; --ok: #16a34a; --ok-l: #e9f8ef; --bad: #dc2626; --bad-l: #fdecec; --warn: #b45309; --warn-l: #fff6e5; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
.inst-top { display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: linear-gradient(120deg, #003bb3, var(--p) 60%, #2b7bff); color: #fff; }
.inst-top img { height: 34px; }
.inst-top span { opacity: .85; font-weight: 600; border-left: 1px solid rgb(255 255 255 / .35); padding-left: 16px; }
.inst-main { max-width: 1120px; margin: 32px auto; padding: 0 20px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.inst-main:has(> .inst-card:only-child) { grid-template-columns: minmax(0, 620px); justify-content: center; }
.inst-steps { position: sticky; top: 24px; min-width: 0; }
.inst-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.inst-steps a, .inst-steps .off { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 600; }
.inst-steps a:hover { background: #fff; }
.inst-steps .off { opacity: .5; }
.inst-steps b { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); font-size: 13px; }
.inst-steps li.done b { background: var(--ok); border-color: var(--ok); color: #fff; }
.inst-steps li.err b { background: var(--bad); border-color: var(--bad); color: #fff; }
.inst-steps li.cur a { background: #fff; color: var(--p); box-shadow: 0 1px 3px rgb(15 23 42 / .08); }
.inst-steps li.cur b { border-color: var(--p); color: var(--p); }
.inst-steps li.cur.done b { color: #fff; }
.inst-steps p { margin: 16px 4px 0; font-size: 13px; color: var(--ink3); }
.inst-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px; box-shadow: 0 10px 30px -18px rgb(15 23 42 / .25); animation: in .35s ease-out both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.inst-kicker { color: var(--p); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.inst-card h1 { margin: 4px 0 12px; font-size: 26px; letter-spacing: -.01em; }
.inst-card p { color: var(--ink2); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
pre { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 10px; overflow-x: auto; white-space: pre; }
.inst-box { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.inst-box > b { display: block; margin-bottom: 6px; }
.inst-box ol, .inst-box ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink2); }
.inst-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 0; }
.inst-box dt { font-weight: 600; color: var(--ink2); }
.inst-box dd { margin: 0; }
.inst-box small { color: var(--ink3); }
.inst-form { display: grid; gap: 16px; margin-top: 20px; }
.inst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inst-field { display: grid; gap: 6px; }
.inst-field > span { font-weight: 600; font-size: 14px; }
.inst-field small { color: var(--ink3); font-size: 13px; }
input[type=text], input[type=url], input[type=email], input[type=tel], input[type=password], input[type=number], select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgb(0 87 255 / .14); }
.inst-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px !important; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.inst-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
button.primary { background: var(--p); border-color: var(--p); color: #fff; box-shadow: 0 6px 16px -8px rgb(0 87 255 / .7); }
button.primary:hover { background: var(--p-d); transform: translateY(-1px); }
button.ghost:hover { background: #f1f5f9; }
button[disabled] { opacity: .7; cursor: progress; }
.inst-alert { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-weight: 500; }
.inst-alert.ok { background: var(--ok-l); color: #166534; }
.inst-alert.err { background: var(--bad-l); color: #991b1b; }
.inst-checks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.inst-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.inst-checks.small li { padding: 6px 12px; }
.inst-checks i { flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); }
.inst-checks li.ok i { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 4px #fff; }
.inst-checks li.bad { border-color: #fecaca; background: var(--bad-l); }
.inst-checks li.bad i { background: var(--bad); border-color: var(--bad); }
.inst-checks li.warn { border-color: #fde68a; background: var(--warn-l); }
.inst-checks li.warn i { background: #f59e0b; border-color: #f59e0b; }
.inst-checks small { display: block; color: var(--ink2); }
.inst-progress { position: relative; height: 12px; border-radius: 99px; background: #e2e8f0; margin: 16px 0 4px; }
.inst-progress i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--p), #2b7bff); transition: width .4s; }
.inst-progress span { position: absolute; right: 0; top: 16px; font-size: 13px; color: var(--ink3); }
.inst-depts { display: grid; gap: 8px; }
.inst-dept { display: grid; grid-template-columns: 86px 1fr 56px 110px; gap: 10px; align-items: center; }
.inst-dept.head span { font-size: 13px; font-weight: 600; color: var(--ink3); }
.inst-dept input[type=color] { width: 56px; height: 46px; padding: 4px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.inst-keep, .inst-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.inst-keep input, .inst-check input { width: 18px; height: 18px; accent-color: var(--p); }
.inst-sla { display: flex; align-items: center; gap: 6px; }
.inst-sum { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0; padding: 16px 18px; border-radius: 12px; background: var(--p-l); }
.inst-sum dt { font-weight: 600; color: var(--ink2); }
.inst-sum dd { margin: 0; font-weight: 600; word-break: break-word; }
.inst-foot { text-align: center; color: var(--ink3); font-size: 13px; padding: 10px 0 30px; }
@media (max-width: 860px) {
  .inst-main { grid-template-columns: minmax(0, 1fr); margin: 16px auto; }
  .inst-steps { position: static; }
  .inst-steps ol { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .inst-steps span { display: none; }
  .inst-steps li.cur span { display: inline; }
  .inst-steps p { display: none; }
  .inst-card { padding: 22px 18px; border-radius: 14px; }
  .inst-grid { grid-template-columns: 1fr; }
  .inst-dept { grid-template-columns: 70px 1fr 50px; }
  .inst-dept .inst-sla { grid-column: 2 / -1; }
  .inst-dept.head span:last-child { display: none; }
  .inst-actions { flex-direction: column-reverse; }
  .inst-actions button { width: 100%; }
  .inst-top { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
