:root {
  --bg: #f6f5f2; --panel: #ffffff; --side: #efeee9; --side-hover: #e4e2db; --line: #e3e1da; --line-2: #d4d1c8;
  --ink: #1d1c1a; --ink-2: #55524b; --ink-3: #8a867c;
  --accent: #3b5bdb; --accent-soft: #e8edfd; --accent-ink: #2b47b8;
  --ok: #2b8a3e; --ok-soft: #e6f4ea; --warn: #b8650f; --warn-soft: #fdf0dc; --bad: #c92a2a; --bad-soft: #fde8e8;
  --heart: #ed3b5a; --hover: #faf9f6; --topbar: rgba(246,245,242,.92); --mark: #fff1a8; --info-line: #c9d4fa; --tip-line: #bfe3c8; --warn-line: #f2d5a8; --bad-line: #f5c2c2; --radius: 12px; --shadow: 0 1px 2px rgba(30,25,15,.06), 0 4px 16px rgba(30,25,15,.05);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--ink-3); } .small { font-size: .85rem; } .tiny { font-size: .76rem; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 272px 1fr; height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; font-weight: 650; font-size: 1.02rem; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.side-scroll { overflow-y: auto; flex: 1; padding: 4px 10px 12px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); cursor: pointer; font-size: .94rem; user-select: none; border: 0; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--side-hover); text-decoration: none; }
.nav-item.active { background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-weight: 600; }
.nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 16px 10px 6px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.nav-label a { color: var(--ink-3); }
.prov-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.nav-item .chev { margin-left: auto; color: var(--ink-3); transition: transform .15s; width: 15px; height: 15px; }
.nav-item.open .chev { transform: rotate(90deg); }
.nav-sub { margin: 2px 0 6px 20px; border-left: 1px solid var(--line-2); padding-left: 8px; }
.nav-sub .nav-item { padding: 5px 10px; font-size: .88rem; color: var(--ink-2); }
.side-foot { border-top: 1px solid var(--line); padding: 10px; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--topbar); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.search { flex: 1; max-width: 620px; position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.hello { margin-left: auto; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px 4px 12px; border-radius: 999px; color: var(--ink); }
.hello:hover { background: var(--side-hover); text-decoration: none; }
.hello b { font-weight: 650; }
.content { flex: 1; overflow-y: auto; }
.page { max-width: 1080px; margin: 0 auto; padding: 28px 28px 80px; }
.page.narrow { max-width: 820px; }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }

/* ---------- Componentes ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-grid; place-items: center; font-weight: 650; font-size: .82rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.8rem; }
.avatar.sm { width: 26px; height: 26px; font-size: .68rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 12px; font-size: 1rem; }
.card-title .act { margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-weight: 550; font-size: .9rem; white-space: nowrap; color: var(--ink); }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--side-hover); }
.btn.sm { padding: 5px 10px; font-size: .82rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--ink-2); display: inline-flex; }
.icon-btn:hover { background: var(--side-hover); color: var(--ink); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack > * + * { margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: .83rem; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; padding: 3px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--side); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.bad { background: var(--bad-soft); color: var(--bad); }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 10px 14px; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--accent); border-color: var(--accent); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--hover); }
.empty { text-align: center; color: var(--ink-3); padding: 40px 20px; }
.empty svg.i { width: 34px; height: 34px; stroke-width: 1.5; margin-bottom: 8px; }
.loading { padding: 60px; text-align: center; color: var(--ink-3); }

/* Modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(20,18,14,.45); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .12s; }
.modal { background: var(--panel); border-radius: 16px; width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { width: min(980px, 100%); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; font-weight: 650; font-size: 1.05rem; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #1d1c1a; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: rise .2s; }
.toast.err { background: var(--bad); }
@keyframes fade { from { opacity: 0 } } @keyframes rise { from { opacity: 0; transform: translateY(8px) } }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% 0%, var(--accent-soft) 0%, transparent 60%), var(--bg); }
.login { width: min(400px, 100%); padding: 36px 32px; }
.login .logo { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px; }
.err-box { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 9px; font-size: .88rem; margin-bottom: 12px; }

/* ---------- Feed ---------- */
.home { display: grid; grid-template-columns: minmax(0, 540px) 300px; gap: 32px; justify-content: center; }
.rail { position: sticky; top: 20px; align-self: start; }
.composer { padding: 14px 16px; margin-bottom: 20px; }
.composer textarea { border: 0; outline: none; resize: none; width: 100%; min-height: 48px; background: transparent; padding: 6px 0; }
.composer-preview { position: relative; margin: 8px 0; }
.composer-preview img, .composer-preview video { border-radius: 10px; max-height: 300px; }
.composer-preview .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; }
.post { margin-bottom: 22px; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-head .who { line-height: 1.2; }
.post-head .who b { font-size: .92rem; }
.post-media { background: #111; position: relative; display: flex; justify-content: center; }
.post-media img { width: 100%; max-height: 680px; object-fit: contain; display: block; user-select: none; }
.post-media video { width: 100%; max-height: 680px; display: block; }
.heart-pop { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.heart-pop svg { width: 96px; height: 96px; fill: #fff; stroke: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); animation: pop .8s ease forwards; }
@keyframes pop { 0% { transform: scale(0); opacity: 0 } 15% { transform: scale(1.2); opacity: 1 } 30% { transform: scale(1) } 80% { opacity: 1 } 100% { opacity: 0; transform: scale(1) } }
.post-actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0; }
.post-actions .icon-btn svg { width: 25px; height: 25px; }
.post-actions .liked svg { fill: var(--heart); stroke: var(--heart); }
.post-body { padding: 4px 16px 14px; font-size: .93rem; }
.post-body .caption p { margin: .2em 0; }
.post-body .likes { font-weight: 650; cursor: pointer; }
.cmt { font-size: .9rem; margin: 3px 0; display: flex; gap: 6px; align-items: baseline; }
.cmt b { font-weight: 650; flex: none; }
.cmt .del { margin-left: auto; opacity: 0; }
.cmt:hover .del { opacity: 1; }
.cmt-form { display: flex; border-top: 1px solid var(--line); }
.cmt-form input { flex: 1; border: 0; padding: 12px 16px; outline: none; background: transparent; }
.cmt-form button { border: 0; background: none; color: var(--accent); font-weight: 650; padding: 0 16px; cursor: pointer; }
.cmt-form button:disabled { opacity: .4; }
.today-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.today-row:last-child { border: 0; }
.today-big { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.break-now { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 6px 10px; font-size: .85rem; font-weight: 600; margin-top: 8px; }
.link-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); }
.link-item:hover { background: var(--bg); text-decoration: none; }
.link-item .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

/* ---------- Wiki ---------- */
.prov-hero { border-radius: 16px; padding: 26px 28px; color: #fff; margin-bottom: 26px; position: relative; overflow: hidden; }
.prov-hero h1 { margin: 0 0 4px; }
.prov-hero p { margin: 0; opacity: .9; max-width: 640px; }
.prov-hero .row { position: absolute; top: 20px; right: 20px; }
.prov-hero .btn { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.topic { margin-bottom: 30px; scroll-margin-top: 20px; }
.topic-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.topic-head h2 { margin: 0; font-size: 1.15rem; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.art-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); transition: border-color .12s, transform .12s; }
.art-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.art-card b { font-weight: 620; }
.art-card .muted { font-size: .84rem; }
.article { max-width: 780px; }
.article-meta { display: flex; gap: 14px; color: var(--ink-3); font-size: .85rem; margin: 6px 0 26px; flex-wrap: wrap; }
.blk { margin: 0 0 22px; }
.prose p { margin: .5em 0; } .prose ul, .prose ol { padding-left: 1.4em; } .prose img { border-radius: 10px; }
.prose code { background: var(--side); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.prose blockquote { border-left: 3px solid var(--line-2); margin: .6em 0; padding: .1em 0 .1em 14px; color: var(--ink-2); }
.prose table { border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; position: relative; }
.step:not(:last-of-type) .step-n::after { content: ''; position: absolute; top: 40px; left: 17px; width: 2px; height: calc(100% + 0px); background: var(--accent-soft); }
.step-body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.step-body h3 { margin: 0 0 4px; }
.media-list { display: grid; gap: 10px; margin-top: 10px; }
.media-list img { border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.media-list video, .blk video { border-radius: 10px; width: 100%; background: #000; }
.media-list audio, .blk audio { width: 100%; }
.figcap { font-size: .85rem; color: var(--ink-3); margin-top: 6px; text-align: center; }
.callout { border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 12px; border: 1px solid; }
.callout.info { background: var(--accent-soft); border-color: var(--info-line); } .callout.info > svg { color: var(--accent); }
.callout.tip { background: var(--ok-soft); border-color: var(--tip-line); } .callout.tip > svg { color: var(--ok); }
.callout.warn { background: var(--warn-soft); border-color: var(--warn-line); } .callout.warn > svg { color: var(--warn); }
.callout.danger { background: var(--bad-soft); border-color: var(--bad-line); } .callout.danger > svg { color: var(--bad); }
.callout .prose p:first-child { margin-top: 0; } .callout .prose p:last-child { margin-bottom: 0; }
.script { background: #1f2333; color: #eef1fb; border-radius: var(--radius); padding: 16px 18px; position: relative; }
.script .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #9fb0e8; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.script .copy { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 7px; padding: 5px 10px; font-size: .78rem; cursor: pointer; }
.script .prose p { margin: .35em 0; font-size: 1.02rem; }
.file-dl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); }
.file-dl:hover { border-color: var(--accent); text-decoration: none; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 70; display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-height: 100%; border-radius: 8px; }

/* Editor de blocos */
.editor-blk { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; }
.editor-blk-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.editor-blk-body { padding: 12px 14px; }
.editor-blk textarea.input { min-height: 110px; font-family: inherit; }
.add-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px; border: 2px dashed var(--line-2); border-radius: var(--radius); justify-content: center; }
.drop { border: 2px dashed var(--line-2); border-radius: 10px; padding: 16px; text-align: center; color: var(--ink-3); cursor: pointer; font-size: .9rem; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.thumb { position: relative; width: 120px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--side); display: grid; place-items: center; font-size: .75rem; text-align: center; padding: 4px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.thumb .icon-btn { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.6); color: #fff; padding: 3px; z-index: 2; }
.progress { height: 6px; background: var(--side); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: var(--accent); transition: width .2s; }
.md-hint { font-size: .75rem; color: var(--ink-3); margin-top: 4px; }

/* Biblioteca de mídia */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-tile { overflow: hidden; display: flex; flex-direction: column; }
.media-tile .prev { aspect-ratio: 4/3; background: var(--side); display: grid; place-items: center; position: relative; color: var(--ink-3); }
.media-tile .prev img, .media-tile .prev video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media-tile .info { padding: 8px 10px; font-size: .8rem; }
.media-tile .info .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.media-tile.pick { cursor: pointer; } .media-tile.pick:hover { border-color: var(--accent); }

/* Perfil */
.profile-hero { display: flex; gap: 22px; align-items: center; padding: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.profile-hero .avatar-wrap { position: relative; }
.profile-hero .avatar-wrap .icon-btn { position: absolute; bottom: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; }
.facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
.facts span { display: inline-flex; gap: 5px; align-items: center; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: .82rem; }
.day .d { font-weight: 700; font-size: .78rem; text-transform: uppercase; color: var(--ink-3); letter-spacing: .05em; }
.day .h { font-weight: 650; margin-top: 4px; }
.day.today { border-color: var(--accent); background: var(--accent-soft); }
.day.off { background: var(--bg); color: var(--ink-3); }
.score-ring { --p: 0; --c: var(--ok); width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--side) 0); display: grid; place-items: center; flex: none; }
.score-ring > div { width: 66px; height: 66px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 750; font-size: 1.05rem; }
.score-ring.lg { width: 120px; height: 120px; } .score-ring.lg > div { width: 96px; height: 96px; font-size: 1.5rem; }
.bar { height: 8px; background: var(--side); border-radius: 4px; overflow: hidden; flex: 1; }
.bar > div { height: 100%; border-radius: 4px; }
.theme-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: .9rem; }
.theme-row .nm { width: 160px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-row .pc { width: 52px; text-align: right; font-weight: 650; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin-bottom: 14px; }

/* Qualidade */
.eval-theme { margin-bottom: 18px; }
.eval-theme h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.eval-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.eval-item .desc { font-size: .93rem; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 6px 11px; cursor: pointer; font-size: .82rem; font-weight: 600; border-right: 1px solid var(--line-2); }
.seg button:last-child { border-right: 0; }
.seg button.on-ok { background: var(--ok); color: #fff; } .seg button.on-bad { background: var(--bad); color: #fff; } .seg button.on-na { background: var(--ink-3); color: #fff; } .seg button.on { background: var(--accent); color: #fff; }
.seg input { width: 64px; border: 0; padding: 6px 8px; text-align: center; outline: none; border-right: 1px solid var(--line-2); }
.eval-item .cmt-in { grid-column: 1 / -1; }
.score-sticky { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 14px 20px; display: flex; align-items: center; gap: 16px; margin: 0 -20px -18px; border-radius: 0 0 var(--radius) var(--radius); }
.form-item-row { display: grid; grid-template-columns: 170px 1fr 90px 90px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }

/* Busca */
.result { padding: 14px 16px; margin-bottom: 10px; display: block; color: var(--ink); }
.result:hover { border-color: var(--accent); text-decoration: none; }
.result mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); max-height: 420px; overflow-y: auto; z-index: 20; padding: 6px; }
.search-pop a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.search-pop a:hover, .search-pop a.sel { background: var(--bg); text-decoration: none; }
.search-pop .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 8px 10px 2px; font-weight: 650; }

/* ---------- Tema escuro ---------- */
:root[data-theme="dark"] {
  --bg: #16171c; --panel: #1f2027; --side: #1a1b21; --side-hover: #2a2b33; --line: #2d2f38; --line-2: #3a3c47;
  --ink: #ecebe6; --ink-2: #b9b7b0; --ink-3: #85837c;
  --accent: #6d8bff; --accent-soft: #252c4a; --accent-ink: #8ea4ff;
  --ok: #51cf66; --ok-soft: #1b3324; --warn: #fcb357; --warn-soft: #3a2c17; --bad: #ff6b6b; --bad-soft: #3b1f22;
  --hover: #272830; --topbar: rgba(22,23,28,.9); --mark: #5c4b00; --info-line: #34406e; --tip-line: #2b5235; --warn-line: #5a4423; --bad-line: #5e2e33;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); color-scheme: dark;
}
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .step-n { color: #0d1020; }
:root[data-theme="dark"] .script { background: #11131c; border: 1px solid var(--line); }
:root[data-theme="dark"] .toast { background: #ecebe6; color: #16171c; }
:root[data-theme="dark"] .post-media { background: #000; }
:root[data-theme="dark"] .score-ring > div { background: var(--panel); }

/* ---------- Marca ---------- */
.logo.brand { background: none; }
.logo.brand img { object-fit: contain; }
.brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; background: linear-gradient(90deg, #7a1fc9, #1aa3e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .brand-name { background: linear-gradient(90deg, #b56cff, #4cc3ff); -webkit-background-clip: text; background-clip: text; }

/* ---------- Login com imagem ---------- */
.login-split { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(380px, 480px); background: var(--bg); }
.login-art { background: linear-gradient(135deg, #2b0a55, #0b3b6e 55%, #0f6fb0); background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 40px; color: #fff; }
.login-art .tagline { font-size: 1.6rem; font-weight: 700; max-width: 460px; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.login-art.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.login-art > * { position: relative; }
.login-side { display: grid; place-items: center; padding: 30px; }
.login-side .login { box-shadow: none; border: 0; background: transparent; }
.login .logo.brand { width: 64px; height: 64px; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Saudação / topo ---------- */
.theme-btn { margin-left: auto; }
.hello { margin-left: 4px; }

/* ---------- Interruptor ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: .9rem; }
.switch input { display: none; }
.switch .tr { width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + .tr { background: var(--accent); }
.switch input:checked + .tr::after { transform: translateX(16px); }

/* ---------- Subtópicos ---------- */
.nav-sub .nav-sub { margin-left: 10px; margin-top: 0; margin-bottom: 2px; }
.subtopic { margin: 18px 0 8px 4px; padding-left: 16px; border-left: 2px solid var(--line); }
.subtopic .topic-head h2 { font-size: 1rem; }
.subtopic .subtopic .topic-head h2 { font-size: .94rem; }
.edit-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 18px; border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: 12px; font-size: .9rem; flex-wrap: wrap; }
.restrict { font-size: .72rem; }

/* Quadro de tópicos */
.board-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 9px; border: 1px solid transparent; }
.board-row:hover { background: var(--hover); border-color: var(--line); }
.board-row .ind { flex: none; }
.board-row input.nm { flex: 1; border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 7px; font-weight: 550; min-width: 80px; }
.board-row input.nm:focus { border-color: var(--accent); background: var(--panel); outline: none; }
.board-row[data-depth="0"] input.nm { font-weight: 700; }
.board-row .ctl { display: flex; gap: 2px; opacity: .55; }
.board-row:hover .ctl { opacity: 1; }
.board-row .icon-btn { padding: 4px; }
.board-row .icon-btn:disabled { opacity: .25; cursor: default; }
.lvl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.board-row[data-depth="1"] .lvl-dot { background: var(--ink-3); }
.board-row[data-depth="2"] .lvl-dot { background: var(--line-2); }

/* Editor na própria página */
.edit-top { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 12px 0; margin: -12px 0 14px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.title-input { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; border: 1px dashed transparent; background: transparent; width: 100%; padding: 4px 6px; margin-left: -6px; border-radius: 8px; outline: none; }
.title-input:hover, .title-input:focus { border-color: var(--line-2); background: var(--panel); }
.summary-input { font-size: 1.05rem; color: var(--ink-2); border: 1px dashed transparent; background: transparent; width: 100%; padding: 4px 6px; margin-left: -6px; border-radius: 8px; outline: none; }
.summary-input:hover, .summary-input:focus { border-color: var(--line-2); background: var(--panel); }
.seg-tog { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.seg-tog button { border: 0; background: var(--panel); padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.seg-tog button.on { background: var(--accent); color: #fff; }
.ins-menu { position: relative; }
.ins-pop { position: absolute; right: 0; top: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 6; padding: 4px; min-width: 210px; }
.ins-pop button { display: flex; width: 100%; gap: 8px; align-items: center; border: 0; background: none; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: .88rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }
.ins-pop button:hover { background: var(--hover); }

/* ---------- Avisos no canto inferior esquerdo ---------- */
#notes { position: fixed; left: 18px; bottom: 18px; z-index: 45; display: flex; flex-direction: column-reverse; gap: 10px; max-width: min(360px, calc(100vw - 36px)); }
.note-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 11px 12px 11px 14px; display: flex; gap: 11px; align-items: flex-start; animation: slideIn .35s cubic-bezier(.2,.9,.3,1.2) both; cursor: pointer; font-size: .88rem; }
.note-card .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; }
.note-card b { display: block; font-size: .9rem; }
.note-card .x { margin-left: auto; margin-top: -4px; margin-right: -4px; }
.note-card.bday { border-left-color: #f76707; } .note-card.bday .ic { background: #fff0e0; }
:root[data-theme="dark"] .note-card.bday .ic { background: #3a2715; }
.note-card.leaving { animation: slideOut .25s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-30px) } }
@keyframes slideOut { to { opacity: 0; transform: translateX(-30px) } }

/* Pop-up de aviso */
.popup-img { width: 100%; border-radius: 10px; margin-bottom: 12px; max-height: 360px; object-fit: cover; }
.bday-hero { text-align: center; padding: 10px 0; }
.bday-hero .big { font-size: 3.4rem; line-height: 1; }

/* Pesos da ficha */
.weight-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; background: var(--bad-soft); color: var(--bad); font-weight: 600; flex-wrap: wrap; }
.weight-bar.ok { background: var(--ok-soft); color: var(--ok); }
.weight-bar .bar { max-width: 260px; background: rgba(0,0,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; border-radius: 999px; background: var(--side); font-size: .85rem; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--ink-3); display: inline-flex; padding: 2px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px; background: var(--bg); border-radius: 10px; }
.filters .input { width: auto; padding: 6px 10px; font-size: .85rem; }

/* HTML integrado e cofre */
.html-embed { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: block; }
textarea.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .84rem; min-height: 160px; }
.vault-item { padding: 14px 16px; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; }
.vault-item .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.vault-fields { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; margin-top: 4px; }
.vault-fields span { display: inline-flex; align-items: center; gap: 6px; }
.secret { font-family: ui-monospace, Consolas, monospace; letter-spacing: .05em; }
.mini { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 2px; display: inline-flex; border-radius: 5px; }
.mini:hover { color: var(--accent); background: var(--accent-soft); }

/* Calculadoras */
.calc-hint { padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--ink-3); font-size: .9rem; }
.calc-hint.bad { background: var(--bad-soft); color: var(--bad); }
.calc-result { padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); }
.calc-result.ok { background: var(--ok-soft); color: var(--ok); }
.calc-result .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 10px; color: var(--accent-ink); }
.calc-result.ok .big { color: var(--ok); }
.calc-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .9rem; }
.calc-grid span { color: var(--ink-2); }
.blk.calc-mount .card { box-shadow: none; }
.shared-head { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; }
.access-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 3px var(--ok-soft); }
.access-dot.off { background: var(--line-2); box-shadow: none; }
.day-bars { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.day-bars div { width: 8px; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .8; }

/* Leitura obrigatória e versões */
.read-banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); margin-bottom: 22px; }
.read-banner.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--tip-line); }
.read-confirm { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; border: 2px solid var(--accent); margin-top: 10px; }
.diff { font-family: ui-monospace, Consolas, monospace; font-size: .84rem; padding: 4px 8px; border-radius: 5px; margin: 2px 0; white-space: pre-wrap; }
.diff.del { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.diff.add { background: var(--ok-soft); color: var(--ok); }

/* Treinamentos */
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.train-card { overflow: hidden; display: flex; flex-direction: column; }
.train-cover { display: grid; place-items: center; height: 120px; background: linear-gradient(135deg, var(--accent-soft), var(--side)); background-size: cover; background-position: center; color: var(--accent); }
.train-cover svg.i { width: 34px; height: 34px; stroke-width: 1.5; }
.train-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.train-nav { position: sticky; top: 10px; }
.train-step { display: flex; gap: 10px; align-items: center; padding: 8px 8px; border-radius: 9px; cursor: pointer; color: var(--ink); font-size: .9rem; }
.train-step:hover { background: var(--hover); text-decoration: none; }
.train-step.on { background: var(--accent-soft); font-weight: 600; }
.train-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--side); display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; }
.train-step.done .n { background: var(--ok); color: #fff; }
.train-step.locked { opacity: .5; }
.quiz-q { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.quiz-q.right { border-color: var(--ok); background: var(--ok-soft); } .quiz-q.wrong { border-color: var(--bad); background: var(--bad-soft); }
.quiz-opt { display: flex; gap: 10px; align-items: center; padding: 7px 4px; cursor: pointer; }
.quiz-opt input { accent-color: var(--accent); width: 17px; height: 17px; }
.mod-card, .q-card { margin-bottom: 12px; }
.pend-item { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; color: var(--ink); }
.pend-item:last-child { border: 0; } .pend-item:hover { text-decoration: none; color: var(--accent); }
/* Relatórios */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 16px; } .kpi .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; } .kpi .l { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.vbars { display: flex; gap: 10px; align-items: flex-end; height: 160px; padding-top: 18px; }
.vbars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.vbars .b { width: 100%; max-width: 54px; border-radius: 6px 6px 0 0; position: relative; }
.vbars .b span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: .72rem; font-weight: 700; }
.vbars .x { font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
/* Escala em calendário */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .day .h { font-size: .8rem; }
.cal .day.ex { border-color: var(--warn); } .cal .day.hol { border-color: #7048e8; }
.cal .day .nt { font-size: .66rem; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Termo de uso */
.terms-card { width: min(760px, 100%); padding: 28px 30px; }
.terms-body { max-height: 52vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 20px 14px; margin-top: 14px; background: var(--bg); font-size: .93rem; }
.terms-body h2 { font-size: 1.15rem; margin-top: 14px; } .terms-body h3 { font-size: .98rem; margin: 16px 0 4px; }
.terms-body li { margin: 3px 0; }

/* Gráfico de tendência (uma série) */
.tchart { position: relative; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-2); }
.tcol { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; min-width: 3px; }
.tcol:hover { background: var(--hover); }
.tbar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; }
.tcol:hover .tbar { filter: brightness(.88); }
.tbar.empty { background: none; }
.tgoal { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--ink-3); pointer-events: none; z-index: 1; }
.tgoal span { position: absolute; right: 0; top: -18px; font-size: .68rem; color: var(--ink-2); background: var(--panel); padding: 0 4px; border-radius: 4px; }
.taxis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-3); margin-top: 4px; gap: 8px; }
.chart-tip { position: absolute; z-index: 80; background: var(--ink); color: var(--bg); font-size: .78rem; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; display: none; }
/* Meus resultados */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.res-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.res-tile .l { font-size: .76rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.res-tile .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
/* Observações */
.obs-box { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; }
/* Painel de gestão */
.wide-page { max-width: 1400px; }
.tbl th.num, .tbl td.num { text-align: right; white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; } .tbl th.sortable:hover { color: var(--accent); }
.print-only { display: none; }
@media print {
  .side, .topbar, .no-print, #notes, #toasts, .page-head .row { display: none !important; }
  .shell { display: block; height: auto; } .content { overflow: visible; } .print-only { display: block; }
  .card { box-shadow: none; break-inside: avoid; } body { background: #fff; }
}
/* Bloco de notas */
.nb { display: grid; grid-template-columns: 230px 260px 1fr; height: 100%; min-height: 0; }
.nb-secs, .nb-pages { border-right: 1px solid var(--line); overflow-y: auto; padding: 12px 10px; }
.nb-secs { background: var(--side); } .nb-pages { background: var(--panel); }
.nb-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: .95rem; }
.nb-head .dot, .nb-sec .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.nb-search { margin-bottom: 10px; padding: 7px 10px; font-size: .86rem; }
.nb-sec { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 9px; cursor: pointer; font-size: .9rem; border-left: 4px solid transparent; }
.nb-sec .dot { background: var(--c); } .nb-sec .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-sec:hover { background: var(--side-hover); } .nb-sec.on { background: var(--panel); border-left-color: var(--c); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.nb-sec .icon-btn { opacity: 0; padding: 3px; } .nb-sec:hover .icon-btn { opacity: 1; }
.nb-pg { padding: 9px 10px; border-radius: 9px; cursor: pointer; margin-bottom: 2px; }
.nb-pg b { font-weight: 600; font-size: .9rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-pg:hover { background: var(--hover); } .nb-pg.on { background: var(--accent-soft); }
.nb-editor { overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.nb-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 8px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.nb-tool { border: 0; background: none; min-width: 32px; height: 32px; border-radius: 7px; cursor: pointer; font-size: .9rem; color: var(--ink); padding: 0 6px; }
.nb-tool:hover { background: var(--side-hover); }
.nb-bar .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.mk { background: #fff3a3; color: #1d1c1a; padding: 0 3px; border-radius: 2px; }
.nb-paper { max-width: 860px; width: 100%; margin: 0 auto; padding: 28px 40px 120px; }
.nb-title { font-size: 2rem; font-weight: 750; border: 0; background: none; width: 100%; outline: none; padding: 0; letter-spacing: -.02em; }
.nb-body { outline: none; min-height: 50vh; font-size: 1rem; line-height: 1.65; }
.nb-body h1 { font-size: 1.6rem; margin: .6em 0 .3em; } .nb-body h2 { font-size: 1.25rem; margin: .6em 0 .3em; }
.nb-body p { margin: .35em 0; } .nb-body img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.nb-body blockquote { border-left: 3px solid var(--accent); margin: .6em 0; padding: 2px 0 2px 14px; color: var(--ink-2); }
.nb-body a { text-decoration: underline; }
.nb-body ul.checklist { list-style: none; padding-left: 4px; }
.nb-body ul.checklist > li { position: relative; padding-left: 28px; margin: 4px 0; }
.nb-body ul.checklist > li::before { content: ''; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border: 2px solid var(--line-2); border-radius: 5px; cursor: pointer; background: var(--panel); }
.nb-body ul.checklist > li[data-checked="1"] { color: var(--ink-3); text-decoration: line-through; }
.nb-body ul.checklist > li[data-checked="1"]::before { background: var(--ok); border-color: var(--ok); }
.nb-body ul.checklist > li[data-checked="1"]::after { content: '✓'; position: absolute; left: 4px; top: .05em; color: #fff; font-size: .8rem; font-weight: 800; }
:root[data-theme="dark"] .nb-body mark, :root[data-theme="dark"] .nb-body [style*="background-color"] { color: #1d1c1a; }
.nb-empty { margin: auto; text-align: center; color: var(--ink-3); } .nb-empty svg.i { width: 40px; height: 40px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--ink); }
.nb-pop { position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; gap: 4px; box-shadow: var(--shadow); }
/* Personalização */
.welcome-banner { display: flex; gap: 12px; align-items: center; max-width: 872px; margin: 0 auto 20px; padding: 12px 18px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.home.no-feed { grid-template-columns: minmax(0, 640px); } .home.no-feed .rail { position: static; }
.cfg-menu-row { display: grid; grid-template-columns: minmax(90px,130px) minmax(0,1fr) auto; gap: 10px; align-items: center; margin-bottom: 6px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) { .home { grid-template-columns: minmax(0, 560px); } .rail { position: static; order: -1; } .rail .links-card { display: none; } }
@media (max-width: 860px) {
  .nb { grid-template-columns: 1fr; height: auto; } .nb-secs, .nb-pages { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; } .nb-paper { padding: 18px 16px 80px; } .cfg-menu-row { grid-template-columns: 1fr; }
  .train-layout { grid-template-columns: 1fr; } .train-nav { position: static; } .cal { grid-template-columns: repeat(4, 1fr); }
  .login-split { grid-template-columns: 1fr; } .login-art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .burger { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .hello .nm { display: none; }
  .page { padding: 20px 16px 80px; }
  .grid2, .grid3, .perm-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .form-item-row { grid-template-columns: 1fr 1fr; }
  .eval-item { grid-template-columns: 1fr; }
  .prov-hero .row { position: static; margin-top: 14px; }
}
.mg-split>*{min-width:0}

/* ===================== v1.6 ===================== */
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.i.flip { transform: rotate(180deg); }
.meter { height: 8px; background: var(--side); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .2s; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-h { font-size: 1.05rem; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.ic-round { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* sino */
.bell-wrap { position: relative; margin-left: auto; }
.bell-btn { position: relative; }
.badge-n, .nav-badge, .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.badge-n { position: absolute; top: -3px; right: -4px; border: 2px solid var(--bg); }
.nav-badge { margin-left: auto; }
.badge-n.hidden, .nav-badge.hidden { display: none; }
.count { background: var(--accent); }
.bell-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); z-index: 40; overflow: hidden; }
.bell-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-actions { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bell-list { max-height: min(460px, 70vh); overflow: auto; }
.bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bell-item:hover { background: var(--hover); }
.bell-item.unread { background: var(--accent-soft); }
.bell-item .t { font-weight: 600; font-size: .88rem; }
.bell-item.unread .t { font-weight: 700; }
.bell-item .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--side); color: var(--ink-2); }
.bell-item .ic.k-contestacao { background: var(--warn-soft); color: var(--warn); }
.bell-item .ic.k-contestacao_resposta, .bell-item .ic.k-monitoria { background: var(--ok-soft); color: var(--ok); }
.bell-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.note-card.inbox-pop { cursor: default; max-width: 380px; }
.note-card.inbox-pop.urgent { border-left-color: var(--warn); }
.note-card.inbox-pop.urgent .ic { background: var(--warn-soft); color: var(--warn); }
.note-card .pop-body { margin-top: 6px; max-height: 160px; overflow: auto; color: var(--ink-2); }
.note-card .pop-body p { margin: 0 0 6px; }
.note-card .pop-body blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--line-2); }

/* listas de seleção */
.pick-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; }
.pick-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.pick-row:last-child { border-bottom: 0; }
.pick-person { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 6px; border-radius: 8px; cursor: pointer; color: inherit; font: inherit; }
.pick-person:hover { background: var(--hover); }
.seg-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.seg-choice .check { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; flex: 1; min-width: 200px; }
.seg-choice .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* reuniões gravadas */
.meet-filters .field label { font-size: .78rem; }
.theme-chip { border: 1px solid var(--line-2); cursor: pointer; padding: 5px 12px; background: var(--panel); color: var(--ink-2); font: inherit; font-size: .84rem; }
.theme-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.meet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.meet-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.meet-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.meet-thumb { position: relative; aspect-ratio: 16/9; background: #111; }
.meet-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.meet-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.meet-thumb .play .i { width: 46px; height: 46px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.meet-thumb .tag { position: absolute; top: 8px; left: 8px; }
.meet-thumb .tag.new { background: var(--accent); color: #fff; }
.meet-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.meet-info b { font-size: .98rem; }
.meet-theme { color: var(--accent); font-weight: 600; }
.meet-month { font-weight: 700; color: var(--ink-2); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.player-wrap { background: #000; border-radius: var(--radius); overflow: hidden; margin: 0 auto; transition: max-width .25s; max-width: 100%; }
.player-wrap.compact { max-width: 720px; }
.player-wrap video { width: 100%; max-height: 78vh; display: block; aspect-ratio: 16/9; background: #000; }
.player-tools { margin: 12px 0 16px; gap: 8px; }
.kpi-mini { font-size: .92rem; } .kpi-mini b { font-size: 1.6rem; }
.vid-chosen { gap: 10px; flex-wrap: nowrap; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.vid-chosen video { width: 110px; aspect-ratio: 16/9; border-radius: 6px; background: #000; object-fit: cover; }

/* provedor: avisos e ficha rápida */
.prov-notices { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.pnotice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--info-line); background: var(--accent-soft); }
.pnotice .ic { color: var(--accent); margin-top: 2px; }
.pnotice.warn { border-color: var(--warn-line); background: var(--warn-soft); } .pnotice.warn .ic { color: var(--warn); }
.pnotice.bad { border-color: var(--bad-line); background: var(--bad-soft); } .pnotice.bad .ic { color: var(--bad); }
.pnotice .prose p { margin: 4px 0 0; }
.prov-quick { display: grid; gap: 16px; margin-bottom: 20px; }
.prov-quick.two { grid-template-columns: 2fr 1fr; align-items: start; }
.fact-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 12px 0 6px; }
.fact-cat:first-of-type { margin-top: 0; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.fact { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 6px; padding: 9px 10px 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.fact .l { font-size: .78rem; color: var(--ink-3); grid-column: 1; }
.fact .v { font-weight: 650; grid-column: 1; word-break: break-word; white-space: pre-wrap; }
.fact .copy { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.upd-row { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px dashed var(--line); color: inherit; text-decoration: none; }
.upd-row:last-child { border-bottom: 0; }
.upd-row:hover b { color: var(--accent); }

/* bate-papo */
.content:has(.chat) { overflow: hidden; }
.chat { display: grid; grid-template-columns: 320px 1fr; height: 100%; background: var(--panel); }
.chat-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 14px 10px 0; gap: 10px; }
.chat-side-head { display: flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 1.05rem; }
.chat-rooms { overflow: auto; flex: 1; margin: 0 -10px; padding: 0 6px 10px; }
.chat-room { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.chat-room:hover { background: var(--hover); }
.chat-room.on { background: var(--accent-soft); }
.chat-room .cr-mid { flex: 1; min-width: 0; }
.chat-room b { font-weight: 650; font-size: .92rem; }
.avatar.grp { color: #fff; } .avatar.grp .i { width: 17px; height: 17px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.chat-day { text-align: center; margin: 14px 0 8px; } .chat-day span { background: var(--side); color: var(--ink-2); font-size: .74rem; padding: 3px 10px; border-radius: 99px; text-transform: capitalize; }
.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; max-width: 100%; }
.msg.grouped { margin-top: 2px; }
.msg.mine { flex-direction: row-reverse; }
.msg-av { width: 34px; flex: none; }
.msg.mine .msg-av { display: none; }
.bubble { position: relative; max-width: min(560px, 75%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 11px 6px; font-size: .92rem; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.msg.mine .bubble { background: var(--accent); color: #fff; border-color: transparent; border-radius: 14px 14px 4px 14px; }
.msg.mine .bubble a { color: #fff; }
.bubble .who { font-size: .76rem; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.bubble .txt { white-space: normal; word-break: break-word; }
.bubble .when { display: block; text-align: right; font-size: .68rem; opacity: .7; margin-top: 2px; }
.bubble .read { color: #8fe3ff; font-weight: 700; }
.bubble.deleted { opacity: .65; font-size: .85rem; }
.msg-del { position: absolute; top: 4px; right: -30px; border: 0; background: none; color: var(--ink-3); cursor: pointer; opacity: 0; padding: 4px; }
.msg.mine .msg-del { right: auto; left: -30px; }
.msg:hover .msg-del { opacity: 1; }
.chat-img { display: block; max-width: 280px; max-height: 260px; border-radius: 10px; margin: 2px 0 4px; }
.chat-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.06); text-decoration: none; color: inherit; margin: 2px 0 4px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.chat-compose textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--ink); max-height: 140px; outline: none; }
.chat-compose textarea:focus { border-color: var(--accent); }
.chat-ro { padding: 14px; text-align: center; border-top: 1px solid var(--line); background: var(--panel); }
.chat-empty, .chat-hello { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink-2); padding: 20px; }
.chat-empty > .i, .chat-hello > .i { width: 44px; height: 44px; color: var(--ink-3); }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; }
  .chat.has-room .chat-side { display: none; } .chat:not(.has-room) .chat-main { display: none; }
  .chat-back { display: inline-grid; }
  .prov-quick.two { grid-template-columns: 1fr; }
  .bubble { max-width: 85%; }
}

/* ===================== v1.7 ===================== */
.sys-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; color: var(--ink-2); text-decoration: none; white-space: nowrap; margin-left: auto; }
.sys-pill + .bell-wrap { margin-left: 0; }
.sys-pill .dot, .sys-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.sys-pill.warn { background: var(--warn-soft); color: var(--warn); } .sys-pill.warn .dot { background: var(--warn); }
.sys-pill.bad { background: var(--bad-soft); color: var(--bad); animation: pulseBad 2s infinite; } .sys-pill.bad .dot { background: var(--bad); }
@keyframes pulseBad { 50% { box-shadow: 0 0 0 4px var(--bad-soft); } }
.sys-dot.warn { background: var(--warn); } .sys-dot.bad { background: var(--bad); }
.sys-note.bad { border-left-color: var(--bad); } .sys-note.bad .ic { background: var(--bad-soft); color: var(--bad); }
.sys-note.warn { border-left-color: var(--warn); } .sys-note.warn .ic { background: var(--warn-soft); color: var(--warn); }
.sys-note.ok { border-left-color: var(--ok); } .sys-note.ok .ic { background: var(--ok-soft); color: var(--ok); }
.bell-push { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--side); }
.nav-label .i { width: 13px; height: 13px; vertical-align: -2px; color: var(--warn); }
.fav-item { font-size: .86rem; }

/* clima e home office */
.mood-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mood-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; transition: transform .1s, border-color .1s; }
.mood-btn .e { font-size: 2.4rem; line-height: 1; }
.mood-btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mood-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.ho-hero { display: flex; gap: 14px; align-items: flex-start; }
.ho-hero > .i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.ho-steps { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--side); display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.mood-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mood-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; border-bottom: 1px solid var(--line); }
.mcol { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 4px; }
.mstack { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; gap: 1px; }
.mstack span { display: block; min-height: 2px; }
.low-row { gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: inherit; text-decoration: none; flex-wrap: nowrap; }
.low-row:hover b { color: var(--accent); }

/* artigo */
.fav-btn.on { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.art-fb { margin-top: 24px; }
.ph-bar { margin-bottom: 14px; border-color: var(--accent); background: var(--accent-soft); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ph { background: rgba(255,255,255,.18); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.ph.empty { background: rgba(255, 200, 0, .25); color: #ffe08a; font-weight: 600; }

/* fluxos */
.flow-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 14px; min-height: 30px; }
.trail-step { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 4px 10px; cursor: pointer; font: inherit; color: inherit; text-align: left; max-width: 240px; }
.trail-step b { font-size: .85rem; } .trail-step:hover { border-color: var(--accent); }
.trail-sep { color: var(--ink-3); }
.flow-node { padding: 22px 24px; border-left: 5px solid var(--accent); }
.flow-node h2 { margin: 6px 0 8px; font-size: 1.45rem; }
.flow-node.k-fim { border-left-color: var(--ok); } .flow-node.k-acao { border-left-color: var(--warn); }
.flow-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.flow-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border: 2px solid var(--line-2); border-radius: 12px; background: var(--panel); font: inherit; font-weight: 650; font-size: 1rem; color: inherit; cursor: pointer; text-align: left; }
.flow-opt:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.flow-end { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); }
.flow-end > .i { color: var(--ok); width: 26px; height: 26px; }
.flow-ed { margin-bottom: 12px; border-left: 4px solid var(--accent); }
.flow-ed.orphan { border-left-color: var(--warn); }
.node-id { min-width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.flow-card b .i { color: var(--accent); }

/* gestão de conteúdo e glossário */
.sug { margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.sug-text { white-space: pre-wrap; padding: 10px 12px; border-radius: 8px; background: var(--side); font-size: .92rem; }
.tab .count { margin-left: 4px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.az a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.gl-letter { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin: 18px 0 8px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.gl-term .term { font-size: 1.05rem; }
.gl-term .prose p { margin: 4px 0 0; }

/* destaques */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rank-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); color: inherit; text-decoration: none; }
.rank-row:last-child { border: 0; } .rank-row:hover b { color: var(--accent); }
.rank-row b.ellipsis { font-weight: 650; font-size: .92rem; }
.medal { width: 28px; text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--ink-3); }
.rank-v { font-size: 1rem; white-space: nowrap; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.recog { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.badge-big { font-size: 2.4rem; line-height: 1; }
.recog-title { font-weight: 700; color: var(--accent); margin: 6px 0 2px; }
.badge-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.badge-pick button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: inherit; text-align: left; }
.badge-pick button span { font-size: 1.4rem; } .badge-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.badge-shelf { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--warn-soft); font-size: .84rem; font-weight: 600; }
.badge-chip span { font-size: 1.1rem; }

/* status */
.status-hero { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 16px; background: var(--ok-soft); }
.status-hero > .i { width: 34px; height: 34px; color: var(--ok); }
.status-hero.warn { background: var(--warn-soft); } .status-hero.warn > .i { color: var(--warn); }
.status-hero.bad { background: var(--bad-soft); } .status-hero.bad > .i { color: var(--bad); }
.status-hero b { font-size: 1.1rem; }
.sys-list { display: flex; flex-direction: column; gap: 8px; }
.sys-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.sys-row .sys-dot { width: 12px; height: 12px; }
.sys-row.warn .sys-dot { background: var(--warn); } .sys-row.bad .sys-dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.ev-row { gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: nowrap; }

/* enquetes */
.poll { padding: 4px 0 10px; border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.poll:last-child { border: 0; margin: 0; padding-bottom: 0; }
.poll-q { font-weight: 650; margin-bottom: 6px; }
.poll-opt { display: flex; padding: 4px 0; }
.poll-res { margin-bottom: 6px; } .poll-res .meter { margin-top: 3px; height: 6px; }
.poll-res.mine .meter > span { background: var(--ok); }
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 860px) { .hide-sm { display: none; } .mood-btn .e { font-size: 2rem; } .flow-opts { grid-template-columns: 1fr; } }

/* ===================== v1.8 ===================== */
/* bate-papo flutuante (estilo Messenger) */
#msgr { position: fixed; right: 20px; bottom: 20px; z-index: 46; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
#msgr > * { pointer-events: auto; }
#msgr.on-chat-page { display: none; }
.msgr-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.22); position: relative; transition: transform .15s; flex: none; }
.msgr-fab:hover { transform: scale(1.06); } .msgr-fab .i { width: 26px; height: 26px; }
.msgr-fab.on { background: var(--ink); }
.msgr-fab .badge-n { top: -2px; right: -2px; }
.msgr-panel { position: fixed; right: 20px; bottom: 90px; width: 340px; height: min(560px, calc(100vh - 120px)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
.msgr-panel.hidden { display: none; }
.msgr-head { display: flex; align-items: center; gap: 4px; padding: 12px 10px 8px 16px; }
.msgr-head b { font-size: 1.15rem; }
.msgr-status { border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); color: var(--ink); font: inherit; font-size: .76rem; padding: 3px 6px; margin-right: 2px; }
.msgr-search { margin: 0 12px 8px; display: flex; align-items: center; gap: 6px; background: var(--side); border-radius: 99px; padding: 7px 12px; }
.msgr-search input { border: 0; background: none; outline: none; font: inherit; font-size: .88rem; flex: 1; color: var(--ink); }
.msgr-search .i { width: 15px; height: 15px; color: var(--ink-3); }
.msgr-tabs { display: flex; gap: 4px; padding: 0 12px 6px; }
.msgr-tabs button { flex: 1; border: 0; background: none; padding: 7px 8px; border-radius: 99px; font: inherit; font-size: .84rem; font-weight: 650; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.msgr-tabs button.on { background: var(--accent-soft); color: var(--accent); }
.on-count { font-size: .72rem; font-weight: 600; color: var(--ok); }
.msgr-list { flex: 1; overflow: auto; padding: 0 6px 8px; }
.msgr-sec { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 10px 4px; }
.msgr-sec span { font-weight: 600; }
.msgr-person { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 10px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.msgr-person:hover { background: var(--hover); }
.msgr-person.unread b { font-weight: 800; }
.mp-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mp-mid b { font-weight: 600; font-size: .92rem; }
.mp-mid .on { color: var(--ok); }
.pav { position: relative; flex: none; display: inline-flex; }
.pav .avatar { width: 38px; height: 38px; }
.pav.sm .avatar { width: 30px; height: 30px; font-size: .72rem; }
.pdot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--panel); }
.pav.sm .pdot { width: 10px; height: 10px; border-width: 2px; }
.msgr-foot { font-size: .72rem; color: var(--ink-3); padding: 8px 14px; border-top: 1px solid var(--line); display: flex; gap: 6px; align-items: flex-start; }
.msgr-foot .i { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.msgr-wins { display: flex; gap: 12px; align-items: flex-end; margin-right: 0; }
.msgr-win { width: 320px; height: 430px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px 12px 0 0; box-shadow: 0 10px 34px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; margin-bottom: -20px; }
.msgr-win.min { height: 52px; }
.msgr-win.min .mw-body, .msgr-win.min .mw-compose, .msgr-win.min .mw-ro { display: none; }
.msgr-win.min [data-min] .i { transform: rotate(-90deg); }
.msgr-win.blink .mw-head { background: var(--accent); color: #fff; }
.msgr-win.blink .mw-head .tiny { color: #fff; }
.mw-head { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 10px; border-bottom: 1px solid var(--line); cursor: default; }
.mw-head [data-min] .i { transform: rotate(90deg); transition: transform .15s; }
.mw-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mw-title b { font-size: .92rem; } .mw-title .tiny { color: var(--ink-3); }
.mw-head .icon-btn { width: 28px; height: 28px; } .mw-head .icon-btn .i { width: 16px; height: 16px; }
.mw-body { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.mw-hello { margin: auto; color: var(--ink-3); font-size: .86rem; text-align: center; }
.mw-msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.mw-msg.g { margin-top: 1px; }
.mw-msg.mine { align-items: flex-end; }
.mw-who { font-size: .7rem; color: var(--ink-3); margin: 0 0 1px 10px; }
.mw-b { max-width: 82%; padding: 7px 11px; border-radius: 16px; background: var(--side); font-size: .88rem; word-break: break-word; }
.mw-msg.mine .mw-b { background: var(--accent); color: #fff; } .mw-msg.mine .mw-b a { color: #fff; }
.mw-b img { max-width: 200px; max-height: 180px; border-radius: 10px; display: block; }
.mw-b.del { opacity: .6; }
.mw-compose { display: flex; align-items: flex-end; gap: 4px; padding: 8px; border-top: 1px solid var(--line); }
.mw-compose textarea { flex: 1; resize: none; border: 0; border-radius: 18px; background: var(--side); padding: 8px 12px; font: inherit; font-size: .88rem; outline: none; color: var(--ink); max-height: 96px; }
.mw-compose .send { color: var(--accent); }
.mw-ro { padding: 10px; text-align: center; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  #msgr { right: 14px; bottom: 14px; }
  .msgr-panel { right: 8px; left: 8px; width: auto; bottom: 82px; height: calc(100vh - 150px); }
  .msgr-wins { position: fixed; inset: auto 0 0 0; }
  .msgr-win { width: 100%; height: 70vh; margin: 0; }
}
/* auditoria do bate-papo */
.audit-split { display: grid; grid-template-columns: 360px 1fr; gap: 14px; align-items: start; }
.audit-rooms { max-height: 72vh; overflow: auto; padding: 6px; }
.audit-room { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 10px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.audit-room:hover { background: var(--hover); } .audit-room.on { background: var(--accent-soft); }
.audit-room b { font-weight: 600; font-size: .9rem; }
.audit-view { min-height: 420px; display: flex; flex-direction: column; }
.audit-head { padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.audit-msgs { max-height: 64vh; overflow: auto; padding: 10px 16px; }
.audit-msg { display: grid; grid-template-columns: 44px 140px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.audit-msg b { font-weight: 600; } .audit-msg.del .txt { color: var(--bad); }
@media (max-width: 900px) { .audit-split { grid-template-columns: 1fr; } .audit-msg { grid-template-columns: 40px 1fr; } .audit-msg .txt { grid-column: 1 / -1; } }
/* links rápidos */
.ql-item { font-size: .86rem; } .ql-item .i:first-child { width: 15px; height: 15px; color: var(--ink-3); }
.nav-ext { width: 12px !important; height: 12px !important; margin-left: auto; opacity: .45; }
.ql-row { display: flex; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.ql-row b, .ql-row span.tiny { display: block; } .ql-drag { color: var(--ink-3); }
.ql-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: flex-start; } .ql-form .input { flex: 1; min-width: 160px; }
/* acessos do provedor */
.prov-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 16px; }
.pl-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: inline-flex; gap: 5px; align-items: center; margin-right: 4px; }
.pl-btn { display: inline-flex; flex-direction: column; position: relative; padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: inherit; text-decoration: none; min-width: 150px; box-shadow: var(--shadow); }
.pl-btn:hover { border-color: var(--accent); } .pl-btn:hover b { color: var(--accent); }
.pl-btn b { font-size: .9rem; } .pl-btn > .i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-3); }
/* editor do menu */
.menu-ed { display: flex; flex-direction: column; gap: 6px; }
.me-row { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.me-row.off { opacity: .5; }
.me-row .input { padding: 6px 10px; flex: 1; min-width: 0; }
.me-arrows { display: flex; } .me-arrows .icon-btn { width: 26px; height: 26px; } .flipv .i { transform: rotate(180deg); }
.me-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); flex: none; }
.me-who { white-space: nowrap; min-width: 120px; justify-content: center; }
.me-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; }
.me-add .input { flex: 1; min-width: 150px; }

/* ===================== v1.9 — manual do provedor ===================== */
.manual-page { padding-top: 20px; }
.mhero { --pc: var(--accent); display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; border-radius: 18px; color: #fff; margin-bottom: 14px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--pc) 55%, #fff 0%) 0%, var(--pc) 55%, color-mix(in srgb, var(--pc) 75%, #000) 100%); }
.mhero .kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .85; }
.mhero h1 { margin: 2px 0 2px; font-size: 1.9rem; } .mhero h1 a { color: #fff; text-decoration: none; }
.mhero p { margin: 0; opacity: .9; max-width: 640px; }
.mhero-search { position: relative; flex: 1; min-width: 260px; max-width: 460px; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.mhero-search input { border: 0; outline: none; flex: 1; font: inherit; font-size: .95rem; background: none; color: #1d1f24; min-width: 0; }
.mhero-search > .i { color: #8a8f98; }
.mhero-search kbd { font: inherit; font-size: .72rem; border: 1px solid #d6d8dd; border-radius: 5px; padding: 0 6px; color: #8a8f98; }
.mq-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.2); max-height: 420px; overflow: auto; z-index: 30; padding: 6px; }
.mq-res.hidden { display: none; }
.mq-it { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.mq-it.sel, .mq-it:hover { background: var(--accent-soft); }
.mq-it b { font-weight: 600; font-size: .9rem; } .mq-it .tiny { display: block; }
.mq-ic { width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.1rem; background: var(--side); border-radius: 8px; flex: none; }
.mq-empty { padding: 14px; }
.manual { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.mnav { position: sticky; top: 12px; max-height: calc(100vh - 110px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.mn-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 12px 10px 4px; display: flex; justify-content: space-between; }
.mn-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.25; }
.mn-item:hover { background: var(--hover); text-decoration: none; }
.mn-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.mn-item.in:not(.on) { font-weight: 600; }
.mn-item > .i { width: 17px; height: 17px; color: var(--ink-3); flex: none; } .mn-item.on > .i { color: var(--accent); }
.mn-emo { width: 22px; text-align: center; flex: none; font-size: 1.05rem; }
.mn-name { flex: 1; min-width: 0; }
.mn-c { font-size: .72rem; color: var(--ink-3); background: var(--side); border-radius: 99px; padding: 1px 7px; }
.mn-lock { width: 12px !important; height: 12px !important; }
.mn-sub { margin-left: 18px; padding-left: 8px; border-left: 2px solid var(--line); }
.mn-sub .mn-item { font-size: .86rem; padding: 6px 8px; }
.mmain { min-width: 0; }
.m-head { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 16px; }
.m-head h1 { margin: 0; font-size: 1.7rem; } .m-head p { margin: 4px 0 0; }
.m-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.m-emo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); font-size: 1.4rem; flex: none; }
.m-emo.big { width: 58px; height: 58px; font-size: 1.9rem; border-radius: 16px; }
.m-sec-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; margin: 22px 0 10px; }
.m-sec-h > .i { color: var(--accent); }
.m-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.m-topic { display: flex; gap: 12px; align-items: flex-start; padding: 14px; color: inherit; text-decoration: none; transition: transform .1s, border-color .1s, box-shadow .1s; }
.m-topic:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.07); text-decoration: none; }
.m-topic b { display: block; font-size: .98rem; } .m-topic .small, .m-topic .tiny { display: block; margin-top: 3px; }
.m-guide { border-left: 4px solid var(--accent); }
.m-guide .prose h2 { font-size: 1.1rem; margin: 16px 0 6px; } .m-guide .prose h2:first-child { margin-top: 0; }
.empty-guide { width: 100%; text-align: left; cursor: pointer; color: var(--ink-2); font: inherit; border-style: dashed; background: none; display: flex; gap: 8px; align-items: center; }
.m-arts { display: flex; flex-direction: column; gap: 8px; }
.m-art { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; text-decoration: none; }
.m-art:hover { border-color: var(--accent); text-decoration: none; } .m-art:hover b { color: var(--accent); }
.m-art b { display: block; } .m-art .small, .m-art .tiny { display: block; margin-top: 2px; }
.m-art-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--side); color: var(--ink-2); flex: none; }
.m-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-it { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.faq-it summary { list-style: none; display: flex; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.faq-it summary::-webkit-details-marker { display: none; }
.faq-it summary span { flex: 1; }
.faq-chev { transition: transform .15s; color: var(--ink-3); flex: none; }
.faq-it[open] .faq-chev { transform: rotate(90deg); color: var(--accent); }
.faq-it[open] { border-color: var(--accent); }
.faq-it .prose { padding: 0 16px 14px 42px; }
.m-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.m-pager a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; color: inherit; text-decoration: none; }
.m-pager a:hover { border-color: var(--accent); text-decoration: none; }
.m-pager a.nx { justify-content: flex-end; text-align: right; grid-column: 2; }
.m-pager b { display: block; } .m-pager .tiny { display: block; }
.emo-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.emo-pick button { width: 38px; height: 38px; font-size: 1.2rem; border: 2px solid transparent; background: var(--side); border-radius: 9px; cursor: pointer; }
.emo-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.flash { animation: flash 1.6s ease 2; } @keyframes flash { 50% { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); } }
@media (max-width: 960px) {
  .manual { grid-template-columns: 1fr; }
  .mnav { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; flex-wrap: nowrap; }
  .mnav .mn-label, .mnav .mn-sub { display: none; }
  .mnav .mn-item { flex: none; white-space: nowrap; border: 1px solid var(--line); }
  .mnav .mn-c { display: none; }
  .mhero { padding: 18px; } .mhero h1 { font-size: 1.5rem; } .mhero-search { max-width: none; }
  .m-pager { grid-template-columns: 1fr; } .m-pager a.nx { grid-column: 1; }
}
details.pnotice { display: block; padding: 0; }
details.pnotice summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; flex-wrap: wrap; }
details.pnotice summary::-webkit-details-marker { display: none; }
details.pnotice > .prose, details.pnotice > .btn { margin: 0 14px 10px 44px; display: block; }
details.pnotice .pn-chev { transition: transform .15s; color: var(--ink-3); } details.pnotice[open] .pn-chev { transform: rotate(90deg); }
.prov-notices { gap: 6px; }
.sub-emo { margin-right: 6px; font-size: .9rem; }

/* ===================== v1.9.1 — menu recolhível e mídia nas orientações ===================== */
.side-head { position: relative; }
.side-toggle { margin-left: auto; width: 30px; height: 30px; color: var(--ink-3); }
.side-toggle:hover { color: var(--ink); }
.shell { transition: grid-template-columns .2s ease; }
@media (min-width: 861px) {
  .shell.side-collapsed { grid-template-columns: 68px 1fr; }
  .side-collapsed .side-head { flex-direction: column; padding: 14px 8px 8px; gap: 6px; }
  .side-collapsed .side-head .brand-name { display: none; }
  .side-collapsed .side-toggle { margin: 0; }
  .side-collapsed .side-scroll { padding: 4px 8px 12px; overflow-x: hidden; }
  .side-collapsed .nav-item { justify-content: center; padding: 9px 0; position: relative; }
  .side-collapsed .nav-item > span:not(.prov-dot):not(.nav-badge), .side-collapsed .nav-item > .chev, .side-collapsed .nav-item .nav-ext { display: none; }
  .side-collapsed .nav-item .prov-dot { width: 12px; height: 12px; }
  .side-collapsed .nav-sub, .side-collapsed .nav-label, .side-collapsed #qlSec .nav-label { display: none; }
  .side-collapsed .nav-label + .nav-item, .side-collapsed .nav-label { margin-top: 0; }
  .side-collapsed .nav-badge { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; font-size: .62rem; }
  .side-collapsed .fav-item, .side-collapsed .ql-item { display: none; }
  .side-collapsed .side-foot .nav-item span { display: none; }
  .side-collapsed .side-scroll .nav-item:hover::after { content: attr(title); position: fixed; left: 72px; background: var(--ink); color: var(--bg); font-size: .8rem; padding: 4px 10px; border-radius: 6px; white-space: nowrap; z-index: 60; pointer-events: none; }
}
.side-toggle .i.flip { transition: transform .2s; transform: rotate(180deg); }
@media (max-width: 860px) { .side-toggle { display: none; } }
.media-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.prose img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0; }
.prose video { max-width: 100%; border-radius: 10px; background: #000; margin: 6px 0; display: block; }
.prose audio { width: 100%; max-width: 480px; margin: 6px 0; display: block; }

@media (min-width: 861px) { .shell.side-collapsed .side-toggle .i.flip { transform: rotate(0deg); } }

/* v1.9.2 — menu recolhido: o conteúdo central ganha a largura liberada */
.page, .home, .article, .search, .nb-paper, .welcome-banner { transition: max-width .25s ease, grid-template-columns .25s ease; }
@media (min-width: 861px) {
  .side-collapsed .page { max-width: 1320px; }
  .side-collapsed .page.narrow { max-width: 1000px; }
  .side-collapsed .wide-page { max-width: 1720px; }
  .side-collapsed .home { grid-template-columns: minmax(0, 720px) 340px; gap: 36px; }
  .side-collapsed .home.no-feed { grid-template-columns: minmax(0, 860px); }
  .side-collapsed .welcome-banner { max-width: 1096px; }
  .side-collapsed .article { max-width: 960px; }
  .side-collapsed .search { max-width: 820px; }
  .side-collapsed .nb-paper { max-width: 1040px; }
  .side-collapsed .manual { grid-template-columns: 290px minmax(0, 1fr); }
  .side-collapsed .audit-split { grid-template-columns: 400px 1fr; }
}
@media (min-width: 861px) and (max-width: 1100px) { .side-collapsed .home { grid-template-columns: minmax(0, 720px); } }

/* ===================== v1.10 — logo da empresa ===================== */
.logo.brand.wide { width: fit-content; height: 34px; max-width: 168px; border-radius: 6px; display: block; }
.logo.brand.wide img { width: auto; height: 100%; max-width: 168px; object-fit: contain; object-position: left center; display: block; }
.logo.brand-ini { font-weight: 700; font-size: .9rem; letter-spacing: .02em; background: var(--accent); color: #fff; }
.side-head .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-head > a { min-width: 0; }
.logo-only .brand-name, .logo-only .login h1 { display: none; }
.login .logo.brand.wide { width: fit-content; height: 60px; max-width: 300px; border-radius: 8px; }
.login .logo.brand.wide img { max-width: 300px; }
.login .logo.brand-ini { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 16px; }
.terms-card .logo.brand.wide { height: 40px; }
@media (min-width: 861px) {
  .side-collapsed .logo.brand.wide { width: 34px; height: 34px; max-width: 34px; }
  .side-collapsed .logo.brand.wide img { width: 34px; height: 34px; max-width: none; object-fit: cover; object-position: left center; }
}
/* cartão de identidade e prévias */
.brand-now { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.brand-now .logo.pv-big { width: 72px; height: 72px; border-radius: 14px; background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0/14px 14px; padding: 6px; }
.brand-now .logo.pv-big.wide { width: fit-content; height: 72px; max-width: 280px; }
.brand-now .logo.pv-big.wide img { max-width: 268px; }
.brand-now .logo.brand-ini.pv-big { background: var(--accent); font-size: 1.6rem; padding: 0; }
.brand-pv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.brand-pv .tiny { margin-bottom: 6px; }
.pv-side { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); min-width: 0; }
.pv-side.pv-light { background: #f7f6f3; color: #1d1d1f; }
.pv-side.pv-dark { background: #17181c; color: #eceef2; border-color: #2a2c33; }
.pv-name { font-weight: 700; font-size: 1.05rem; color: var(--accent); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-dark .pv-name { color: #8fb0ff; }
.pv-chev { margin-left: auto; opacity: .45; font-size: 1.2rem; }
.pv-rail { width: 68px; justify-content: center; padding: 0; }
.pv-rail .logo.brand.wide { width: 34px; height: 34px; max-width: 34px; }
.pv-rail .logo.brand.wide img { width: 34px; height: 34px; max-width: none; object-fit: cover; object-position: left center; }
.pv-login { background: #fff; color: #1d1d1f; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pv-login .logo { margin: 0 !important; }
.pv-login .logo.brand.wide { height: 40px; max-width: 200px; } .pv-login .logo.brand.wide img { max-width: 200px; }
.pv-login .logo.brand:not(.wide), .pv-login .logo.brand-ini { width: 44px !important; height: 44px !important; font-size: 1.05rem; }
.pv-lname { font-weight: 700; font-size: 1.1rem; }
.pv-bar { height: 10px; width: 100%; border-radius: 5px; background: #eceae4; }
.pv-btn { height: 14px; width: 40%; border-radius: 6px; background: var(--accent); }
