/* NavisHub - demonstração animada (dados fictícios) */
:root { --bg: #eef1f6; --page: #f6f8fb; --card: #fff; --line: #e3e7ee; --text: #1c2433; --muted: #6b7486; --accent: #2563eb; --accent-bg: #e3edff;
  --ok: #16a34a; --ok-bg: #e5f7ec; --warn: #d97706; --warn-bg: #fff4dc; --err: #dc2626; --err-bg: #fde8e8; --pur: #7c3aed; --pur-bg: #efe7ff;
  --side: #fff; --code: #0f1420; --shadow: 0 10px 40px rgba(20,30,60,.12); color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b0e14; --page: #0f131b; --card: #151a24; --line: #252c3a; --text: #e6eaf2; --muted: #8d97ab;
  --accent: #4f8cff; --accent-bg: #172744; --ok: #22c55e; --ok-bg: #11291b; --warn: #f59e0b; --warn-bg: #2d2310; --err: #f87171; --err-bg: #331617; --pur: #a78bfa; --pur-bg: #241b3d;
  --side: #121722; --code: #080b11; --shadow: 0 10px 40px rgba(0,0,0,.5); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0b0e14; --page: #0f131b; --card: #151a24; --line: #252c3a; --text: #e6eaf2; --muted: #8d97ab;
  --accent: #4f8cff; --accent-bg: #172744; --ok: #22c55e; --ok-bg: #11291b; --warn: #f59e0b; --warn-bg: #2d2310; --err: #f87171; --err-bg: #331617; --pur: #a78bfa; --pur-bg: #241b3d;
  --side: #121722; --code: #080b11; --shadow: 0 10px 40px rgba(0,0,0,.5); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.dtop { max-width: 1320px; margin: 0 auto; padding: 14px 16px 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dtop .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.dtop .brand b { color: #1da1f2; } .dtop .brand img { width: 30px; height: 30px; border-radius: 8px; }
.dtag { font-size: 12px; font-weight: 700; color: var(--pur); background: var(--pur-bg); border-radius: 999px; padding: 3px 10px; }
.dsp { flex: 1; }
.dbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 9px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.dbtn:hover { border-color: var(--accent); }
.dbtn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.dlang a { font-weight: 700; font-size: 12px; padding: 5px 7px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.dlang a[aria-current] { background: var(--accent); color: #fff; }
.dintro { max-width: 1320px; margin: 0 auto; padding: 0 16px 10px; color: var(--muted); }
.dintro b { color: var(--text); }

/* moldura do painel */
.frame { position: relative; max-width: 1320px; grid-template-columns: 228px minmax(0, 1fr); height: min(760px, calc(100vh - 120px)); min-height: 560px; margin: 0 auto 10px; display: grid; grid-template-rows: 52px 1fr 54px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--page); box-shadow: var(--shadow); }
@media (min-width: 1352px) { .frame { margin-left: auto; margin-right: auto; } }
.f-side { grid-row: 1 / 3; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.f-logo { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 800; font-size: 16px; border-bottom: 1px solid var(--line); }
.f-logo img { width: 26px; height: 26px; border-radius: 7px; } .f-logo b { color: #1da1f2; } .f-logo small { color: var(--muted); font-weight: 600; font-size: 11px; margin-left: auto; }
.f-nav { overflow: auto; padding: 8px; flex: 1; }
.f-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin: 12px 8px 4px; }
.f-nav button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--text); padding: 8px 10px; border-radius: 8px; font: inherit; cursor: pointer; text-align: left; position: relative; }
.f-nav button:hover { background: var(--accent-bg); }
.f-nav button.on { background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.f-nav button.on::after { content: ""; position: absolute; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.18); animation: dpulse 1.4s infinite; }
.f-nav svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-nav .nb { margin-left: auto; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; }
.f-nav button.hid { display: none; }
.f-nav button.newin { animation: dnew 1.6s ease; }
.f-head { grid-column: 2; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--card); border-top: 3px solid #f5a524; }
.f-search { flex: 0 1 320px; height: 32px; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 13px; }
.f-user { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.f-av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.f-main { grid-column: 2; overflow: auto; padding: 18px 22px 30px; position: relative; scroll-behavior: smooth; }
.f-cap { grid-column: 1 / 3; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--card); border-top: 1px solid var(--line); }
.cap-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pur-bg); color: var(--pur); flex: 0 0 30px; font-size: 15px; }
.cap-t { flex: 1; min-width: 0; font-size: 14px; } .cap-t b { color: var(--pur); }
.cap-ctl { display: flex; gap: 6px; }
.cap-ctl .dbtn { padding: 5px 10px; font-size: 13px; }
.cap-prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--pur); width: 0; transition: width .4s; }

