:root {
  --bg: #0b101c;
  --bg-2: #121a2b;
  --panel: #18223a;
  --panel-2: #1f2b47;
  --line: #28354f;
  --txt: #eaeffa;
  --muted: #8c98b4;
  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --green: #2ecc71;
  --red: #ff5d6c;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(0,0,0,.4);
  --ring: 0 0 0 3px rgba(91,140,255,.22);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, Arial, sans-serif;
  color: var(--txt);
  background: radial-gradient(1200px 800px at 80% -10%, #1b2745 0%, var(--bg) 55%);
  overflow: hidden;
  user-select: none;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.app { display: flex; height: 100vh; }

.sidebar {
  width: 232px;
  background: linear-gradient(180deg, var(--bg-2), #0f1525);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px; flex-shrink: 0; }
.logo {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px rgba(91,140,255,.42);
}
.brand-title { font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: -2px; }

.menu { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.nav-item {
  position: relative;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: none; color: var(--muted);
  padding: 10px 14px; border-radius: 11px; cursor: pointer;
  font-size: 14px; font-weight: 600; text-align: left;
  transition: background .18s, color .18s, transform .12s;
}
.nav-item:hover { background: rgba(91,140,255,.08); color: var(--txt); }
.nav-item:active { transform: scale(.985); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(91,140,255,.2), rgba(139,92,246,.18));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(91,140,255,.32);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.ni-ico { font-size: 17px; width: 22px; text-align: center; }

.side-foot { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; border-bottom: 1px solid var(--line);
  background: rgba(13,18,32,.55);
  backdrop-filter: blur(8px);
}
.topbar h1 { margin: 0; font-size: 22px; font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.clock { text-align: right; line-height: 1.05; }
.clock-time { font-size: 22px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(135deg, #cfe0ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock-date { display: flex; flex-direction: column; align-items: flex-end; text-transform: capitalize; }
.clock-wd { font-size: 11px; color: var(--muted); }
.clock-dm { font-size: 12.5px; font-weight: 600; }

.view { display: none; flex: 1; overflow-y: auto; padding: 22px 28px; }
.view.active { display: block; animation: fadeUp .22s ease; }

.toolbar { margin-bottom: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: none; border-radius: 11px;
  padding: 11px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(91,140,255,.35); transition: transform .15s, box-shadow .15s, filter .15s;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91,140,255,.45); filter: brightness(1.06); }
.primary-btn:active { transform: translateY(0); }
.ghost-btn {
  background: var(--panel); color: var(--txt); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ghost-btn:hover { background: var(--panel-2); border-color: rgba(91,140,255,.45); }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), rgba(24,34,58,.7));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; cursor: pointer; text-align: center;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.card:hover { background: var(--panel-2); transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(91,140,255,.55); }
.card .c-ico { font-size: 34px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.card .c-nome { margin-top: 10px; font-weight: 700; font-size: 14px; }
.card .c-tipo { font-size: 11px; color: var(--muted); margin-top: 2px; }
.card .c-del {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
  border-radius: 8px; border: none; background: rgba(255,93,108,.15); color: var(--red);
  cursor: pointer; opacity: 0; transition: .15s; font-size: 14px; line-height: 1;
}
.card:hover .c-del { opacity: 1; }
.card .c-del:hover { background: var(--red); color: #fff; }

.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.note {
  background: #f7e98e; color: #2c2a18; border-radius: 14px; padding: 14px;
  min-height: 150px; box-shadow: 0 8px 22px rgba(0,0,0,.28); position: relative; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.note:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.34); }
.note textarea {
  flex: 1; background: transparent; border: none; resize: none; outline: none;
  font-family: inherit; font-size: 14px; color: inherit; line-height: 1.5;
}
.note .n-del {
  position: absolute; top: 6px; right: 6px; border: none; background: rgba(0,0,0,.08);
  border-radius: 7px; width: 22px; height: 22px; cursor: pointer; font-size: 13px;
}
.note .n-del:hover { background: rgba(0,0,0,.2); }
.note .n-color { display: flex; gap: 5px; margin-top: 8px; }
.note .swatch { width: 16px; height: 16px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(0,0,0,.15); transition: transform .12s; }
.note .swatch:hover { transform: scale(1.25); }

.tarefa-add input {
  flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 11px; padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.tarefa-add input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.tasks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.task {
  display: flex; align-items: center; gap: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
.task:hover { border-color: rgba(91,140,255,.35); }
.task input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--green); }
.task .t-txt { flex: 1; font-size: 14.5px; }
.task.done .t-txt { text-decoration: line-through; color: var(--muted); }
.task .t-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.task .t-del:hover { color: var(--red); }

.bloco-bar { gap: 10px; }
.bloco-bar input {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 11px; padding: 10px 14px; font-size: 14px; outline: none; width: 240px;
}
.bloco-status { margin-left: auto; }
.bloco-area {
  width: 100%; height: calc(100vh - 230px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; color: var(--txt); padding: 18px; font-size: 15px; line-height: 1.6;
  font-family: 'Cascadia Code', 'Consolas', 'Segoe UI', monospace; outline: none; resize: none;
  transition: border-color .15s, box-shadow .15s;
}
.bloco-area:focus { border-color: var(--accent); box-shadow: var(--ring); }

.empty { color: var(--muted); padding: 40px; text-align: center; font-size: 14px; display: none; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,8,16,.7); backdrop-filter: blur(5px);
  display: grid; place-items: center; z-index: 50;
  animation: fadeIn .15s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  width: 440px; max-width: 92vw; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
  animation: popIn .18s ease;
}
.modal h2 { margin: 0 0 18px; font-size: 19px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: var(--ring); }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

#modal-generico .modal { width: 920px; max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column; }
#modal-generico h2 { flex: 0 0 auto; }
#modal-generico #mg-campos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 0; align-content: start; padding-right: 6px; }
#modal-generico #mg-campos .mg-full { grid-column: 1 / -1; }
#modal-generico #mg-campos .mg-check { display: flex; align-items: center; }
#modal-generico .modal-actions { flex: 0 0 auto; margin-top: 16px; }
@media (max-width: 980px) { #modal-generico #mg-campos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { #modal-generico #mg-campos { grid-template-columns: 1fr; } }

#modal-user .modal { display: flex; flex-direction: column; max-height: 92vh; overflow: hidden; }
#modal-user h2 { flex: 0 0 auto; }
#modal-user .mu-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; }
#modal-user .mu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px; align-content: start; }
#modal-user .mu-grid .mu-full { grid-column: 1 / -1; }
#modal-user .modal-actions { flex: 0 0 auto; }
@media (max-width: 980px) { #modal-user .mu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { #modal-user .mu-grid { grid-template-columns: 1fr; } }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid rgba(91,140,255,.4); color: var(--txt);
  padding: 12px 22px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; z-index: 60;
  animation: fadeUp .2s ease;
}
.toast.hidden { display: none; }

.login-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(1000px 700px at 70% -10%, #1b2745 0%, var(--bg) 60%);
}
.login-card {
  width: 380px; max-width: 92vw; background: rgba(18,26,43,.92); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); text-align: center;
  backdrop-filter: blur(8px);
  animation: popIn .25s ease;
}
.login-logo {
  width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(91,140,255,.45);
}
.login-card h2 { margin: 0 0 4px; font-size: 21px; }
.login-sub { margin-bottom: 20px; }
.login-card .field { text-align: left; }
.login-btn { width: 100%; margin-top: 6px; padding: 13px; }
.login-erro { color: var(--red); font-size: 13px; min-height: 18px; margin: 6px 0; }
.login-switch { display: flex; justify-content: space-between; margin-top: 16px; }
.login-switch a { color: var(--accent); font-size: 13px; text-decoration: none; }
.login-switch a:hover { text-decoration: underline; }

.scope { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-left: auto; }
.scope-btn {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: .15s;
}
.scope-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 4px 12px rgba(91,140,255,.35); }

.user-box { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--panel); border-radius: 12px; border: 1px solid var(--line); }
.user-ava {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.user-ava.tem-foto { background: var(--panel-2); overflow: hidden; }
.user-ava img { width: 100%; height: 100%; object-fit: cover; }
.user-info { min-width: 0; }
.user-nome { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-sair { font-size: 12px; color: var(--muted); text-decoration: none; }
.user-sair:hover { color: var(--red); }

.card .c-autor, .note .n-autor { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.note .n-autor { color: rgba(0,0,0,.45); }

.users-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  display: flex; align-items: center; gap: 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s;
}
.user-row:hover { border-color: rgba(91,140,255,.35); }
.user-row .ur-ava {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.user-row .ur-ava.tem-foto { background: var(--panel-2); overflow: hidden; }
.user-row .ur-ava img { width: 100%; height: 100%; object-fit: cover; }
.user-row .ur-main { flex: 1; min-width: 0; }
.user-row .ur-nome { font-weight: 700; font-size: 15px; }
.user-row .ur-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-left: 6px; }
.badge-admin { background: rgba(139,92,246,.22); color: #c4b0ff; }
.badge-off { background: rgba(255,93,108,.18); color: var(--red); }
.ur-acts { display: flex; gap: 8px; }
.ur-acts button { padding: 8px 12px; font-size: 13px; }
.icon-btn { background: var(--panel-2); border: 1px solid var(--line); color: var(--txt); border-radius: 9px; cursor: pointer; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: var(--line); border-color: rgba(91,140,255,.4); }
.icon-btn.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }

.perms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.perm { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; cursor: pointer; }
.perm input { width: 16px; height: 16px; accent-color: var(--accent); }
.perm-admin { grid-column: 1 / -1; border-color: var(--accent-2); }

.busca { background: var(--panel); border: 1px solid var(--line); color: var(--txt); border-radius: 11px; padding: 10px 14px; font-size: 14px; outline: none; width: 220px; transition: border-color .15s, box-shadow .15s; }
.busca:focus { border-color: var(--accent); box-shadow: var(--ring); }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.kcol { --kc: #5b8cff; position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--kc) 8%, var(--bg-2)), var(--bg-2) 60%); border: 1px solid var(--line); border-top: 3px solid var(--kc); border-radius: 14px; padding: 14px 12px 12px; min-height: 220px; transition: box-shadow .15s, transform .15s; }
.kcol[data-kc="0"] { --kc: #5b8cff; }
.kcol[data-kc="1"] { --kc: #f5a623; }
.kcol[data-kc="2"] { --kc: #c084fc; }
.kcol[data-kc="3"] { --kc: #2ecc71; }
.kcol-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13.5px; margin-bottom: 12px; padding: 0 2px; }
.kcol-title { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.kc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--kc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc) 22%, transparent); flex-shrink: 0; }
.kcol-head .kc-count { background: color-mix(in srgb, var(--kc) 18%, var(--panel-2)); color: var(--kc); font-weight: 700; border-radius: 20px; font-size: 11px; padding: 2px 9px; }
.kcol.drop { box-shadow: 0 0 0 2px var(--kc) inset; transform: translateY(-2px); }
.kcard { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--kc); border-radius: 11px; padding: 11px 12px; margin-bottom: 9px; cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.14); transition: box-shadow .15s, transform .15s; }
.kcard:hover { box-shadow: 0 8px 18px rgba(0,0,0,.26); transform: translateY(-2px); }
.kcard:active { cursor: grabbing; }
.kcard .kt { font-weight: 600; font-size: 13.5px; }
.kcard .kd { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kcard .kmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kcard .kautor { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kava { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700; flex: 0 0 auto; line-height: 1; overflow: hidden; }
.kava-foto { background: var(--panel-2); }
.kava-foto img { width: 100%; height: 100%; object-fit: cover; }
.kautor-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.sol-autor { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--txt); }
.sol-autor .kava { width: 22px; height: 22px; font-size: 10px; }
.sol-urg { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 10px; }
.kcard .kdel { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.kcard .kdel:hover { color: var(--red); }
.kadd { width: 100%; background: transparent; border: 1px dashed var(--line); color: var(--muted); border-radius: 9px; padding: 8px; cursor: pointer; font-size: 13px; transition: border-color .15s, color .15s; }
.kadd:hover { border-color: var(--accent); color: var(--txt); }

.avisos { display: flex; flex-direction: column; gap: 12px; }
.aviso-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent-2); border-radius: 14px; padding: 16px 18px; transition: border-color .15s; }
.aviso-card:hover { border-color: rgba(139,92,246,.45); border-left-color: var(--accent-2); }
.aviso-card .av-top { display: flex; justify-content: space-between; align-items: center; }
.aviso-card .av-titulo { font-weight: 700; font-size: 16px; }
.aviso-card .av-data { font-size: 12px; color: var(--muted); }
.aviso-card .av-texto { margin-top: 8px; font-size: 14px; line-height: 1.6; color: #ced8e8; white-space: pre-wrap; }
.aviso-card .av-autor { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.link-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.link-card:hover { background: var(--panel-2); border-color: rgba(91,140,255,.5); transform: translateY(-2px); }
.link-card .lk-ico { font-size: 22px; }
.link-card .lk-nome { font-weight: 600; font-size: 14px; }
.link-card .lk-cat { font-size: 11px; color: var(--muted); }
.link-card .lk-del { margin-left: auto; border: none; background: transparent; color: var(--muted); cursor: pointer; }
.link-card .lk-del:hover { color: var(--red); }

.docs-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s; }
.doc-row:hover { border-color: rgba(91,140,255,.35); }
.doc-row .dc-ico { font-size: 26px; }
.doc-row .dc-main { flex: 1; min-width: 0; }
.doc-row .dc-nome { font-weight: 600; font-size: 14px; }
.doc-row .dc-sub { font-size: 12px; color: var(--muted); }
.doc-row .dc-acts { display: flex; gap: 8px; }

.senhas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.senha-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s; }
.senha-card:hover { border-color: rgba(91,140,255,.35); }
.senha-card .se-serv { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.senha-card .se-linha { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.senha-card .se-linha .k { color: var(--muted); width: 54px; }
.senha-card .se-val { flex: 1; font-family: 'Cascadia Code', Consolas, monospace; }
.senha-card .mini { border: none; background: var(--panel-2); color: var(--txt); border-radius: 7px; padding: 4px 8px; cursor: pointer; font-size: 12px; }
.senha-card .mini:hover { background: var(--line); }
.senha-card .se-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.contatos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.contato-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: border-color .15s, transform .15s; }
.contato-card:hover { border-color: rgba(91,140,255,.4); transform: translateY(-2px); }
.contato-card .ct-nome { font-weight: 700; font-size: 15px; }
.contato-card .ct-cargo { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.contato-card .ct-linha { font-size: 13px; margin-top: 4px; }
.contato-card .ct-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tabela td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tabela tr:hover td { background: rgba(91,140,255,.05); }

.rel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.rel-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.rel-card .rc-num { font-size: 30px; font-weight: 800; color: #fff; }
.rel-card .rc-lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rel-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.rel-box h3 { margin: 0 0 12px; font-size: 14px; }
.rel-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.rel-bar .rb-track { flex: 1; height: 8px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.rel-bar .rb-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; }
.rel-bar .rb-val { color: var(--muted); min-width: 28px; text-align: right; }

.dash-demo { font-size: 12px; color: #ffb74d; background: rgba(255,160,60,.12); border: 1px solid rgba(255,160,60,.25); padding: 6px 12px; border-radius: 9px; margin-left: auto; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, var(--panel), rgba(24,34,58,.75)); border: 1px solid var(--line); border-radius: 16px; padding: 18px; transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: rgba(91,140,255,.4); transform: translateY(-2px); }
.kpi-ico { font-size: 30px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.kpi-num { font-size: 24px; font-weight: 800; color: #fff; }
.kpi-lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.dash-box h3 { margin: 0 0 14px; font-size: 14.5px; }
.chart { width: 100%; height: auto; }
.chart .cax { fill: #8c98b4; font-size: 12px; }
.chart .cval { fill: #ced8e8; font-size: 10px; }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; flex-shrink: 0; }
.donut .d-c1 { fill: #fff; font-size: 22px; font-weight: 800; }
.donut .d-c2 { fill: #8c98b4; font-size: 11px; }
.legs { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.leg { display: flex; align-items: center; gap: 8px; }
.leg .dot { width: 12px; height: 12px; border-radius: 3px; }
.leg .leg-n { flex: 1; color: #ced8e8; }
.hb { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 13px; }
.hb-l { width: 120px; color: #ced8e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { flex: 1; height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.hb-f { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; }
.hb-v { width: 80px; text-align: right; color: var(--muted); }

.crm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.crm-card { background: linear-gradient(180deg, var(--panel), rgba(24,34,58,.75)); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.crm-card:hover { background: var(--panel-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.crm-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.crm-nome { font-weight: 700; font-size: 15px; }
.crm-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.crm-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.crm-autor { font-size: 11px; color: var(--muted); margin-top: 8px; }
.crm-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mini { border: none; background: var(--panel-2); color: var(--txt); border-radius: 7px; padding: 4px 8px; cursor: pointer; font-size: 12px; transition: background .15s; }
.mini:hover { background: var(--line); }
.icon-btn.share { color: #8fb2ff; }
.c-acts, .n-acts { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.share-flag { font-size: 14px; cursor: help; line-height: 1; }
.share-flag.clk { cursor: pointer; }
.cmp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); margin-bottom: 8px; }
.task .icon-btn.share, .task .share-flag { margin-left: 8px; }
.escala-card .icon-btn.share, .link-card .icon-btn.share, .escala-card .share-flag, .link-card .share-flag { margin-top: 10px; }

.modal-lg { width: 940px; max-width: 96vw; max-height: 92vh; overflow-y: auto; }
.mc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 980px) { .mc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mc-grid { grid-template-columns: 1fr; } }
.mc-grid .mc-full { grid-column: 1 / -1; }
.mc-trat { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.mc-trat h3 { margin: 0 0 12px; font-size: 15px; }
.mc-trat-add { display: flex; gap: 8px; margin-bottom: 12px; }
.mc-trat-add select { width: auto; background: var(--panel); border: 1px solid var(--line); color: var(--txt); border-radius: 10px; padding: 10px; }
.mc-trat-add input { flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--txt); border-radius: 10px; padding: 10px 13px; outline: none; }
.mc-trat-add input:focus { border-color: var(--accent); }
.mc-trat-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.trat-item { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent-2); border-radius: 10px; padding: 10px 12px; }
.trat-h { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.trat-canal { font-weight: 700; color: #c4b0ff; }
.trat-data { color: var(--muted); }
.trat-h .trat-del { margin-left: auto; border: none; background: transparent; color: var(--muted); cursor: pointer; }
.trat-h .trat-del:hover { color: var(--red); }
.trat-txt { font-size: 13.5px; margin-top: 5px; line-height: 1.5; white-space: pre-wrap; }

.escalas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.escala-card { position: relative; background: linear-gradient(180deg, var(--panel), rgba(24,34,58,.75)); border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px; text-align: center; transition: border-color .15s, transform .15s; }
.escala-card:hover { border-color: rgba(91,140,255,.4); transform: translateY(-2px); }
.escala-card .esc-del { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 8px; border: none; background: rgba(255,93,108,.15); color: var(--red); cursor: pointer; opacity: 0; transition: .15s; }
.escala-card:hover .esc-del { opacity: 1; }
.esc-foto { width: 84px; height: 84px; border-radius: 18px; margin: 0 auto 10px; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); font-size: 36px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.esc-foto img { width: 100%; height: 100%; object-fit: cover; }
.esc-nome { font-weight: 700; font-size: 15px; }
.esc-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin: 8px 0; }
.st-ativo { background: rgba(46,204,113,.18); color: #43d787; }
.st-ferias { background: rgba(91,140,255,.2); color: #8fb2ff; }
.st-off { background: rgba(255,93,108,.18); color: var(--red); }
.esc-info { font-size: 12.5px; color: var(--muted); text-align: left; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.esc-info .esc-obs { color: #ced8e8; }
.bonif-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }
.bonif-chip { font-size: 10.5px; background: rgba(46,204,113,.15); color: #2ecc71; border-radius: 20px; padding: 2px 9px; }
.esc-adv { margin-top: 12px; width: 100%; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 10px; padding: 7px; cursor: pointer; font-size: 12px; transition: .15s; }
.esc-adv:hover { border-color: var(--accent); color: var(--txt); }
.esc-adv.tem { background: rgba(255,160,60,.15); color: #ffb74d; border-color: rgba(255,160,60,.4); }
.adv-list { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; margin: 10px 0; }
.adv-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: var(--panel-2); }
.adv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.adv-tipo { font-weight: 700; color: #ffb74d; }
.adv-data { font-size: 12px; color: var(--muted); }
.adv-motivo, .adv-desc { font-size: 13px; margin-top: 4px; white-space: pre-wrap; }
.adv-acts { display: flex; gap: 8px; margin-top: 10px; }
.mg-titulo { font-weight: 700; font-size: 13px; color: var(--txt); margin: 6px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.foto-pick { display: flex; align-items: center; gap: 12px; }
.foto-prev { width: 70px; height: 70px; border-radius: 15px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); }
.foto-prev.vazio { display: none; }

.se-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.se-tag { font-size: 11px; background: var(--panel-2); color: var(--muted); border-radius: 20px; padding: 2px 9px; }
.se-tmp { background: rgba(255,160,60,.18); color: #ffb74d; }

.mg-field { margin-bottom: 12px; }
.mg-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.mg-field input, .mg-field select, .mg-field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.mg-field textarea { resize: vertical; min-height: 90px; }
.mg-field input:focus, .mg-field select:focus, .mg-field textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #34456a; }
::-webkit-scrollbar-track { background: transparent; }

.config-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.config-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.config-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.config-head h3 { margin: 0; font-size: 16px; }
.config-list { display: flex; flex-direction: column; gap: 8px; }
.config-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; transition: border-color .15s; }
.config-item:hover { border-color: rgba(91,140,255,.35); }
.config-item .ci-nome { font-weight: 600; }
.config-item .ci-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.config-item .ci-acts { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 900px) { .config-cols { grid-template-columns: 1fr; } }

.header-widgets { display: flex; gap: 10px; flex: 1 1 auto; min-width: 0; margin-right: 16px; align-items: stretch; }
.hw-conc { display: flex; gap: 10px; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: thin; padding-bottom: 2px; }
.hw-conc.reordenavel .hw-card { cursor: grab; }
.hw-conc.reordenavel .hw-card:active { cursor: grabbing; }
.hw-card.drag-origem { opacity: .4; }
.hw-card.drag-alvo { box-shadow: 0 0 0 2px var(--accent); }
.hw-fixo { display: flex; gap: 10px; flex-shrink: 0; }
.hw-card { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 8px 12px; flex-shrink: 0; transition: border-color .15s; }
.hw-card:hover { border-color: rgba(91,140,255,.4); }
.hw-head { display: flex; align-items: center; gap: 10px; }
.hw-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.hw-logo-vazio { display: flex; align-items: center; justify-content: center; background: var(--panel-2); font-size: 18px; }
.hw-body { display: flex; flex-direction: column; gap: 2px; }
.hw-nome { font-size: 12px; font-weight: 700; color: var(--txt); margin-bottom: 2px; white-space: nowrap; }
.hw-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.3; }
.hw-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.hw-lbl { color: var(--muted); min-width: 52px; }
.hw-val { color: var(--txt); font-weight: 600; }
.hw-val-baixo { color: #2ecc71; }
.hw-val-alto { color: #ff5d6c; }
.ci-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ci-logo-vazio { display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }

.perms-matrix { margin: 6px 0 14px; }
.mu-dep-note { font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; padding: 8px 11px; margin: 4px 0 10px; }
.mu-dep-note.hidden { display: none; }
.perms-matrix.pm-locked { opacity: .55; pointer-events: none; }
.pm-list { display: flex; flex-direction: column; gap: 4px; max-height: 42vh; overflow-y: auto; padding-right: 6px; }
.pm-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pm-mod { flex: 0 0 180px; font-size: 13px; font-weight: 600; }
.pm-acts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.pm-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; cursor: pointer; transition: color .12s, border-color .12s; }
.pm-chk:hover { color: var(--txt); border-color: rgba(91,140,255,.4); }
.pm-chk input { accent-color: var(--accent); cursor: pointer; }
.pm-glob-title { font-size: 12.5px; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.pm-globais { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-globais .perm { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.perm-admin { display: flex; align-items: center; gap: 8px; margin-top: 10px; background: rgba(139,92,246,.12); border: 1px solid var(--accent-2); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.modal-lg { width: 940px; }
.modal-lg .perms-matrix { max-height: none; }

.resumo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.resumo-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, var(--panel), rgba(24,34,58,.75)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, transform .15s; }
.resumo-card:hover { border-color: rgba(91,140,255,.4); transform: translateY(-2px); }
.rs-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.rs-val { font-size: 19px; font-weight: 800; }
.rs-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chk-inline { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chk-inline input { accent-color: var(--accent); }

.tab-list { display: flex; flex-direction: column; gap: 8px; }
.tab-row { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; transition: border-color .15s; }
.tab-row:hover { border-color: rgba(91,140,255,.35); }
.tab-row.tr-alerta { border-color: var(--red); background: rgba(255,93,108,.06); }
.tr-badge { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 3px 9px; white-space: nowrap; }
.tr-main { flex: 1; min-width: 0; }
.tr-t { font-weight: 600; font-size: 14px; }
.tr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tr-flag { font-size: 10.5px; background: var(--red); color: #fff; border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.tr-status { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 9px; }
.tr-status.st-pago { background: #2ecc7122; color: #2ecc71; }
.tr-status.st-pend { background: #e3a85722; color: #e3a857; }
.tr-val { font-weight: 800; font-size: 15px; white-space: nowrap; min-width: 90px; text-align: right; }
.tr-acts { display: flex; gap: 6px; }
.tr-qtd { display: flex; align-items: center; gap: 8px; }
.q-num { font-weight: 800; font-size: 16px; min-width: 28px; text-align: center; }
.q-min { font-size: 11px; color: var(--muted); }
.qbtn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--txt); cursor: pointer; font-size: 15px; line-height: 1; transition: background .12s, border-color .12s; }
.qbtn:hover { background: var(--accent); border-color: var(--accent); }
.mini.ed { color: var(--accent); }

.topbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tr-top { display: flex; align-items: center; gap: 8px; }

@keyframes sino-tremer {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70% { transform: rotate(-14deg); }
  20%, 40%, 60%, 80% { transform: rotate(14deg); }
}
@keyframes sino-badge-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 0 0 0 rgba(255,93,108,.6); }
  50% { box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 0 0 5px rgba(255,93,108,0); }
}
.sino-btn.tremendo { animation: sino-tremer .5s ease 3; transform-origin: 50% 4px; border-color: var(--red); }
.sino-badge.tem { animation: sino-badge-pulse 1.8s ease-in-out infinite; }

.hist-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; margin: 12px 0; }
.hist-item { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.hist-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.hist-main { flex: 1; min-width: 0; }
.hist-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hist-pts { font-weight: 800; font-size: 14px; }
.hist-sub2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.barra-toggle { width: 30px; height: 22px; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; cursor: pointer; transition: color .15s, border-color .15s; }
.barra-toggle:hover { color: var(--txt); border-color: var(--accent); }
body.barra-oculta .topbar { padding: 4px 28px; }
body.barra-oculta .header-widgets,
body.barra-oculta .theme-switch,
body.barra-oculta .clock { display: none; }
body.barra-oculta .topbar-right { margin-left: auto; }
.theme-switch { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.theme-btn { background: transparent; border: none; color: var(--muted); font-size: 14px; line-height: 1; font-weight: 600; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.theme-btn:hover { color: var(--txt); }
.theme-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

.brand .logo img, .login-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.login-logo { overflow: hidden; }
.brand .logo { overflow: hidden; }

.marca-row { display: flex; gap: 18px; align-items: flex-start; }
.marca-prev { width: 72px; height: 72px; border-radius: 17px; flex-shrink: 0; display: grid; place-items: center; font-size: 32px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; overflow: hidden; }
.marca-prev img { width: 100%; height: 100%; object-fit: cover; }
.marca-fields { flex: 1; }
.marca-btns { display: flex; gap: 8px; flex-wrap: wrap; }

html[data-theme="light"] {
  --bg: #eef1f6; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f3f5f9;
  --line: #e1e6ef; --txt: #1b2230; --muted: #6a7488;
  --accent: #e23b4e; --accent-2: #b51d2b; --green: #1f9d57; --red: #e23b4e;
  --shadow: 0 8px 24px rgba(20,30,60,.10);
  --ring: 0 0 0 3px rgba(226,59,78,.16);
}
html[data-theme="light"] body { background: radial-gradient(1200px 800px at 80% -10%, #fde7ea 0%, var(--bg) 55%); }
html[data-theme="light"] .sidebar { background: linear-gradient(180deg, #ffffff, #f4f6fb); }
html[data-theme="light"] .login-overlay { background: rgba(230,235,245,.7); }
html[data-theme="light"] .login-card { background: #fff; }
html[data-theme="light"] .note { color: #2c2a18; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cdd4e0; }

html[data-theme="light"] .topbar { border-bottom-color: var(--line); background: rgba(255,255,255,.7); }
html[data-theme="light"] .clock-time { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .resumo-card { border-top: 3px solid var(--accent); box-shadow: var(--shadow); background: #fff; }
html[data-theme="light"] .card, html[data-theme="light"] .crm-card, html[data-theme="light"] .tab-row, html[data-theme="light"] .config-box, html[data-theme="light"] .hw-card, html[data-theme="light"] .kpi, html[data-theme="light"] .escala-card { box-shadow: 0 4px 14px rgba(20,30,60,.06); background: #fff; }
html[data-theme="light"] .nav-item.active { background: linear-gradient(135deg, rgba(226,59,78,.14), rgba(181,29,43,.14)); color: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(226,59,78,.3); }
html[data-theme="light"] .nav-item:hover { background: #f0f2f7; color: var(--txt); }
html[data-theme="light"] .primary-btn { box-shadow: 0 6px 16px rgba(226,59,78,.28); }
html[data-theme="light"] .primary-btn:hover { box-shadow: 0 10px 22px rgba(226,59,78,.36); }
html[data-theme="light"] .logo, html[data-theme="light"] .brand .logo { box-shadow: 0 6px 16px rgba(226,59,78,.3); }
html[data-theme="light"] .topbar h1 { color: var(--accent-2); }
html[data-theme="light"] .bloco-area { background: #fff; }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { background: #fff; }
html[data-theme="light"] .modal { background: #fff; }
html[data-theme="light"] .pm-chk, html[data-theme="light"] .pm-row { background: #fff; }

html[data-theme="light"] .kpi-num { color: var(--txt); }
html[data-theme="light"] .kpi-lbl { color: var(--muted); }
html[data-theme="light"] .chart .cax { fill: #5a6478; }
html[data-theme="light"] .chart .cval { fill: #1b2230; }
html[data-theme="light"] .donut .d-c1 { fill: #1b2230; }
html[data-theme="light"] .donut .d-c2 { fill: #6a7488; }
html[data-theme="light"] .leg .leg-n { color: #1b2230; }
html[data-theme="light"] .hb-l { color: #1b2230; }
html[data-theme="light"] .dash-box h3, html[data-theme="light"] .topbar h1 { color: var(--accent-2); }
html[data-theme="light"] .rb-val, html[data-theme="light"] .hb-v { color: #5a6478; }
html[data-theme="light"] .rel-card .rc-num { color: var(--txt); }
html[data-theme="light"] .tabela tr:hover td { background: rgba(226,59,78,.04); }

.hw-card.hw-nosso { border-color: #2ecc71; box-shadow: 0 0 0 1px #2ecc7155, 0 4px 14px rgba(46,204,113,.18); background: linear-gradient(180deg, rgba(46,204,113,.08), transparent); }
.hw-tag { font-size: 9px; font-weight: 800; background: #2ecc71; color: #06301b; border-radius: 4px; padding: 1px 5px; vertical-align: middle; letter-spacing: .5px; }
.hw-sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 2px; flex-shrink: 0; }

.chart-linha { width: 100%; height: auto; }
.chart-linha .cgrid { stroke: var(--line); stroke-width: 1; }
.cleg-wrap { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.cleg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cleg-d { width: 12px; height: 3px; border-radius: 2px; }

.cmp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cmp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; border-left: 4px solid var(--line); transition: transform .15s; }
.cmp-card:hover { transform: translateY(-2px); }
.cmp-card.cmp-down { border-left-color: #2ecc71; }
.cmp-card.cmp-up { border-left-color: #ff5d6c; }
.cmp-card.cmp-eq { border-left-color: #e3a857; }
.cmp-comb { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.cmp-linha { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.cmp-linha b { color: var(--txt); }
.cmp-dif { margin-top: 8px; font-size: 12px; font-weight: 700; text-align: center; border-radius: 8px; padding: 4px 6px; }
.cmp-down .cmp-dif { background: #2ecc7122; color: #2ecc71; }
.cmp-up .cmp-dif { background: #ff5d6c22; color: #ff5d6c; }
.cmp-eq .cmp-dif { background: #e3a85722; color: #e3a857; }

.tanques-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tanque-card { background: linear-gradient(180deg, var(--panel), rgba(24,34,58,.75)); border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: border-color .15s, transform .15s; }
.tanque-card:hover { border-color: rgba(91,140,255,.4); transform: translateY(-2px); }
.tanque-card.tk-alerta { border-color: var(--red); box-shadow: 0 0 0 1px rgba(255,93,108,.35); }
.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-nome { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tk-comb { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.tk-gauge { position: relative; height: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin: 14px 0 8px; }
.tk-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px 0 0 8px; transition: width .5s ease; }
.tk-gauge-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tk-info { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tk-info b { color: var(--txt); }
.tk-vendido { font-size: 12px; color: var(--muted); margin-top: 6px; }
.tk-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tk-min-flag { font-size: 10.5px; background: var(--red); color: #fff; border-radius: 5px; padding: 1px 7px; }

.sino-wrap { position: relative; }
.sino-btn { position: relative; width: 36px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-size: 16px; cursor: pointer; transition: border-color .15s; }
.sino-btn:hover { border-color: var(--accent); }
.sino-badge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.sino-painel { position: absolute; top: 38px; right: 0; width: 320px; max-width: 86vw; background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); z-index: 70; overflow: hidden; animation: popIn .16s ease; }
.sino-painel.hidden { display: none; }
.sino-head { padding: 12px 14px; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.sino-list { max-height: 60vh; overflow-y: auto; }
.sino-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.sino-item:last-child { border-bottom: none; }
.sino-item:hover { background: var(--panel); }
.sino-ico { font-size: 18px; flex-shrink: 0; }
.sino-txt { font-size: 13px; line-height: 1.35; }
.sino-item.nv-alerta { border-left: 3px solid var(--red); }
.sino-item.nv-info { border-left: 3px solid var(--accent); }
.sino-vazio { padding: 22px 14px; text-align: center; color: var(--muted); font-size: 13px; }

.pdv-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.pdv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pdv-prod { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; transition: border-color .15s, transform .12s; }
.pdv-prod:hover { border-color: var(--accent); transform: translateY(-2px); }
.pdv-prod .pp-nome { font-weight: 600; font-size: 13.5px; }
.pdv-prod .pp-cat { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pdv-prod .pp-preco { font-weight: 800; font-size: 15px; color: var(--accent); margin-top: 8px; }
.pdv-prod .pp-est { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pdv-cart { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; position: sticky; top: 0; }
.pdv-cart h3 { margin: 0 0 12px; font-size: 15px; }
.pdv-itens { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; }
.pdv-item { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.pdv-item .pi-main { flex: 1; min-width: 0; }
.pdv-item .pi-nome { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdv-item .pi-sub { font-size: 11px; color: var(--muted); }
.pdv-item .qbtn { width: 24px; height: 24px; }
.pdv-item .pi-qtd { min-width: 22px; text-align: center; font-weight: 700; }
.pdv-item .pi-del { border: none; background: transparent; color: var(--muted); cursor: pointer; }
.pdv-item .pi-del:hover { color: var(--red); }
.pdv-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.pdv-total b { font-size: 22px; color: var(--green); }
@media (max-width: 820px) { .pdv-layout { grid-template-columns: 1fr; } .pdv-cart { position: static; } }

.agenda-list { display: flex; flex-direction: column; gap: 10px; }
.ev-card { display: flex; align-items: stretch; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 0; overflow: hidden; transition: border-color .15s, transform .12s; }
.ev-card:hover { border-color: rgba(91,140,255,.4); transform: translateY(-1px); }
.ev-card.ev-passado { opacity: .6; }
.ev-data { flex-shrink: 0; width: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--accent), var(--accent-2)); color: #fff; padding: 12px 0; }
.ev-dia { font-size: 26px; font-weight: 800; line-height: 1; }
.ev-mes { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.ev-ano { font-size: 10.5px; opacity: .85; }
.ev-body { flex: 1; min-width: 0; padding: 12px 14px; }
.ev-titulo { font-weight: 700; font-size: 15px; }
.ev-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.ev-cat { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: rgba(91,140,255,.16); color: #8fb2ff; }
.ev-desc { font-size: 13px; color: #ced8e8; margin-top: 8px; white-space: pre-wrap; }
.ev-acts { display: flex; align-items: center; gap: 6px; padding: 12px 14px; }
.ev-marcados { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-tag { font-size: 11px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 20px; padding: 3px 10px; }

.reuniao-part { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.rp-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.rp-ok { color: #2ecc71; }
.rp-no { color: var(--muted); }
.rp-confirm { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: rgba(91,140,255,.1); border: 1px solid var(--accent); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.rp-confirm input { width: 18px; height: 18px; accent-color: var(--green); }
.rp-confirmado { background: rgba(46,204,113,.12); border-color: var(--green); color: #2ecc71; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: border-color .15s; }
.faq-item:hover { border-color: rgba(91,140,255,.35); }
.faq-q { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq-q .faq-ico { color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq-item.aberta .faq-q .faq-ico { transform: rotate(90deg); }
.faq-q .faq-cat { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--panel-2); color: var(--muted); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.aberta .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 16px 14px 44px; font-size: 13.5px; line-height: 1.6; color: #ced8e8; white-space: pre-wrap; }
.faq-a-acts { display: flex; gap: 8px; padding: 0 16px 14px 44px; }

.esc-ficha { margin-top: 8px; width: 100%; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 10px; padding: 7px; cursor: pointer; font-size: 12px; transition: .15s; }
.esc-ficha:hover { border-color: var(--accent); color: var(--txt); }

.crm-tabela-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.crm-tabela { margin: 0; }
.crm-tabela thead th { background: var(--panel-2); padding: 13px 14px; }
.crm-tabela td { padding: 12px 14px; vertical-align: middle; }
.crm-tabela tbody tr:last-child td { border-bottom: none; }
.crm-tabela .crm-link { color: var(--txt); font-weight: 700; font-size: 14px; text-decoration: none; }
.crm-tabela .crm-link:hover { color: var(--accent); text-decoration: underline; }
.crm-tabela .crm-emp { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.crm-tabela .zap { font-size: 11px; }
.crm-tabela .th-acts { text-align: right; width: 1%; white-space: nowrap; }
.crm-acts-tab { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.crm-acts-tab .mini { padding: 6px 10px; font-size: 12px; }
.crm-acts-tab .mini.danger { background: var(--red); color: #fff; }
.crm-acts-tab .mini.danger:hover { filter: brightness(1.08); }
.crm-acts-tab .crm-share { display: inline-flex; gap: 6px; align-items: center; }

.crm-tabela .td-desc { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-tabela .th-sort { cursor: pointer; user-select: none; white-space: nowrap; transition: color .12s; }
.crm-tabela .th-sort:hover { color: var(--accent); }

.filtros-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; margin: -6px 0 16px; animation: fadeUp .18s ease; }
.filtros-box.hidden { display: none; }
.filtro-campo { display: flex; flex-direction: column; gap: 5px; }
.filtro-campo label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.filtro-campo .busca { width: 160px; }
.filtros-box > .ghost-btn { margin-left: auto; }

@keyframes fid-star-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,60,0); }
  50% { box-shadow: 0 0 12px 2px rgba(255,200,60,.75); }
}
.crm-status.fid-glow { animation: fid-star-glow 1.4s ease-in-out infinite; background: rgba(255,200,60,.16) !important; color: #ffcc3c !important; font-weight: 800; }

.srt-info { margin: 14px 0 10px; font-size: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; }
.srt-participantes { display: flex; flex-wrap: wrap; gap: 7px; max-height: 26vh; overflow-y: auto; margin-bottom: 6px; }
.srt-chip { font-size: 12.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 30px; padding: 5px 12px; }
.srt-chip b { color: #ffcc3c; }
.srt-resultado { margin: 14px 0; min-height: 70px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; background: rgba(91,140,255,.05); }
.srt-resultado.hidden { display: none; }
.srt-spin { font-size: 18px; font-weight: 700; color: var(--muted); opacity: .9; }
.srt-win { text-align: center; animation: popIn .3s ease; }
.srt-win b { font-size: 26px; background: linear-gradient(135deg, #ffcc3c, #ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.srt-win-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.agenda-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.cal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-nav { width: 32px; height: 32px; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.cal-titulo { font-weight: 800; font-size: 17px; text-transform: capitalize; flex: 1; text-align: center; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.cal-wd { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { min-height: 76px; border: 1px solid var(--line); border-radius: 11px; padding: 7px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); transition: border-color .12s, transform .1s; }
.cal-day:hover { border-color: var(--accent); transform: translateY(-1px); }
.cal-day.vazio { background: transparent; border-color: transparent; cursor: default; }
.cal-day.hoje { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day.sel { background: linear-gradient(160deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(91,140,255,.4); }
.cal-dnum { font-size: 13.5px; font-weight: 700; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; }
.cal-more { font-size: 10px; color: var(--muted); }
.cal-day.sel .cal-more { color: rgba(255,255,255,.85); }
.agenda-dia h3 { margin: 0 0 12px; font-size: 15px; }
@media (max-width: 900px) { .agenda-wrap { grid-template-columns: 1fr; } }

.faq-hero { text-align: center; background: linear-gradient(160deg, rgba(91,140,255,.14), rgba(139,92,246,.1)); border: 1px solid var(--line); border-radius: 18px; padding: 30px 20px 26px; margin-bottom: 18px; }
.faq-hero-ico { font-size: 34px; }
.faq-hero h2 { margin: 8px 0 4px; font-size: 24px; }
.faq-hero p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.faq-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; padding: 4px 6px 4px 14px; transition: border-color .15s, box-shadow .15s; }
.faq-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.faq-search-ico { font-size: 16px; opacity: .8; }
.faq-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--txt); font-size: 15px; padding: 11px 0; }
.faq-clear { border: none; background: var(--panel-2); color: var(--muted); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.faq-clear:hover { background: var(--line); color: var(--txt); }
.faq-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.faq-chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 30px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.faq-chip:hover { color: var(--txt); border-color: var(--accent); }
.faq-chip.ativo { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.faq-chip-n { opacity: .7; font-size: 11px; }
.faq-count { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.faq-q .faq-ico { font-size: 18px; font-weight: 800; }
.faq-q .faq-qt { flex: 1; }
.faq-a-inner mark, .faq-q mark { background: rgba(245,166,35,.35); color: inherit; border-radius: 3px; padding: 0 2px; }

.lic-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(900px 600px at 50% -10%, #1c2742 0%, #0b101c 60%); }
.lic-overlay.hidden { display: none; }
.lic-card { width: 420px; max-width: 90vw; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 38px 30px; text-align: center; box-shadow: var(--shadow); animation: popIn .25s ease; }
.lic-ico { font-size: 46px; margin-bottom: 10px; }
.lic-card h2 { margin: 0 0 8px; font-size: 22px; }
.lic-card .muted { font-size: 14px; line-height: 1.5; }
.lic-card .ghost-btn { margin-top: 18px; }
