:root {   /* Automaiter: the same violet as Ultrai (studio/app/src/constants/theme.ts) */
  --bg: #f6f7f9; --card: #ffffff; --text: #16181d; --muted: #5b6270; --line: #dfe3ea; --accent: #5b4cf5; --accent-text: #ffffff; --bad: #b42318; --good: #067647; --code: #eef1f6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111318; --card: #1a1d24; --text: #eceef3; --muted: #9aa3b2; --line: #2c313c; --accent: #8a7dff; --accent-text: #0d1020; --bad: #ff8a80; --good: #6fd39a; --code: #232733; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 440px; margin: 0 auto; padding: 32px 16px 64px; }
main.wide { max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
h1 { font-size: 1.5rem; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: .92rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 12px 0 4px; }
select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; max-width: 100%; }
form select { width: 100%; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
img.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
input[type=color] { padding: 2px; height: 40px; }
input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { display: block; width: 100%; margin-top: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { background: var(--bad); border-color: var(--bad); color: var(--card); }
a.button { display: block; margin-top: 12px; padding: 11px 14px; border-radius: 10px; text-align: center; text-decoration: none; font-weight: 600; background: var(--accent); color: var(--accent-text); }
button.small { display: inline-block; width: auto; margin: 0 0 0 8px; padding: 6px 10px; font-size: .88rem; }
button:disabled { opacity: .6; cursor: wait; }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: .92rem; }
a { color: var(--accent); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
/* «Entrar con Microsoft»: Microsoft's sign-in button (its branding guidelines: the four-square logo, Segoe UI semibold 15px, light #fff
   with a #8c8c8c border and #5e5e5e text, dark #2f2f2f with white text) */
button.ms { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 41px; padding: 0 12px; border-radius: 0; border: 1px solid #8c8c8c; background: #ffffff; color: #5e5e5e; font: 600 15px "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
button.ms svg { flex: none; }
@media (prefers-color-scheme: dark) { button.ms { background: #2f2f2f; border-color: #2f2f2f; color: #ffffff; } }
.provider { display: inline-flex; align-items: center; gap: 8px; }
.provider svg { width: 16px; height: 16px; flex: none; }
.msg { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .95rem; }
.msg.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.msg.good { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.secret, .codes { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; user-select: all; }
.check { display: flex; align-items: center; gap: 6px; font-weight: normal; }
.check input { width: auto; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
ul.list li:first-child { border-top: 0; }
ul.list li.plan-row { flex-direction: column; align-items: stretch; }
li.plan-row h3 { margin: 0 0 4px; }
li.plan-row p { margin: 2px 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
fieldset.checks { border: 1px solid var(--line, #e6e8eb); border-radius: 10px; padding: 8px 12px; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
fieldset.checks legend { font-weight: 600; padding: 0 4px; }
.quote { background: var(--code); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
fieldset.owner-set { display: block; }
fieldset.owner-set label { display: block; margin-top: 10px; }
/* the Automaiter wordmark on top of every page of the platform (not on a client's own store or site) */
.brand { max-width: 640px; margin: 0 auto; padding: 16px 16px 0; }
.brand a { color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand b { color: var(--accent); font-weight: 700; }
