/* AI Sales Platform – neutral until the product has its brand: change --brand and the logo text. */
:root {
  --bg: #f5f6f8; --surface: #fff; --ink: #15171c; --muted: #5f6470; --line: #e3e5ea;
  --brand: #4f46e5; --brand-soft: #eef0ff; --brand-ink: #3730a3;
  --green: #0f7a52; --green-soft: #e3f3ec; --green-ink: #0b5a3c;
  --amber: #a86400; --amber-soft: #fdf1dc; --red: #b42318; --red-soft: #fde8e6; --blue: #1d5fa8; --blue-soft: #e5effa;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,20,30,.05), 0 2px 8px rgba(16,20,30,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand-ink); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 22px; margin: 22px 0 4px; } h2 { font-size: 17px; margin: 24px 0 10px; } h3 { font-size: 15px; margin: 14px 0 6px; }
.sub, .muted { color: var(--muted); font-size: 13.5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.pad { padding: 16px; }
.flash { margin: 14px 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; overflow-wrap: anywhere; }
.flash.ok { background: var(--green-soft); color: var(--green-ink); } .flash.err { background: var(--red-soft); color: var(--red); } .flash.warn { background: var(--amber-soft); color: var(--amber); }
.flash ul { margin: 0; padding-left: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 15px; font-weight: 600; cursor: pointer; color: var(--ink); min-height: 42px; text-decoration: none !important; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.danger { color: var(--red); } .btn.small { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
label.f { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 5px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea { width: 100%; border: 1px solid #d5d8df; border-radius: 10px; padding: 9px 11px; background: #fff; min-height: 42px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; } .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; } .stat span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef0f3; color: var(--muted); white-space: nowrap; }
.t-green { background: var(--green-soft); color: var(--green-ink); } .t-amber { background: var(--amber-soft); color: var(--amber); } .t-red { background: var(--red-soft); color: var(--red); } .t-blue { background: var(--blue-soft); color: var(--blue); } .t-brand { background: var(--brand-soft); color: var(--brand-ink); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; } .grow { flex: 1; min-width: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; background: #fafbfc; }
table.t tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.steps li:last-child { border-bottom: 0; }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.steps li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.later { opacity: .6; }
.issue { padding: 10px 14px; border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 8px; margin: 6px 0; font-size: 14px; }
.issue.high { border-color: var(--red); background: var(--red-soft); }

/* Layout: sidebar on computers, top bar + menu on phones. */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #101218; color: #c9ccd6; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { display: block; text-decoration: none !important; color: #fff; font-weight: 800; font-size: 17px; padding: 4px 10px 16px; letter-spacing: -.2px; }
.side .logo small { display: block; font-weight: 500; color: #8f94a3; font-size: 12px; margin-top: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9ccd6; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; text-decoration: none; }
.side nav a:hover { background: #1b1e27; color: #fff; } .side nav a.on { background: var(--brand); color: #fff; }
.side .sect { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #6e7383; margin: 16px 10px 6px; }
.side form { margin: 0; } .side .switch select { background: #1b1e27; border-color: #2a2e3a; color: #fff; min-height: 36px; font-size: 13px; }
.main { min-width: 0; } .wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px 60px; }
.banner { background: var(--amber-soft); color: var(--amber); padding: 9px 22px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.topbar, .close-menu { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0; z-index: 50; height: auto; }
  .side.open { display: block; }
  .side .close-menu { display: block; position: absolute; top: 14px; right: 14px; background: #1b1e27; border: 1px solid #2a2e3a; color: #fff; border-radius: 8px; width: 38px; height: 38px; font-size: 16px; cursor: pointer; }
  .topbar { display: flex; align-items: center; justify-content: space-between; background: #101218; color: #fff; padding: 10px 16px; position: sticky; top: 0; z-index: 40; }
  .topbar b { font-weight: 800; } .topbar button { background: var(--brand); border: 0; color: #fff; border-radius: 8px; padding: 6px 12px; }
  .wrap { padding: 0 16px 50px; }
}
/* Sign-in pages */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #101218, #232838); }
.guest .card { width: 100%; max-width: 420px; padding: 26px; }
.guest .logo { font-weight: 800; font-size: 19px; margin-bottom: 4px; }
