:root { --menu:#15201B; --bg:#F4F5F2; --accent:#0E6B58; --ink:#15201B; --muted:#5A6B7A; --line:#DDE1DA; --card:#fff; --warn:#B3261E; }
* { box-sizing: border-box; }
body { margin:0; font-family: Manrope, system-ui, sans-serif; background:var(--bg); color:var(--ink); }
a { color: var(--accent); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.shell { display:flex; min-height:100vh; }
.side { width:248px; flex:none; background:var(--menu); color:#fff; padding:20px 14px; display:flex; flex-direction:column; gap:20px; }
.side img.logo { width:140px; }
.companies { display:flex; gap:8px; }
.companies a { display:block; border-radius:50%; border:3px solid transparent; line-height:0; }
.companies a.on { border-color:#F59331; }
.companies img { width:44px; height:44px; border-radius:50%; background:#fff; padding:2px; }
.nav { display:flex; flex-direction:column; gap:4px; }
.nav a { color:#D7E2DC; text-decoration:none; padding:0 12px; min-height:44px; display:flex; align-items:center; border-radius:8px; font-weight:600; font-size:14px; }
.nav a:hover { background:rgba(255,255,255,.08); }
.nav a.on { background:rgba(255,255,255,.14); color:#fff; }
.userbox { margin-top:auto; font-size:13px; color:#B8C7BF; display:flex; flex-direction:column; gap:8px; }
.main { flex:1; min-width:0; padding:20px 28px 48px; }
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.top h1 { margin:0; font-size:24px; }
.chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip { min-height:44px; padding:0 14px; border-radius:22px; border:1px solid var(--line); background:#fff; color:var(--ink); text-decoration:none; display:inline-flex; align-items:center; font-size:13px; font-weight:600; cursor:pointer; font-family:inherit; }
.chip.on { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn { min-height:44px; padding:0 18px; border-radius:6px; border:0; background:var(--accent); color:#fff; font-weight:700; font-size:14px; cursor:pointer; font-family:inherit; }
.btn.secondary { background:#fff; color:var(--ink); border:1px solid var(--line); }
.btn.danger { background:var(--warn); }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; }
.hero { border-radius:16px; color:#fff; display:grid; grid-template-columns: minmax(240px,1fr) 2fr; gap:16px; padding:24px; overflow:hidden; }
.hero canvas { width:100%; height:340px; display:block; touch-action:none; }
.hero h2 { margin:0 0 6px; font-size:26px; }
.kpis { display:flex; flex-direction:column; gap:10px; margin-top:18px; }
.kpi { background:rgba(255,255,255,.1); border-radius:10px; padding:10px 14px; }
.kpi small { display:block; opacity:.8; }
.kpi b { font-size:20px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; margin-top:20px; }
.tile { display:block; text-decoration:none; color:inherit; background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; min-height:88px; }
.tile:hover { border-color:var(--accent); }
.tile b { display:block; margin-bottom:4px; }
.tile span { color:var(--muted); font-size:13px; }
.note { color:var(--muted); font-size:13px; margin-top:10px; }
.banner { background:#F59331; color:#fff; padding:10px 16px; border-radius:10px; margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; font-weight:600; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.matrix td, .matrix th { text-align:center; }
.matrix td:first-child, .matrix th:first-child { text-align:left; }
input[type=text], input[type=email], select { min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:6px; font-family:inherit; font-size:14px; }
input[type=checkbox] { width:22px; height:22px; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; }
.stack { display:flex; flex-direction:column; gap:16px; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.err { color:var(--warn); font-weight:600; }
/* login */
.login { position:relative; min-height:100vh; overflow:hidden; background:#fff; }
.login canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.login .in { position:relative; min-height:100vh; padding:28px 24px; display:flex; flex-direction:column; gap:24px; }
.login .headrow { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.login .pill { font-size:13px; font-weight:600; color:#1C6BC7; background:rgba(255,255,255,.85); padding:6px 12px; border-radius:20px; }
.login .center { flex-grow:1; display:flex; align-items:center; justify-content:center; }
.lcard { width:100%; max-width:380px; background:#2F88EE; color:#fff; border-radius:12px; padding:40px 32px 32px; display:flex; flex-direction:column; gap:22px; box-shadow:0 18px 50px rgba(28,77,140,.25); }
.lcard h1 { margin:0; font-size:28px; text-align:center; }
.lcard p { margin:0; font-size:14px; line-height:1.5; font-weight:500; text-align:center; }
.lcard .emb { display:flex; justify-content:center; gap:10px; }
.lcard .emb img { width:40px; height:40px; border-radius:50%; background:#fff; padding:2px; }
.ms { display:flex; align-items:center; justify-content:center; gap:10px; min-height:46px; border-radius:6px; background:#F59331; color:#fff; font-size:15px; font-weight:700; text-decoration:none; border:0; cursor:pointer; font-family:inherit; width:100%; }
.ms:hover { filter:brightness(1.06); }
.dev { background:rgba(255,255,255,.14); border-radius:8px; padding:12px; display:flex; flex-direction:column; gap:8px; font-size:13px; }
.dev button { min-height:40px; border-radius:6px; border:0; cursor:pointer; font-family:inherit; font-weight:600; }
@media (max-width: 860px) {
  .shell { flex-direction:column; }
  .side { width:auto; flex-direction:row; flex-wrap:wrap; align-items:center; padding:12px 16px; gap:12px; }
  .side img.logo { width:110px; }
  .nav { flex-direction:row; flex-wrap:wrap; width:100%; }
  .userbox { margin-top:0; width:100%; }
  .main { padding:16px; }
  .hero { grid-template-columns:1fr; }
}
