* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f2f4f7; color: #1f2937;
}
header {
  background: #14365c; color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; height: 56px;
}
.brand { font-weight: 700; font-size: 17px; }
.brand span { font-weight: 400; opacity: .7; font-size: 13px; margin-left: 8px; }
nav a {
  color: #cdd9e8; text-decoration: none; margin-left: 18px; padding: 6px 4px;
  border-bottom: 2px solid transparent; font-size: 14px;
}
nav a.active, nav a:hover { color: #fff; border-bottom-color: #4da3ff; }
nav a.logout { opacity: .6; }
.nav-user { color: #cdd9e8; font-size: 13px; margin-left: 18px; opacity: .85; }
.admin-list { margin: 6px 0; padding-left: 22px; }
.admin-list li { font-size: 14px; margin: 2px 0; }
.btn-google {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: #fff; color: #1f2937; border: 1px solid #cbd5e1; border-radius: 6px;
  padding: 11px 18px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.btn-google:hover { background: #f8fafc; }
.btn-google .g { color: #4285F4; font-weight: 800; font-size: 18px; }
main { max-width: 1080px; margin: 24px auto; padding: 0 16px 64px; }
h1 { font-size: 22px; } h2 { font-size: 16px; margin: 18px 0 8px; }
.muted { color: #6b7280; } .small { font-size: 12px; }
.hidden { display: none !important; }

.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: #4b5563; }
input, select, textarea {
  border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px 10px; font-size: 14px;
  background: #fff; font-family: inherit;
}
textarea { width: 100%; resize: vertical; }
button { border: 0; border-radius: 6px; padding: 9px 18px; font-size: 14px; cursor: pointer; }
.btn-primary { background: #1d9e4f; color: #fff; }
.btn-primary:hover { background: #16813f; }
.btn-secondary { background: #e2e8f0; color: #1f2937; }
.actions { display: flex; gap: 8px; margin-top: 10px; }

.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; margin: 14px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; }
.card-head { display: flex; align-items: center; gap: 8px; }
.badge { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.badge-cost { background: #e8f5ee; color: #15803d; }
.badge-competitor { background: #eef2ff; color: #4338ca; }

table.tiers { border-collapse: collapse; width: 100%; margin: 8px 0; background: #fff; }
table.tiers th, table.tiers td { border: 1px solid #e2e8f0; padding: 6px 10px; font-size: 13px; text-align: left; }
table.tiers th { background: #f8fafc; color: #475569; }
table.tiers.big td { font-size: 16px; padding: 10px 14px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.status { font-size: 12px; padding: 2px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.status-ok { background: #e8f5ee; color: #15803d; }
.status-warn { background: #fef3c7; color: #b45309; }
.status-bad { background: #fde8e8; color: #b91c1c; }
.status-muted { background: #f1f5f9; color: #64748b; }

/* Blue highlight box for the tier table presented to the client. */
.panel.client-table { background: #eaf2fd; border: 2px solid #2563eb; }
.panel.client-table h2 { margin-top: 0; color: #14365c; }
.panel.client-table table.tiers { background: #fff; }
.panel.client-table table.tiers th { background: #dbe9fc; color: #1e3a8a; }

ul.warnings { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 28px; }
ul.warnings li { font-size: 13px; color: #92400e; margin: 3px 0; }
.banner-ok { background: #e8f5ee; border: 1px solid #bbe3cc; color: #15803d; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.banner-warning { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.banner-danger { background: #fde8e8; border: 1px solid #f5b5b5; color: #b91c1c; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.form-error { color: #b91c1c; font-size: 14px; white-space: pre-line; }

/* Prominent competitiveness verdict at the top of the pricing result. */
.verdict { border-radius: 10px; padding: 16px 18px; margin: 6px 0 16px; border: 2px solid; }
.verdict strong { font-size: 17px; }
.verdict div { margin-top: 6px; font-size: 14px; }
.verdict-ok { background: #e8f5ee; border-color: #34a853; color: #14532d; }
.verdict-warn { background: #fef3c7; border-color: #f59e0b; color: #7c2d12; }
.verdict-bad { background: #fde8e8; border-color: #dc2626; color: #7f1d1d; }

.card-actions { margin-top: 10px; }
.btn-small { padding: 6px 12px; font-size: 13px; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #14365c; }
.login-card {
  background: #fff; border-radius: 12px; padding: 32px 36px; width: 340px;
  display: flex; flex-direction: column; gap: 10px;
}
.login-card h1 { margin: 0; font-size: 20px; }
.login-card label { font-size: 13px; color: #4b5563; }
