.small { font-size: 13px; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.upper { text-transform: uppercase; }
@media (max-width: 640px) { .hide-sm { display: none; } }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .logo-mark { width: 46px; height: 46px; animation: pulse-logo 1.2s var(--ease) infinite alternate; }
@keyframes pulse-logo { from { transform: scale(.94); opacity: .7; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px 0; }
.loading.sm { padding: 16px 0; }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid rgba(15,23,42,.1); border-top-color: var(--accent); animation: spin .7s linear infinite; }
/* esqueleto enquanto carrega */
.skel { border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.5) 30%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.5) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; box-shadow: inset 0 0 0 1px var(--hair); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

input, textarea, select {
  width: 100%; background: rgba(255,255,255,.8); border: 0; border-radius: 13px;
  box-shadow: inset 0 0 0 1px var(--hair-strong), 0 1px 2px rgba(15,23,42,.03);
  padding: 11px 14px; outline: none; transition: box-shadow .2s, background .2s; font-size: 15px; color: var(--ink);
}
input:focus, textarea:focus, select:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(37, 99, 235, .12); }
input::placeholder, textarea::placeholder { color: var(--ink3); }
input[type=checkbox], input[type=radio] { width: auto; box-shadow: none; }
input[type=file] { padding: 9px; font-size: 13px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 14px; }
.err { color: var(--bad); font-size: 13.5px; min-height: 18px; margin: 2px 0 8px; }
.sel { width: auto; padding: 6px 12px; font-size: 13px; border-radius: 999px; font-weight: 600; }
.mdedit { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; resize: vertical; }

/* ---------- entrar ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-logo { position: fixed; top: 22px; left: 26px; }
.auth-card { width: min(410px, 100%); padding: 34px; border-radius: 30px; box-shadow: var(--shadow-lg), inset 0 1px 0 #fff; animation: rise .7s var(--ease) both; }
.auth-card h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.auth-card > p { margin: 6px 0 24px; }
.auth-card .btn { width: 100%; margin-top: 6px; height: 46px; }
.switch { text-align: center; margin: 18px 0 0; font-size: 14px; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245, 247, 251, .7); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 1px 0 var(--hair); }
.top-in { width: min(1320px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 18px; height: 60px; }
.badge { background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 6px; margin-left: 2px; }
.me { display: flex; align-items: center; gap: 9px; color: var(--ink2); font-size: 14px; font-weight: 600; }
.me:hover { color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; background: linear-gradient(140deg, #3b7bff, var(--accent-2)); flex: none; box-shadow: 0 4px 10px -4px rgba(37,99,235,.6); }

/* ---------- controle segmentado (abas com indicador que desliza) ---------- */
.seg-nav { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(15, 23, 42, .05); box-shadow: inset 0 1px 2px rgba(15,23,42,.05); isolation: isolate; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-nav::-webkit-scrollbar { display: none; }
.seg-nav a, .seg-nav button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; border: 0; background: none; color: var(--ink2); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .25s; }
.seg-nav a:hover, .seg-nav button:hover { color: var(--ink); }
.seg-nav .on { color: var(--ink); }
.seg-nav .i { width: 16px; height: 16px; }
.seg-thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: 34px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 4px 12px -4px rgba(15,23,42,.18); transition: transform .45s var(--spring), width .45s var(--spring); }
.top .seg-nav { margin: 0 auto; }

.main { width: min(1320px, 100% - 32px); margin: 0 auto; padding: 30px 0 90px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.page-head p { margin: 4px 0 0; color: var(--ink2); }
h2.sec { font-size: 18px; margin: 34px 0 14px; letter-spacing: -.02em; }
.sec-row { margin: 24px 0 12px; }
.sec-row h2.sec { margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink3); margin-bottom: 6px; }
.crumb a { color: var(--ink2); display: inline-flex; align-items: center; gap: 2px; }
.crumb a:hover { color: var(--accent); }
.crumb .i { width: 15px; height: 15px; }
.empty { text-align: center; padding: 44px 24px; }
.empty h3 { margin: 0 0 6px; letter-spacing: -.02em; }
.empty p { color: var(--ink2); max-width: 520px; margin: 6px auto 14px; }
.empty-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.empty-ic .i { width: 24px; height: 24px; }

