/* Identidade própria: monograma "AH" com as listras diagonais do KV, barra superior e home. */

/* ---------- Monograma ---------- */
.mono { position: relative; display: inline-grid; grid-auto-flow: column; place-items: center; place-content: center; width: 38px; height: 38px; flex: none; border-radius: 12px; overflow: hidden;
  background: linear-gradient(140deg, #0E2A21, #1B5A43); box-shadow: inset 0 0 0 1px rgba(60, 242, 154, .35), 0 8px 18px -8px rgba(0, 184, 98, .7); }
.mono::before { content: ''; position: absolute; inset: -30%; background: repeating-linear-gradient(118deg, transparent 0 10px, rgba(0, 214, 102, .38) 10px 13px); transition: transform .6s ease; }
.mono::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.mono b { position: relative; font-family: 'Work Sans', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -.05em; line-height: 1; color: #fff; }
.mono b + b { color: #3CF29A; }
.side-text:hover .mono::before, .lg-brand:hover .mono::before { transform: translateX(8px); }
.side-text:hover .mono::after, .lg-brand:hover .mono::after { transform: translateX(120%); transition: transform .8s ease; }
.lg-brand .mono { width: 44px; height: 44px; border-radius: 14px; }
.lg-brand .mono b { font-size: 18px; }
.login-card .lg-brand .mono { width: 36px; height: 36px; }
.login-card .lg-brand .mono b { font-size: 14px; }
.side-text .mono { width: 40px; height: 40px; }

/* ---------- Barra superior ---------- */
#main { padding-top: 0 !important; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; margin: 0 -44px 28px; padding: 12px 44px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--kv) 0 64px, transparent 64px), repeating-linear-gradient(118deg, transparent 0 6px, color-mix(in srgb, var(--kv) 35%, transparent) 6px 8px) 64px 0 / 140px 2px no-repeat; }
.tb-left { min-width: 150px; }
.tb-page { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tb-search { flex: 1; max-width: 560px; }
.tb-search .gsearch { margin: 0; max-width: none; }
.tb-search .gsearch input { height: 40px; box-shadow: none; background-color: var(--surface); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 650; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.tb-chip:hover { border-color: var(--brand); color: var(--ink); }
.tb-chip.late { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: var(--danger-soft); }
.tb-me span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(140deg, var(--kv-deep), #1B5A43); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--kv) 55%, transparent); }
.tb-me { text-decoration: none; }
.menu-btn { margin: 12px 0 0; }
@media (max-width: 900px) { .topbar { margin: 0 -16px 20px; padding: 10px 16px; flex-wrap: wrap; } .tb-left { display: none; } .tb-search { order: 3; flex-basis: 100%; max-width: none; } }
/* Esconde a busca solta enquanto a barra não a recebe */
#main > .gsearch { display: none; }

/* ---------- Home ---------- */
.hm-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: end; padding: 34px 36px; border-radius: 24px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(60% 120% at 100% 0%, rgba(0, 214, 102, .42), transparent 60%), linear-gradient(135deg, #0B2A20 0%, #12392C 55%, #1A5140 100%); box-shadow: var(--shadow-lg); }
.hm-hero::before { content: ''; position: absolute; right: -40px; top: -60px; width: 420px; height: 420px; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(118deg, transparent 0 22px, rgba(0, 214, 102, .22) 22px 30px); -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); }
.hm-hero > * { position: relative; }
.hm-date { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #8DF5C2; }
.hm-hero h1 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 650; letter-spacing: -.035em; margin: 10px 0 8px; color: #fff; }
.hm-hero p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15.5px; max-width: 56ch; }
.hm-hero p b { color: #fff; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hm-ghost { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .2) !important; }
.hm-ghost:hover { background: rgba(255, 255, 255, .16) !important; }
.hm-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-hero-stats div { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.hm-hero-stats span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); font-weight: 600; }
.hm-hero-stats strong { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; }
.hm-hero-stats strong small { font-size: 15px; opacity: .6; }
.hm-hero-stats em { font-style: normal; font-size: 12px; color: #8DF5C2; }
@media (max-width: 1100px) { .hm-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hm-hero { padding: 24px 20px; } .hm-hero-stats { grid-template-columns: 1fr; } }

.hm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hm-kpi { display: grid; gap: 3px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hm-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--kv); opacity: .8; }
.hm-kpi.warn::before { background: var(--warn); }
.hm-kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.hm-kpi strong { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; color: var(--ink); }
.hm-kpi em { font-style: normal; font-size: 12px; color: var(--ink-2); }
@media (max-width: 1300px) { .hm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1200px) { .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hm-grid { grid-template-columns: 1fr; } }
.hm-empty { padding: 18px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; text-align: center; }
.hm-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: 12.5px; color: var(--brand-text); background: var(--brand-soft); }
.hm-task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hm-task:last-of-type { border-bottom: 0; }
.hm-task > div { flex: 1; min-width: 0; display: grid; }
.hm-task a { font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-task small { color: var(--muted); font-size: 12px; }
.hm-task.late .hm-ic { background: var(--danger-soft); color: var(--danger); }
.hm-task.late small { color: var(--danger); }
.hm-stage { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; padding: 8px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.hm-stage:last-child { border-bottom: 0; }
.hm-stage span { font-weight: 550; } .hm-stage b { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.hm-stage i, .hm-goal i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.hm-stage u, .hm-goal u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--kv-deep), var(--kv)); }
.hm-goal { display: grid; gap: 6px; padding: 9px 0; }
.hm-goal div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.hm-goal b { font-weight: 650; }
.hm-next { display: grid; gap: 2px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.hm-next:hover { border-color: var(--brand); background: var(--brand-soft); }
.hm-next span { font-size: 12.5px; color: var(--ink-2); } .hm-next em { font-style: normal; font-size: 12.5px; color: var(--brand-text); font-weight: 600; }
.hm-feed { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hm-feed:last-child { border-bottom: 0; }
.hm-feed > div { display: grid; } .hm-feed small { color: var(--muted); font-size: 12px; }
.hm-feed a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hm-feed.win .hm-ic { background: linear-gradient(140deg, var(--kv-deep), #1B5A43); color: #3CF29A; }
.hm-rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hm-rank > b { width: 16px; color: var(--muted); }
.hm-rank > div { flex: 1; display: grid; min-width: 0; } .hm-rank small { color: var(--muted); font-size: 12px; }
.hm-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; background: var(--kv-deep); }
.hm-fila { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 13px; text-decoration: none; }

/* Monograma discreto: plano, sem brilho nem sombra, listras quase imperceptíveis */
.mono { width: 32px; height: 32px; border-radius: 9px; background: var(--kv-deep); box-shadow: none; }
.mono::before { background: repeating-linear-gradient(118deg, transparent 0 9px, rgba(0, 214, 102, .14) 9px 11px); }
.mono::after { display: none; }
.mono b { font-size: 13px; font-weight: 700; }
.mono b + b { color: #6FE8AE; }
.side-text .mono { width: 32px; height: 32px; }
.lg-brand .mono { width: 36px; height: 36px; border-radius: 10px; }
.lg-brand .mono b { font-size: 14px; }
.side-text:hover .mono::before, .lg-brand:hover .mono::before { transform: none; }

/* Tela de acesso com o KV animado: véu só à esquerda para leitura do texto */
canvas.lg-video { display: block; filter: none; }
.lg-veil { background: linear-gradient(100deg, rgba(5, 22, 17, .55) 0%, rgba(5, 22, 17, .2) 45%, transparent 70%) !important; }
.lg-veil::after { display: none; }