/* conteúdo */
.ph { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ph h1 { margin: 0; font-size: 22px; } .crumb { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.card h2 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 12px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: 1fr 1fr; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat .l { color: var(--muted); font-size: 12px; } .stat .v { font-size: 22px; font-weight: 800; } .stat .s { color: var(--muted); font-size: 11.5px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: default; white-space: nowrap; transition: transform .12s, box-shadow .2s; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.big { padding: 10px 18px; font-size: 14px; }
.btn.press, .chk.press, .sw.press, .pick.press, tr.press { transform: scale(.96); }
.sel, .inp { min-height: 34px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 7px 10px; font: inherit; min-width: 120px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; }
.sel::after { content: "▾"; color: var(--muted); }
.inp.focus, .sel.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 7px 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.hl td { background: var(--accent-bg); transition: background .3s; }
.chk { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--muted); display: inline-grid; place-items: center; vertical-align: middle; transition: all .15s; flex: 0 0 18px; }
.chk.on { background: var(--accent); border-color: var(--accent); }
.chk.on::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--line); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.err { background: var(--err-bg); color: var(--err); }
.pill.pur { background: var(--pur-bg); color: var(--pur); } .pill.acc { background: var(--accent-bg); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ok); } .dot.off { background: var(--muted); } .dot.err { background: var(--err); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .5s ease; }
.bar.ok > i { background: var(--ok); }
.steps { list-style: none; margin: 10px 0 0; padding: 0; }
.steps li { display: flex; gap: 10px; align-items: center; padding: 5px 0; color: var(--muted); }
.steps li .si { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 20px; display: grid; place-items: center; font-size: 11px; }
.steps li.run { color: var(--text); font-weight: 600; } .steps li.run .si { border-color: var(--accent); border-top-color: transparent; animation: dspin .8s linear infinite; }
.steps li.done { color: var(--text); } .steps li.done .si { background: var(--ok); border-color: var(--ok); color: #fff; } .steps li.done .si::after { content: "✓"; }
.log { background: var(--code); color: #cfe0f5; border-radius: 9px; padding: 10px 12px; font: 12px/1.6 ui-monospace, Menlo, Consolas, monospace; height: 150px; overflow: auto; margin-top: 10px; }
.log .g { color: #4ade80; } .log .y { color: #fbbf24; } .log .c { color: #67e8f9; }
.toast { position: absolute; right: 18px; bottom: 70px; z-index: 30; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 14px; max-width: 380px; font-size: 13px; transform: translateY(20px); opacity: 0; transition: all .35s; }
.toast.show { transform: none; opacity: 1; }
.toast.warn { border-left-color: var(--warn); } .toast.err { border-left-color: var(--err); }
.modal-bg { position: absolute; inset: 0; background: rgba(10,15,25,.45); display: grid; place-items: center; z-index: 20; animation: dfade .25s; padding: 14px; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); width: min(560px, 100%); padding: 16px 18px; animation: dpop .3s; max-height: 100%; overflow: auto; }
.modal h3 { margin: 0 0 8px; font-size: 16px; }
.pick { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; transition: all .2s; }
.pick.on { border-color: var(--accent); background: var(--accent-bg); }
.sw { width: 36px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: 0 0 36px; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sw.on { background: var(--ok); } .sw.on::after { left: 18px; }
.chart { width: 100%; height: 170px; display: block; }
.term { background: #0b0f17; color: #d6e2f0; border-radius: 10px; font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; overflow: hidden; border: 1px solid #222a38; }
.term .tb { background: #1a2130; padding: 6px 10px; display: flex; gap: 6px; align-items: center; color: #8d97ab; font-size: 12px; }
.term .tb i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .term .tb i:nth-child(2) { background: #fbbf24; } .term .tb i:nth-child(3) { background: #4ade80; }
.term pre { margin: 0; padding: 10px 12px; height: 200px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.alert-i { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; margin-bottom: 8px; background: var(--card); transition: all .4s; }
.alert-i.crit { border-left-color: var(--err); } .alert-i.ok { border-left-color: var(--ok); opacity: .7; }
.alert-i.new { animation: dslide .5s; }
.alert-i .at { flex: 1; } .alert-i .at b { display: block; }
.kbar { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding: 0 6px; border-bottom: 1px solid var(--line); position: relative; }
.kbar .k { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.kbar .k i { width: 70%; max-width: 46px; border-radius: 6px 6px 0 0; height: 0; transition: height .8s ease; background: var(--ok); display: block; }
.kbar .k i.bad { background: var(--err); } .kbar .k span { font-size: 11px; color: var(--muted); white-space: nowrap; } .kbar .k em { font-style: normal; font-size: 11px; font-weight: 700; }
.kbar .goal { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--warn); }
.kbar .goal span { position: absolute; right: 4px; top: -18px; font-size: 11px; color: var(--warn); font-weight: 700; }
.hl-ring { animation: dring 1.2s ease 2; }

/* cursor */
.cur { position: absolute; left: 0; top: 0; z-index: 50; width: 26px; height: 26px; pointer-events: none; transform: translate(60vw, 60%); transition: transform .75s cubic-bezier(.45,.05,.25,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.cur svg { width: 26px; height: 26px; display: block; transition: transform .12s; transform-origin: 3px 3px; }
.cur.down svg { transform: scale(.82); }
.ripple { position: absolute; z-index: 49; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--pur); pointer-events: none; animation: drip .6s ease-out forwards; }

@keyframes dspin { to { transform: rotate(360deg); } }
@keyframes dpulse { 50% { box-shadow: 0 0 0 7px rgba(37,99,235,0); } }
@keyframes drip { from { transform: scale(.5); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
@keyframes dfade { from { opacity: 0; } }
@keyframes dpop { from { transform: scale(.94); opacity: 0; } }
@keyframes dslide { from { transform: translateX(30px); opacity: 0; } }
@keyframes dnew { 0%, 60% { background: var(--ok-bg); box-shadow: 0 0 0 2px var(--ok); } }
@keyframes dring { 50% { box-shadow: 0 0 0 4px var(--accent-bg), 0 0 0 6px var(--accent); } }

.dfoot { max-width: 1320px; margin: 0 auto; padding: 4px 16px 24px; color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; grid-template-rows: 46px auto 1fr 64px; height: calc(100svh - 20px); min-height: 560px; border-radius: 12px; }
  .f-side { grid-row: 2; grid-column: 1; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
  .f-logo { display: none; }
  .f-nav { display: flex; gap: 4px; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .f-nav::-webkit-scrollbar { display: none; }
  .f-sec { display: none; }
  .f-nav button { width: auto; white-space: nowrap; padding: 6px 10px; flex: 0 0 auto; }
  .f-nav button.on::after { display: none; }
  .f-head { grid-row: 1; grid-column: 1; } .f-search { display: none; }
  .f-main { grid-row: 3; grid-column: 1; padding: 14px 12px 24px; }
  .f-cap { grid-row: 4; grid-column: 1; }
  .cap-t { font-size: 13px; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; } .g2 { grid-template-columns: 1fr; }
  .crumb { display: none; }
  .hide-m { display: none !important; }
}
@media (max-width: 480px) { .cap-ctl .lbl { display: none; } .dintro { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .cur { transition-duration: .2s; } }
@media (max-width: 900px) {
  .frame { grid-template-rows: auto 1fr 64px; grid-template-columns: minmax(0, 1fr); width: auto; margin-left: 8px; margin-right: 8px; }
  .f-main > *, .grid > * { min-width: 0; }
  .f-head { display: none; }
  .f-side { grid-row: 1; } .f-main { grid-row: 2; overflow-x: hidden; } .f-cap { grid-row: 3; }
  td, th { word-break: break-word; padding: 7px 5px; }
  td .btn { padding: 6px 8px; font-size: 12px; white-space: normal; }
  .card { padding: 12px; } .modal { padding: 14px; }
  .toast { top: 54px; bottom: auto; right: 10px; left: 10px; max-width: none; }
  .dtag { display: none; }
  .dtop { gap: 8px; } .dtop .dbtn { padding: 6px 10px; font-size: 13px; }
  .kbar { gap: 6px; }
}
@media (max-width: 900px) {
  td .btn { white-space: nowrap; } td b { white-space: nowrap; }
  .card > .row, .modal .row { flex-wrap: nowrap; align-items: flex-start; }
  .card > .row .chk, .modal .row .chk { margin-top: 1px; }
}
/* itens do menu que só mostram a tela real */
.f-nav .nshot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.f-nav button.on .nshot { display: none; }
.shot-img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.shot-ph { border: 1px dashed var(--line); border-radius: 10px; padding: 48px 16px; text-align: center; color: var(--muted); font-size: 15px; }
