/* Greatmap Creator Hub: blacks and dark blues, one electric-blue accent, thin crisp borders. */
:root {
  --bg: #07090F; --panel: #0D121D; --panel-2: #121A2A; --line: #1F2A40; --line-2: #2B3A57;
  --text: #E6ECF7; --text-2: #9AA8C2; --text-3: #63718C;
  --accent: #3D7BFF; --accent-2: #1E4FD8; --ok: #2FBF71; --warn: #F2B544; --bad: #FF5A6A;
  --r: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3, .brand, .btn, .tab, .nav a, .label { font-family: 'League Spartan', sans-serif; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(47, 191, 113, .35); background: rgba(47, 191, 113, .08); }
.pill.warn { color: var(--warn); border-color: rgba(242, 181, 68, .35); background: rgba(242, 181, 68, .08); }
.pill.acc { color: #9DBBFF; border-color: rgba(61, 123, 255, .45); background: rgba(61, 123, 255, .12); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 3px rgba(47, 191, 113, .15); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* shell */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--panel); padding: 18px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; line-height: 1.1; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.brand small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--accent); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.on { background: rgba(61, 123, 255, .14); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side-sec { margin-top: auto; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.side-sec .row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.main { padding: 26px 32px 48px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.head p { margin: 4px 0 0; color: var(--text-2); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.stat b { display: block; font: 800 30px 'League Spartan', sans-serif; margin-top: 6px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.grow { flex: 1; min-width: 0; } .grow > b { display: block; font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; } .meter div { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* media placeholders: dark-blue "frames" standing in for real photos and video stills */
.frame { position: relative; border-radius: 6px; overflow: hidden; background: var(--panel-2); aspect-ratio: 3 / 2; }
.frame::before { content: ""; position: absolute; inset: 0; background: var(--g); }
.frame .tag { position: absolute; left: 8px; bottom: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }

/* project page */
.player { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; }
.player .frame { aspect-ratio: 16 / 9; border-radius: 0; }
.player .bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border-top: 1px solid var(--line); }
.scrub { flex: 1; height: 6px; border-radius: 99px; background: var(--panel-2); position: relative; }
.scrub div { position: absolute; inset: 0 62% 0 0; background: var(--accent); border-radius: 99px; }
.scrub i { position: absolute; top: -5px; width: 3px; height: 16px; border-radius: 2px; background: var(--warn); }
.play { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.play::after { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.wm { position: absolute; inset: 0; display: grid; place-items: center; font: 800 28px 'League Spartan'; color: rgba(255, 255, 255, .12); letter-spacing: .3em; transform: rotate(-18deg); pointer-events: none; }
.stages { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-weight: 700; font-size: 13px; }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab.done { color: var(--text); }
.tab .n { opacity: .6; margin-left: 6px; font-weight: 500; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 12px 'League Spartan'; background: var(--panel-2); border: 1px solid var(--line-2); }
.tc { color: var(--accent); }

/* gallery */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ph { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.ph.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ph .frame { border-radius: 0; }
.ph .meta { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.stars { color: var(--warn); letter-spacing: 1px; font-size: 13px; }
.flag { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.exif { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }

/* auth + client review (no sidebar) */
.center { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(1200px 600px at 50% -10%, #0F1B36 0%, var(--bg) 60%); }
.auth { width: min(420px, 100%); }
.auth .brand { justify-content: center; margin-bottom: 26px; font-size: 18px; }
.auth .brand img { width: 64px; height: 64px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.input { padding: 11px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 16px; }
.code span { aspect-ratio: 1 / 1.2; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); font: 600 22px 'IBM Plex Mono', monospace; }
.code span.f { border-color: var(--accent); }
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); } .steps i.on { background: var(--accent); }
.review { width: min(1100px, 100%); }

/* security */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.ok-ic { width: 22px; height: 22px; border-radius: 50%; background: rgba(47, 191, 113, .15); color: var(--ok); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.warn-ic { background: rgba(242, 181, 68, .15); color: var(--warn); }
.score { display: flex; align-items: center; gap: 18px; }
.ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) 0 92%, var(--panel-2) 92% 100%); }
.ring b { width: 74px; height: 74px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font: 800 24px 'League Spartan'; }
table.log { width: 100%; border-collapse: collapse; }
table.log td, table.log th { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); font-size: 13px; }
table.log th { color: var(--text-3); font-weight: 600; border-top: 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav { grid-auto-flow: column; overflow-x: auto; } .side-sec { display: none; }
  .main { padding: 18px 16px 40px; } .g4, .g3, .g2 { grid-template-columns: 1fr 1fr; } .gallery { grid-template-columns: 1fr 1fr; }
}
