/* CC Concept AI Website Health Audit — demo UI */
:root {
  --primary: #0b2e59;
  --accent: #1f6feb;
  --ink: #1a2433;
  --muted: #5b6675;
  --bg: #f4f6f9;
  --line: #e3e8ef;
}
* { box-sizing: border-box; }
[v-cloak] { display: none; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
header {
  background: var(--primary); color: #fff; padding: 14px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 38px; height: 38px; border-radius: 9px; background: #fff; color: var(--primary);
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 12px; opacity: .8; }
main { max-width: 980px; margin: 0 auto; padding: 26px 20px 60px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 26px; margin-bottom: 20px;
}
h2 { margin: 0 0 6px; font-size: 19px; }
h2 .muted { font-weight: 400; }
p.muted, .muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.small { font-size: 12px; }
form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: 13px; font-weight: 600; }
input[type=text], input:not([type]), select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; width: 100%;
}
#url { font-family: ui-monospace, Menlo, monospace; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; }
.check.auth { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #f8fafc; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
button, .button-like {
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
button.primary, .button-like.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }
.error { color: #b91c1c; font-size: 14px; }
.cap-chip {
  font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
.cap-chip.ok { background: rgba(255,255,255,.18); }
.cap-chip.warn { background: #facc15; color: #713f12; }
.target { font-family: ui-monospace, Menlo, monospace; font-size: 15px; margin: 8px 0; word-break: break-all; }
.progress-track { display: flex; gap: 4px; margin: 14px 0; flex-wrap: wrap; }
.progress-stage {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: #eef2f7; color: var(--muted);
}
.progress-stage.current { background: var(--accent); color: #fff; }
.progress-stage.done { background: #dcfce7; color: #166534; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin: 12px 0; }
.module { font-size: 13px; display: flex; gap: 8px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex: none; }
.dot.running { background: #f59e0b; animation: pulse 1s infinite; }
.dot.completed { background: #16a34a; }
.dot.failed, .dot.cancelled { background: #b91c1c; }
.dot.not_assessed { background: #94a3b8; }
.dot.completed_partial { background: #f59e0b; }
@keyframes pulse { 50% { opacity: .35; } }
.log { background: #0f172a; color: #cbd5e1; border-radius: 8px; padding: 12px 14px; max-height: 220px; overflow: auto; }
.log .muted { color: #64748b; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
     padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td a { margin-right: 10px; color: var(--accent); }
.state { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #eef2f7; color: var(--muted); }
.state.completed, .state.completed_with_warnings { background: #dcfce7; color: #166534; }
.state.failed, .state.cancelled { background: #fee2e2; color: #b91c1c; }
.state.scanning, .state.analysing, .state.validating, .state.discovering,
.state.generating_report { background: #fef9c3; color: #854d0e; }
/* --- public site integration (www.ccconcepthk.com) --- */
.back-link { color: var(--accent, #1f6feb); text-decoration: none; font-size: 0.85rem; margin-left: auto; padding: 6px 10px; border: 1px solid rgba(31,111,235,0.35); border-radius: 8px; }
.back-link:hover { background: rgba(31,111,235,0.08); }
.header-right { margin-left: 12px; }
.upsell { border-left: 4px solid var(--accent, #1f6feb); }
.upsell h2 { margin-bottom: 6px; }
.upsell .actions { margin-top: 12px; }
