:root { --navy:#0b1f4b; --gold:#f5c400; --sand:#f4f6fb; --ink:#0b1f4b; --muted:#5b6b88; --line:rgba(11,31,75,.12); }
* { box-sizing:border-box; }
body { margin:0; font-family:Outfit,system-ui,sans-serif; background:var(--sand); color:var(--ink); }
h1,h2,h3 { font-family:Fraunces,Georgia,serif; font-weight:600; }
a { color:inherit; }
.topbar { background:var(--navy); color:#fff; font-size:12px; }
.topbar .wrap, header .wrap, footer .wrap, main.wrap { max-width:1120px; margin:0 auto; padding:10px 16px; }
.topbar .wrap, header .wrap { display:flex; justify-content:space-between; gap:16px; align-items:center; }
header { position:sticky; top:0; z-index:20; background:rgba(244,246,251,.94); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img { width:52px; height:52px; object-fit:contain; background:#fff; border-radius:50%; }
.brand small { color:#c9a000; letter-spacing:.16em; text-transform:uppercase; font-size:10px; }
nav { display:flex; gap:14px; flex-wrap:wrap; font-size:14px; font-weight:500; align-items:center; }
nav a { text-decoration:none; }
.btn { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:10px 16px; text-decoration:none; font-weight:650; border:0; cursor:pointer; font-size:14px; }
.btn-gold { background:var(--gold); color:var(--navy); }
.btn-navy { background:var(--navy); color:#fff; }
.btn-ghost { background:transparent; border:1px solid var(--line); }
.hero { background:linear-gradient(180deg,#071433,#0b1f4b 60%); color:#fff; }
.hero .wrap { display:grid; grid-template-columns:1.1fr .9fr; gap:28px; padding:44px 16px; align-items:center; }
.hero h1 { font-size:clamp(30px,5vw,52px); margin:8px 0 12px; }
.hero p { color:rgba(255,255,255,.8); }
.badge { color:var(--gold); letter-spacing:.16em; text-transform:uppercase; font-size:11px; }
.card { background:#fff; border-radius:18px; padding:18px; box-shadow:0 8px 30px rgba(11,31,75,.06); }
.grid { display:grid; gap:14px; }
.g3 { grid-template-columns:repeat(3,1fr); }
.g2 { grid-template-columns:repeat(2,1fr); }
.muted { color:var(--muted); }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; font:inherit; background:#fff; }
label { font-size:12px; font-weight:600; display:block; margin:8px 0 4px; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); }
footer { background:var(--navy); color:#fff; margin-top:40px; }
footer .cnm-credit { text-align:center; padding:0 16px 22px; margin:0; }
footer .cnm-credit a { display:inline-flex; align-items:center; gap:8px; color:#c9d4ea; font-size:13px; }
footer .cnm-credit img { width:28px; height:28px; object-fit:contain; border-radius:50%; background:#fff; }
footer a { color:#fff; text-decoration:none; }
footer .wrap { display:grid; grid-template-columns:2fr 1fr 1fr; gap:20px; padding:36px 16px; }
.gold { color:var(--gold); }
.ok { background:#e8f6ee; color:#14633a; padding:12px; border-radius:12px; }
.err { color:#b42318; font-size:13px; }
.app { display:grid; grid-template-columns:220px 1fr; min-height:100vh; }
.side { background:var(--navy); color:#fff; padding:16px; }
.side a { display:block; color:#fff; text-decoration:none; padding:8px 10px; border-radius:10px; margin:4px 0; font-size:14px; }
.side a.active, .side a:hover { background:rgba(255,255,255,.12); color:var(--gold); }
.stage { padding:22px; }
.tot { font-size:22px; font-weight:700; }
.menu-toggle, .crm-toggle { display:none; border:0; border-radius:999px; background:var(--navy); color:#fff; padding:8px 14px; font-weight:650; cursor:pointer; }
.pipe { display:grid; grid-template-columns:repeat(6,minmax(150px,1fr)); gap:10px; overflow-x:auto; align-items:start; }
.pipe-col { background:#e8eef8; border-radius:16px; padding:8px; min-height:220px; }
.pipe-card { background:#fff; border-radius:12px; padding:10px; margin:8px 0; font-size:13px; }
.pipe-card button { margin:2px 2px 0 0; font-size:11px; border:0; background:#0b1f4b; color:#fff; border-radius:8px; padding:4px 6px; cursor:pointer; }
.chat { display:flex; flex-direction:column; height:400px; }
.chat-log { flex:1; overflow:auto; padding:8px; background:#eef2fb; border-radius:12px; }
.bubble { max-width:80%; padding:8px 12px; border-radius:14px; margin:6px 0; font-size:14px; }
.bubble.me { margin-left:auto; background:#0b1f4b; color:#fff; }
.bubble.them { background:#fff; }
.game-board { position:relative; height:min(72vh,720px); min-height:520px; margin-top:12px; border-radius:24px; background:linear-gradient(#cce7ff,#b7e3c4); overflow:hidden; touch-action:manipulation; }
.feat { width:100%; border-radius:18px; max-height:320px; object-fit:cover; }
.toggle { border:0; border-radius:999px; padding:6px 12px; cursor:pointer; font-weight:650; }
.toggle.on { background:#e8f6ee; color:#14633a; }
.toggle.off { background:#fde8e6; color:#b42318; }
@media (max-width:900px) {
  .hero .wrap, .g3, .g2, footer .wrap, .app { grid-template-columns:1fr; }
  .menu-toggle, .crm-toggle { display:inline-flex; }
  header .wrap { flex-wrap:wrap; }
  nav { display:none; width:100%; flex-direction:column; }
  nav.open { display:flex; }
  .side { display:none; }
  .side.open { display:block; }
  .game-board { height:78vh; min-height:560px; }
}

.checks { display:flex; flex-wrap:wrap; gap:8px; }
.checks label { display:inline-flex; align-items:center; gap:6px; font-weight:500; background:#fff; border:1px solid var(--line); padding:6px 10px; border-radius:999px; margin:0; }
.photos { display:flex; flex-wrap:wrap; gap:8px; }
.photos img { width:110px; height:110px; object-fit:cover; border-radius:12px; }

.legend { display:flex; flex-wrap:wrap; gap:10px; font-size:13px; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }
.cal-item { display:block; border-radius:8px; color:#fff; padding:3px 6px; margin-top:4px; font-size:11px; text-decoration:none; }
.prod-card img { width:100%; height:100px; object-fit:cover; border-radius:12px; background:#e8eef8; }
.pipe-card[draggable="true"] { cursor: grab; }
.pipe-col.over { outline: 2px dashed #f5c400; }
.gcal { background:#fff; border:1px solid #dadce0; border-radius:8px; overflow:hidden; font-family:Arial,sans-serif; }
.gcal-bar { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid #dadce0; }
.gcal-bar button { border:1px solid #dadce0; background:#fff; border-radius:4px; padding:6px 10px; cursor:pointer; }
.gcal-week { display:grid; grid-template-columns:56px repeat(7,1fr); }
.gcal-week div { border-right:1px solid #eee; border-bottom:1px solid #eee; min-height:28px; font-size:11px; padding:2px; }
.gcal-head { text-align:center; font-weight:700; padding:8px 0; }
.gcal-event { display:block; border-radius:4px; color:#fff; padding:2px 4px; margin-top:2px; font-size:11px; text-decoration:none; overflow:hidden; }
.preview-frame { width:100%; height:640px; border:1px solid var(--line); border-radius:12px; background:#525659; }
.strip-preview { width:504px; height:144px; max-width:100%; border:1px dashed #999; background:#f8f8f8; object-fit:cover; }
.nav-label { color:#f5c400; font-size:10px; letter-spacing:.16em; text-transform:uppercase; margin:14px 10px 4px; font-weight:700; }
.nav-drop { display:block; width:100%; text-align:left; background:rgba(255,255,255,.08); color:#fff; border:0; border-radius:10px; padding:8px 10px; margin:8px 0 4px; font:inherit; font-weight:650; cursor:pointer; }
.nav-drop.open { background:rgba(245,196,0,.2); color:#f5c400; }
.nav-sub { padding-left:8px; }
.nav-sub a { font-size:13px; }
.nav-ico { display:inline-block; width:1.4em; }
.back-office { background:rgba(245,196,0,.18); color:#f5c400 !important; font-weight:650; }
.tool-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.tool-tile { display:flex; flex-direction:column; gap:6px; background:#fff; border-radius:20px; padding:22px 18px; text-decoration:none; box-shadow:0 8px 30px rgba(11,31,75,.06); min-height:150px; }
.tool-tile:hover { outline:2px solid #f5c400; }
.tool-icon { font-size:36px; }
.tool-tile b { font-size:20px; font-family:Fraunces,Georgia,serif; }
.tool-tile span { color:#5b6b88; font-size:14px; }
@media (max-width:700px){ .tool-grid { grid-template-columns:1fr; } }

.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;max-height:240px;overflow:auto;padding:8px;border:1px solid #e6eaf2;border-radius:12px;}

.dash-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.dash-tile { display:block; background:#fff; border-radius:16px; padding:16px; text-decoration:none; box-shadow:0 8px 24px rgba(11,31,75,.06); }
.dash-tile .tot { font-size:28px; font-weight:650; color:#0b1f4b; }
.job-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }
@media(max-width:800px){ .dash-grid { grid-template-columns:1fr 1fr; } }
