/* SOLVED Control Center — cc-001 */
:root {
  --ink: #16202b;
  --text: #1d2733;
  --muted: #5a6573;
  --line: #dde2e8;
  --bg: #f4f6f8;
  --card: #ffffff;
  --accent: #1f5bc4;
  --accent-ink: #ffffff;
  --side: #16202b;
  --side-text: #c9d2dc;
  --error-bg: #fdecea;
  --error: #9b1c13;
  --ok-bg: #e8f1fd;
  --ok: #163f80;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--ink); }
h1, h2 { color: var(--ink); line-height: 1.25; }

/* Signed-in layout: menu left, content right; the menu stacks on top on phones */
.cc-app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.cc-side { flex: 1 1 220px; max-width: 100%; background: var(--side); color: var(--side-text); padding: 20px 14px; }
.cc-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 800px) { .cc-side { max-width: 240px; } }

.cc-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; margin: 0 6px 24px; }
.cc-brand:hover { color: #fff; }
.cc-brand-dark, .cc-brand-dark:hover { color: var(--ink); margin: 0 0 24px; }
.cc-brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 700; }

.cc-nav { display: flex; flex-direction: column; gap: 2px; }
.cc-nav a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--side-text); text-decoration: none; min-height: 44px; }
.cc-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.cc-nav a.is-active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }

.cc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; background: var(--card); border-bottom: 1px solid var(--line); }
.cc-top h1 { margin: 0; font-size: 22px; }
.cc-me { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.cc-me form { margin: 0; }
.cc-content { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1200px; width: 100%; }

.cc-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cc-panel h2 { margin: 0 0 8px; font-size: 17px; }
.cc-panel p { margin: 4px 0; }

.cc-muted { color: var(--muted); }
.cc-mono { font-family: var(--mono); font-size: 13px; }
.cc-flash { margin: 16px 28px 0; padding: 10px 14px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.cc-plain .cc-flash { margin: 0 0 16px; }
.cc-error { margin: 0 0 16px; padding: 10px 14px; border-radius: 6px; background: var(--error-bg); color: var(--error); }

.cc-table-wrap { overflow-x: auto; }
.cc-table { width: 100%; border-collapse: collapse; }
.cc-table th, .cc-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cc-table th { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Buttons and forms */
.cc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font); cursor: pointer; }
.cc-btn:hover { background: #17489d; }
.cc-btn-quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); min-height: 36px; padding: 0 12px; font-weight: 500; }
.cc-btn-quiet:hover { background: var(--bg); color: var(--ink); }
.cc-form { display: flex; flex-direction: column; gap: 6px; }
.cc-form label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.cc-form input { min-height: 44px; padding: 8px 12px; border: 1px solid #b9c2cc; border-radius: 6px; font: 15px var(--font); color: var(--text); background: #fff; }
.cc-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cc-form .cc-btn { margin-top: 16px; }
.cc-code { font-family: var(--mono); font-size: 22px; letter-spacing: 6px; text-align: center; }

/* Login, code and setup pages */
.cc-plain { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.cc-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.cc-card h1 { margin: 0 0 12px; font-size: 22px; }