/* ---------- cartões interativos: inclinação + brilho ---------- */
.tilt { transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.9), transparent 45%); mix-blend-mode: soft-light; }
.tilt:hover { box-shadow: var(--shadow-lg), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.6); }
.tilt:hover::after { opacity: 1; }

/* ---------- garagem ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.vcard { display: flex; flex-direction: column; gap: 4px; color: var(--ink); min-height: 200px; border-radius: var(--radius-lg); padding: 22px; }
.vcard:hover { color: var(--ink); }
.vcard-top { display: flex; justify-content: space-between; gap: 6px; }
.vcard-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(140deg, #fff, #eef2f8); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-sm); color: var(--ink); }
.vcard h3 { margin: 16px 0 2px; font-size: 22px; letter-spacing: -.03em; }
.vin { font-family: var(--font-num); letter-spacing: .08em; color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.vcard-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.vcard-foot .i { width: 15px; height: 15px; color: var(--ink3); }
.vin-info { margin: -8px 0 14px; font-weight: 500; }
.add-card { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--ink2); border: 1.5px dashed rgba(15,23,42,.14); background: rgba(255,255,255,.35); box-shadow: none; cursor: pointer; font-weight: 600; min-height: 200px; border-radius: var(--radius-lg); transition: all .3s var(--ease); }
.add-card:hover { color: var(--accent); border-color: rgba(37,99,235,.45); background: rgba(255,255,255,.6); }
.add-card .i { width: 26px; height: 26px; }

/* ---------- veículo ---------- */
.vhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vhead h1 { margin: 0; font-size: 40px; letter-spacing: -.045em; display: flex; align-items: center; gap: 10px; line-height: 1.05; }
.icon-btn { display: inline-grid; place-items: center; background: rgba(255,255,255,.7); border: 0; border-radius: 11px; width: 34px; height: 34px; cursor: pointer; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-sm); transition: all .2s; }
.icon-btn:hover { color: var(--accent); background: #fff; }
.icon-btn .i { width: 16px; height: 16px; }
.vmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; color: var(--ink2); font-size: 14px; }
.vmeta .sep { color: var(--ink3); }
.vtabs-wrap { margin: 22px 0 20px; }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 22px; align-items: start; }
.vlayout.wide { grid-template-columns: minmax(0, 1fr); }
.vside { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: none; border-radius: var(--radius-lg); }
.vside::-webkit-scrollbar { display: none; }
@media (max-width: 1060px) { .vlayout { grid-template-columns: 1fr; } .vside { position: static; max-height: none; } .vlayout.t-overview .vside { order: -1; } }
.vmain { min-width: 0; }
.pane { animation: pane-in .45s var(--ease) both; }
.pane.from-left { animation-name: pane-in-l; }
@keyframes pane-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pane-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* resumo fixo */
.summary { border-radius: var(--radius-lg); padding: 22px; }
.summary h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 6px; }
.stat-grid div { background: rgba(255,255,255,.7); border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--hair); }
.stat-grid b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.stat-grid span { font-size: 12px; color: var(--ink3); font-weight: 600; }
.sum-block { padding: 14px 0 4px; }
.sum-block + .sum-block { border-top: 1px solid var(--hair); }
.sum-k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 7px; }
.sum-k .when { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: auto; }
.sum-v { font-weight: 650; letter-spacing: -.01em; }
.codes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.code-chip { font: 700 12px var(--font-num); padding: 4px 8px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink); }
.code-chip.active { box-shadow: inset 0 0 0 1px rgba(220,38,38,.35); color: var(--bad); }
.mod-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 3px 0; color: var(--ink2); }
.rec { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--ink2); }
.rec b { color: var(--ink); }
.sum-md { margin-top: 10px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--hair); }
.upd { margin-top: 10px; }

