/* Base visual compartilhada — cores da marca Solmob (Sol laranja, mob azul). */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --sol: #f26a1b;
  --sol-soft: #fde8da;
  --mob: #1f5fe0;
  --mob-soft: #dfe8fc;
  --ink: #17181b;
  --ink-2: #4a4e57;
  --ink-3: #868b96;
  --line: #e6e7eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --night: #1d1e21;
  --ok: #12a150;  --ok-soft: #dcf4e6;
  --info: #1f5fe0; --info-soft: #dfe8fc;
  --warn: #c77700; --warn-soft: #fdf0d6;
  --bad: #d92d20; --bad-soft: #fde3e1;
  --off: #868b96; --off-soft: #eceef1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .06), 0 4px 16px rgba(16, 18, 22, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f3; --ink-2: #b9bec8; --ink-3: #8a909b; --line: #2c2f35; --bg: #111214; --card: #1a1c1f;
    --sol-soft: #3a2316; --mob-soft: #172848; --ok-soft: #12301f; --info-soft: #172848; --warn-soft: #362712;
    --bad-soft: #3a1714; --off-soft: #24272b; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display { font-family: Sora, Inter, sans-serif; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--mob); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.logo { font-family: Sora, sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.logo .s { color: var(--sol); } .logo .m { color: var(--mob); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }

button, .btn {
  font: 600 14px/1 Inter, sans-serif; border: 1px solid transparent; border-radius: 10px; padding: 11px 16px;
  cursor: pointer; background: var(--mob); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: transform .06s, filter .15s;
}
button:hover, .btn:hover { filter: brightness(1.07); }
button:active, .btn:active { transform: scale(.98); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--mob); outline-offset: 2px; }
.btn-sol { background: var(--sol); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--bad); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; font: 15px Inter, sans-serif; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
.field { margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
.check input { width: auto; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-ok { color: var(--ok); background: var(--ok-soft); }
.tone-info { color: var(--info); background: var(--info-soft); }
.tone-warn { color: var(--warn); background: var(--warn-soft); }
.tone-bad { color: var(--bad); background: var(--bad-soft); }
.tone-off { color: var(--off); background: var(--off-soft); }

#toasts { position: fixed; z-index: 9999; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--night); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-weight: 500; transition: opacity .4s, transform .4s; border-left: 4px solid var(--mob); }
.toast-error { border-left-color: var(--bad); } .toast-warning { border-left-color: var(--warn); } .toast-success { border-left-color: var(--ok); }
.toast.out { opacity: 0; transform: translateY(8px); }

.modal-back { position: fixed; inset: 0; background: rgba(10, 11, 13, .5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 18px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.x { background: transparent; color: var(--ink-3); padding: 6px; font-size: 22px; line-height: 1; }
@keyframes fade { from { opacity: 0; } }

.empty { text-align: center; color: var(--ink-3); padding: 36px 16px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--mob); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