.live-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; color: var(--ink); padding: 16px 18px; }
.live-banner:hover { color: var(--ink); }
.live-banner div { flex: 1; display: flex; flex-direction: column; }
.live-banner .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(22,163,74,.1); color: var(--ok); }

/* ---------- markdown ---------- */
.md { font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; color: #1e293b; }
.md h1, .md h2, .md h3, .md h4 { margin: 1.1em 0 .4em; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.md h1 { font-size: 20px; } .md h2 { font-size: 17px; } .md h3 { font-size: 15.5px; } .md h4 { font-size: 14.5px; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: .55em 0; }
.md ul, .md ol { padding-left: 22px; margin: .55em 0; }
.md li { margin: .2em 0; }
.md code { font-family: var(--mono); font-size: .88em; background: rgba(15,23,42,.05); border-radius: 6px; padding: 1.5px 6px; color: #0f172a; }
.md pre { background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 14px; overflow-x: auto; }
.md pre code { background: none; padding: 0; color: inherit; }
.md table { border-collapse: separate; border-spacing: 0; width: 100%; margin: .8em 0; font-size: 13.5px; display: block; overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.md th, .md td { padding: 8px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.md tr:last-child td { border-bottom: 0; }
.md th { background: rgba(15,23,42,.03); font-weight: 650; color: var(--ink2); font-size: 12.5px; }
.md blockquote { margin: .7em 0; padding: 8px 16px; border-radius: 0 12px 12px 0; border-left: 3px solid var(--accent); background: var(--accent-soft); color: #1e3a8a; }
.md hr { border: 0; border-top: 1px solid var(--hair); margin: 1.2em 0; }
.md a { font-weight: 600; }

/* ---------- linha do tempo ---------- */
.tl-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.tl-right { display: flex; gap: 8px; align-items: center; }
.search-box { position: relative; }
.search-box .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink3); }
.search { width: 210px; padding: 8px 14px 8px 36px; border-radius: 999px; font-size: 14px; }
.tl-day { position: sticky; top: 64px; z-index: 2; display: inline-flex; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin: 22px 0 10px; padding: 5px 12px; border-radius: 999px; background: rgba(245,247,251,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--hair); }
.tl { position: relative; }
.entry { padding: 0; margin-bottom: 10px; overflow: hidden; border-radius: 20px; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.entry:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg), inset 0 1px 0 #fff; }
.entry-h { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; user-select: none; }
.entry-t { flex: 1; min-width: 0; }
.entry-title { font-weight: 650; font-size: 15px; letter-spacing: -.012em; }
.entry-sub { display: flex; gap: 6px; align-items: center; color: var(--ink3); font-size: 12.5px; margin-top: 2px; font-weight: 500; }
.chev { color: var(--ink3); transition: transform .35s var(--spring); }
.entry.open .chev { transform: rotate(90deg); color: var(--accent); }
/* corpo que abre com altura animada */
.entry-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.entry.open .entry-b { grid-template-rows: 1fr; }
.entry-b > div { overflow: hidden; }
.entry-in { padding: 4px 20px 20px 70px; }
@media (max-width: 640px) { .entry-in { padding-left: 18px; } }
.kic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--ink2); background: linear-gradient(140deg, #fff, #f1f4f9); box-shadow: inset 0 0 0 1px var(--hair), 0 1px 2px rgba(15,23,42,.05); }
.kic .i { width: 18px; height: 18px; }
.k-analysis .kic { color: var(--accent); background: var(--accent-soft); }
.k-faults .kic.has { color: var(--bad); }
.entry-actions { display: flex; gap: 8px; margin-top: 16px; }
.files-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 8px; border-radius: 14px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-sm); font-size: 13.5px; }
.fchip a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--ink2); }
.fchip a:hover { background: var(--accent-soft); color: var(--accent); }
.fchip .i { width: 16px; height: 16px; }
.fname { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fic { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--ink); color: #fff; font: 700 10px var(--font-num); letter-spacing: .04em; }
.fmod { margin-top: 14px; }
.fmod-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.frow { display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.code { font: 700 13.5px var(--font-num); color: var(--ink); }
.xsec { margin-top: 14px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
table.kv td { padding: 8px 4px; border-top: 1px solid var(--hair); vertical-align: top; }
table.kv td:first-child { color: var(--ink2); width: 45%; }
.seg-pick { margin-bottom: 16px; }

/* ---------- sessões ---------- */
.sess { margin-bottom: 10px; padding: 0; border-radius: 20px; overflow: hidden; }
.sess-h { padding: 16px 18px; cursor: pointer; display: flex; align-items: center; gap: 14px; }
.sess-h .grow b { letter-spacing: -.015em; }
.chips-s { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.session-box { padding: 6px 18px 18px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* chips (filtros e seleção de série) */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; border: 0; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { color: var(--ink); background: #fff; }
.chip.on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(15,23,42,.6); }
.chip:disabled { opacity: .4; cursor: default; }
.chip .sw { width: 8px; height: 8px; border-radius: 3px; }

/* ---------- arquivos ---------- */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px; cursor: pointer; margin-bottom: 18px; color: var(--ink); border-radius: var(--radius-lg); border: 1.5px dashed rgba(15,23,42,.14); background: rgba(255,255,255,.45); transition: all .3s var(--ease); font-weight: 600; }
.drop .i { width: 28px; height: 28px; color: var(--accent); }
.drop span { font-weight: 500; }
.drop:hover, .drop.over { border-color: rgba(37,99,235,.5); background: rgba(255,255,255,.8); transform: scale(1.005); }
.ftable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ftable th { text-align: left; color: var(--ink3); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 10px; }
.ftable td { padding: 11px 10px; border-top: 1px solid var(--hair); }
.ftable tr { transition: background .2s; }
.ftable tbody tr:hover { background: rgba(255,255,255,.6); }
.ftable .fn { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ftable .acts a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ink2); }
.ftable .acts a:hover { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 700px) { .ftable th:nth-child(4), .ftable td:nth-child(4), .ftable th:nth-child(3), .ftable td:nth-child(3) { display: none; } }

/* ---------- compartilhar / amigos ---------- */
.share { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.share-who { display: flex; gap: 12px; align-items: center; }
.toggles { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* interruptor estilo iOS */
.sw-l { flex-direction: row; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-weight: 600; color: var(--ink2); }
.sw-l input { appearance: none; -webkit-appearance: none; width: 42px; height: 25px; border-radius: 999px; background: rgba(15,23,42,.12); position: relative; cursor: pointer; transition: background .3s var(--ease); box-shadow: none; padding: 0; margin: 0; }
.sw-l input::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.25); transition: transform .35s var(--spring); }
.sw-l input:checked { background: var(--accent); }
.sw-l input:checked::after { transform: translateX(17px); }
.sw-l input:disabled { opacity: .4; cursor: default; }
.sw-l input:focus { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.addf { display: flex; gap: 10px; margin-bottom: 6px; padding: 10px; border-radius: 999px; }
.addf input { border-radius: 999px; box-shadow: none; background: transparent; }
.addf input:focus { box-shadow: none; }
.frow2 { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acc-grid form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.acc-grid h3 { margin: 0; letter-spacing: -.02em; }
@media (max-width: 700px) { .acc-grid { grid-template-columns: 1fr; } }

/* ---------- computadores ---------- */
.dcard { display: flex; flex-direction: column; gap: 4px; color: var(--ink); min-height: 170px; border-radius: var(--radius-lg); padding: 22px; }
.dcard:hover { color: var(--ink); }
.dcard h3 { margin: 14px 0 0; font-size: 19px; letter-spacing: -.025em; }
.dic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(140deg, #fff, #eef2f8); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-sm); color: var(--ink); }

/* ---------- ao vivo ---------- */
.live { display: flex; flex-direction: column; gap: 16px; }
.live-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; border-radius: var(--radius-lg); padding: 18px 22px; }
.lh-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lh-name { font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.lh-sub { font-size: 14px; margin-top: 3px; color: var(--ink2); }
.lh-right { display: flex; gap: 8px; }
.live-ctl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.live-ro { font-size: 13.5px; padding: 0 4px; color: var(--ink2); }
.live-grid { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 16px; }
@media (max-width: 920px) { .live-grid { grid-template-columns: 1fr; } }
.hero-card { border-radius: 32px; padding: 20px 22px 24px; }
.status-line { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 650; color: var(--ink2); }
.gauge-box { display: grid; place-items: center; }
.gauge-box svg { width: 100%; max-width: 360px; height: auto; }
.gauge .g-track { stroke: rgba(15, 23, 42, .07); }
.gauge .g-mark { stroke: rgba(15, 23, 42, .18); stroke-width: 1.5; stroke-linecap: round; }
.gauge .g-tick { fill: var(--ink3); font: 650 11px var(--font-num); }
.gauge .g-tick.hot { fill: var(--bad); }
.gauge .g-speed { fill: var(--ink); font: 750 82px var(--font-num); letter-spacing: -3px; }
.gauge .g-unit { fill: var(--ink3); font: 600 14px var(--font-num); }
.gauge .g-rpm { fill: var(--accent); font: 650 16px var(--font-num); }
.gauge .g-rpm.hot { fill: var(--bad); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 4px; }
.big3 div + div { border-left: 1px solid var(--hair); }
.big3 .k { display: block; color: var(--ink3); font-size: 12px; font-weight: 600; }
.big3 b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.03em; }
.bar { margin-top: 16px; height: 6px; border-radius: 6px; background: rgba(15,23,42,.06); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #60a5fa, var(--accent)); transition: width .25s var(--ease); }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tiles:empty { display: none; }
.tile { padding: 16px; border-radius: 22px; }
.tile .k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink3); font-weight: 650; }
.tile .k .i { width: 15px; height: 15px; }
.tile b { display: block; font-size: 30px; font-weight: 750; line-height: 1.15; letter-spacing: -.035em; margin-top: 4px; }
.tile b small { font-size: 13px; color: var(--ink3); margin-left: 3px; font-weight: 600; letter-spacing: 0; }
.tile .st { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: auto; }
.spark { width: 100%; height: 32px; margin-top: 6px; display: block; }
.chart-card { border-radius: 24px; }
.chart-card .row { margin-bottom: 6px; }
.knock-bars { display: flex; gap: 18px; margin-top: 14px; }
.kb { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; font-size: 13px; }
.kb-bar { width: 100%; max-width: 46px; height: 90px; border-radius: 12px; background: rgba(15,23,42,.05); display: flex; align-items: flex-end; overflow: hidden; }
.kb-bar span { display: block; width: 100%; background: linear-gradient(0deg, var(--accent), #60a5fa); border-radius: 12px; transition: height .4s var(--spring); }
.kb-bar span.hot { background: linear-gradient(0deg, var(--bad), #f87171); }
.faults-live, .tests { border-radius: 24px; }
.tests .row { margin-bottom: 10px; }
.test-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.tgroup > .muted { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.dev-pick { margin-bottom: 14px; }

/* ---------- modal e avisos ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .18); -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%); display: grid; place-items: center; z-index: 100; padding: 16px; opacity: 0; transition: opacity .3s var(--ease); }
.modal-bg.in { opacity: 1; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border-radius: 28px; padding: 26px; box-shadow: var(--shadow-lg), inset 0 1px 0 #fff, inset 0 0 0 1px var(--hair); transform: translateY(16px) scale(.96); transition: transform .45s var(--spring); }
.modal.wide { width: min(780px, 100%); }
.modal-bg.in .modal { transform: none; }
.modal h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.03em; }
.modal > p, .modal form > p { color: var(--ink2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(15, 23, 42, .88); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px; font-weight: 550; box-shadow: 0 18px 40px -12px rgba(15,23,42,.5); opacity: 0; transform: translateY(14px) scale(.96); transition: all .45s var(--spring); max-width: min(560px, 92vw); }
.toast.in { opacity: 1; transform: none; }
.toast .dot { flex: none; }
