:root {
  --primary: #1D5575;
  --primary-900: #0D2A3E;
  --primary-800: #103F5F;
  --primary-700: #1D5575;
  --flow: #00C6FF;
  --flow-2: #33D7FF;
  --green: #2ECC71;
  --green-700: #159A52;
  --white: #FFFFFF;
  --gray: #F4F7F6;
  --gray-2: #EAF0EF;
  --line: rgba(29, 85, 117, .14);
  --line-strong: rgba(29, 85, 117, .26);
  --text: #10293D;
  --muted: #657680;
  --danger: #B42318;
  --warning: #B7791F;
  --warning-bg: #FFF8E1;
  --success-bg: #E9FBF1;
  --blue-bg: #E9F8FF;
  --shadow-sm: 0 8px 22px rgba(29, 85, 117, .08);
  --shadow: 0 20px 60px rgba(29, 85, 117, .16);
  --shadow-strong: 0 28px 90px rgba(13, 42, 62, .22);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --font-title: Montserrat, Lato, "Segoe UI", Arial, sans-serif;
  --font-body: Lato, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 16% 5%, rgba(0,198,255,.22) 0 24%, transparent 44%),
    radial-gradient(circle at 88% 13%, rgba(46,204,113,.16) 0 20%, transparent 39%),
    linear-gradient(135deg, #F4F7F6 0%, #ECF6F8 45%, #F8FCFD 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29,85,117,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,85,117,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 70%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -120px;
  background: conic-gradient(from 120deg, rgba(0,198,255,.25), rgba(46,204,113,.24), rgba(29,85,117,.08), rgba(0,198,255,.25));
  filter: blur(28px);
  border-radius: 50%;
  z-index: -3;
}

.hidden { display: none !important; }
body.login-mode .topbar { display: none; }
body.app-mode .topbar { display: grid; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(13,42,62,.98), rgba(29,85,117,.96) 56%, rgba(0,198,255,.82));
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-100%);
  animation: topShine 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes topShine { 0%, 45% { transform: translateX(-100%); } 62%, 100% { transform: translateX(100%); } }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo {
  width: 142px;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
  padding: 5px 9px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}
.topbar-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 11px;
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(46,204,113,.16), 0 0 18px rgba(46,204,113,.8);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.25); opacity: .72; } }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.session-user {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 700;
}

.card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 34%, rgba(0,198,255,.05));
}
.card > * { position: relative; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 460px);
  place-content: center;
  align-items: center;
  gap: 0;
  padding: 28px 16px;
}
/* Login hero removido para manter somente uma marca na tela inicial. */
.brand-hero, .hero-glow, .hero-logo, .hero-chips { display: none !important; }
.login-card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
  align-self: center;
  margin: 0 auto;
  border-radius: 30px;
}
.login-logo {
  display: block;
  width: 158px;
  max-width: 62%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 20px rgba(0,198,255,.14));
}
.card-header h1, .section-head h1, .sidebar h2 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--text);
  letter-spacing: -.6px;
}
.card-header { text-align: center; }
.card-header h1 { font-size: 28px; }
.card-header p, .section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .13em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--flow), var(--green));
  box-shadow: 0 0 0 5px rgba(0,198,255,.12);
}

.form-stack { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 7px; }
.field span { color: #304D60; font-size: 13px; font-weight: 900; }
.field input, .field textarea, select, .org-card input, .user-create-box input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.field input:focus, .field textarea:focus, select:focus, .org-card input:focus, .user-create-box input:focus, textarea:focus {
  border-color: var(--flow);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,198,255,.16), inset 0 1px 0 rgba(255,255,255,.8);
}
.field textarea, textarea { min-height: 104px; resize: vertical; }
.field.compact { margin: 0 16px 12px; }

.btn {
  border: 0;
  border-radius: 16px;
  min-height: 42px;
  padding: 11px 16px;
  color: #fff;
  font-weight: 900;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-800));
  box-shadow: 0 11px 22px rgba(29,85,117,.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(29,85,117,.23); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--flow), #0C8FCB 62%, var(--primary)); }
.btn-success { background: linear-gradient(135deg, var(--green), #14A85A); }
.btn-soft {
  background: rgba(0,198,255,.11);
  color: var(--primary);
  border: 1px solid rgba(0,198,255,.22);
  box-shadow: none;
}
.btn-soft:hover { background: rgba(0,198,255,.17); box-shadow: var(--shadow-sm); }
.btn-light {
  background: rgba(255,255,255,.13);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}
.btn-icon { width: 44px; padding: 0; display: grid; place-items: center; font-size: 18px; }
.send-btn { min-width: 118px; border-radius: 18px; }

.notice {
  background: rgba(255,248,225,.86);
  border: 1px solid rgba(183,121,31,.22);
  border-radius: 20px;
  padding: 14px 15px;
  color: #705011;
  margin: 14px 0;
  line-height: 1.45;
}
.notice.danger { background: #FFF1F1; border-color: #FECACA; color: var(--danger); }
.status-line { min-height: 22px; color: var(--muted); font-size: 13px; }
.ok { color: var(--green-700); font-weight: 900; }
.err { color: var(--danger); font-weight: 900; }

.app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 376px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  min-height: calc(100vh - 68px);
}
.sidebar {
  min-height: calc(100vh - 108px);
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  border-radius: 30px;
}
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 18px 14px; gap: 10px; }
.sidebar h2 { font-size: 24px; }
.status-filters { display: flex; gap: 8px; padding: 0 16px 14px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { transform: translateY(-1px); border-color: rgba(0,198,255,.46); }
.chip.active { background: linear-gradient(135deg, var(--primary), #139BCA); color: #fff; border-color: transparent; box-shadow: 0 10px 20px rgba(29,85,117,.18); }
.conversation-list { overflow: auto; border-top: 1px solid var(--line); flex: 1; padding: 8px; }
.conversation-list::-webkit-scrollbar, .chat-box::-webkit-scrollbar, .tabs::-webkit-scrollbar { width: 9px; height: 9px; }
.conversation-list::-webkit-scrollbar-thumb, .chat-box::-webkit-scrollbar-thumb, .tabs::-webkit-scrollbar-thumb { background: rgba(29,85,117,.24); border-radius: 999px; }
.conv-item {
  position: relative;
  padding: 14px 14px 13px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  margin-bottom: 8px;
  background: rgba(255,255,255,.62);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.conv-item:hover, .conv-item.active { transform: translateY(-1px); background: rgba(233,248,255,.98); border-color: rgba(0,198,255,.24); box-shadow: var(--shadow-sm); }
.conv-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--flow), var(--green));
}
.conv-item strong { display: block; margin-bottom: 5px; color: var(--text); font-family: var(--font-title); }
.conv-meta { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  margin-top: 9px;
  background: var(--blue-bg);
  color: var(--primary);
  border: 1px solid rgba(0,198,255,.18);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .7; }
.badge.waiting_human { background: #FFF3CD; color: #8A6100; border-color: rgba(138,97,0,.18); }
.badge.human { background: #E9FBF1; color: #087443; border-color: rgba(8,116,67,.16); }
.badge.ai { background: #E9F8FF; color: #0A6F94; border-color: rgba(0,198,255,.22); }
.badge.awaiting_department { background: #EEF2FF; color: #3538CD; border-color: rgba(53,56,205,.16); }
.badge.closed { background: #EEF2F6; color: #475467; border-color: rgba(71,84,103,.14); }
.badge.approved { background: #E7F8EF; color: #087443; }
.badge.pending { background: #FFF3CD; color: #8A6100; }
.badge.rejected { background: #FFF1F1; color: #B42318; }
.badge.paused, .badge.disabled { background: #EEF2F6; color: #475467; }

.workspace {
  min-width: 0;
  padding: 18px;
  border-radius: 30px;
}
.tabs {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 8px;
  margin: 0 0 18px;
  overflow: visible;
  background: rgba(244,247,246,.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}
.tab {
  flex: 0 1 auto;
  border: 0;
  border-radius: 16px;
  padding: 11px 14px;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.tab:hover { transform: translateY(-1px); background: rgba(0,198,255,.11); }
.tab.active { background: linear-gradient(135deg, var(--primary), #169CC8); color: #fff; box-shadow: 0 12px 24px rgba(29,85,117,.18); }
.section { display: none; animation: fadeIn .22s ease both; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.section-head h1 { font-size: clamp(26px, 3vw, 38px); }
.actions-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.actions-column { display: grid; gap: 10px; justify-items: end; }
.department-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.select-small { width: 220px; }

.service-window {
  position: relative;
  background: linear-gradient(135deg, rgba(233,248,255,.95), rgba(233,251,241,.78));
  border-color: rgba(0,198,255,.2);
  color: var(--primary-800);
  margin-top: 8px;
  margin-bottom: 12px;
}
.chat-box {
  height: calc(100vh - 382px);
  min-height: 340px;
  overflow: auto;
  background:
    linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.84)),
    radial-gradient(circle at 20% 10%, rgba(0,198,255,.19), transparent 22%),
    radial-gradient(circle at 76% 90%, rgba(46,204,113,.15), transparent 26%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  scroll-behavior: smooth;
}
.message {
  position: relative;
  max-width: min(78%, 720px);
  padding: 12px 14px;
  border-radius: 19px 19px 19px 7px;
  margin: 10px 0;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(29,85,117,.08);
  word-break: break-word;
  animation: popIn .18s ease both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(4px) scale(.99); } to { opacity: 1; transform: none; } }
.message.out {
  margin-left: auto;
  border-radius: 19px 19px 7px 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0D9ECC 74%, var(--flow));
  border-color: transparent;
}
.message.system {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
  color: #705011;
  background: rgba(255,248,225,.95);
  border-color: rgba(183,121,31,.2);
  text-align: center;
  border-radius: 999px;
}
.message-meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; font-weight: 900; opacity: .88; }
.message.out .message-meta { color: rgba(255,255,255,.78); }
.message.out a, .message.out .media-link { color: #fff; }
.human-name { display: block; font-weight: 900; margin-bottom: 5px; color: inherit; font-family: var(--font-title); }
.message-cost { margin-top: 7px; font-size: 12px; color: inherit; opacity: .8; font-weight: 900; }
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.composer textarea {
  border: 0;
  border-radius: 17px;
  padding: 13px 14px;
  font: inherit;
  min-height: 76px;
  background: rgba(244,247,246,.9);
  outline: none;
}
.details-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
}
.details-card summary { cursor: pointer; font-weight: 900; color: var(--primary); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.mt12 { margin-top: 12px; }
.user-create-box, .org-card, .health-card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.user-create-box h3, .org-card h3 { margin: 0 0 10px; color: var(--primary); font-family: var(--font-title); }
.org-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: middle; }
.table th {
  position: sticky;
  top: 0;
  background: rgba(244,247,246,.96);
  color: #304D60;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 2;
}
.table tr:hover td { background: rgba(233,248,255,.55); }
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.health-card strong { display: block; margin-bottom: 6px; color: var(--primary); font-family: var(--font-title); }
.empty-state {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border-radius: 20px;
}
.empty-state.large { padding-top: 110px; }
.empty-state::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: url('/admin-assets/assets/pure-flow-mark-oficial.png') center/contain no-repeat;
  opacity: .62;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  color: #fff;
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  max-width: 390px;
  z-index: 40;
  font-weight: 800;
  animation: popIn .2s ease both;
}
.noscript { margin: 16px; background: #FFF1F1; color: var(--danger); border: 1px solid #FECACA; border-radius: 16px; padding: 14px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.mini-list { margin-top: 10px; color: var(--muted); font-size: 13px; display: grid; gap: 7px; }
.mini-item {
  padding: 9px 10px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.item-actions { display: inline-flex; gap: 6px; margin-left: 8px; flex-wrap: wrap; }
.mini-btn {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12px;
}
.mini-btn:hover { background: var(--blue-bg); }
.media-preview { margin-top: 9px; }
.media-preview img {
  display: block;
  max-width: min(380px, 100%);
  max-height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.5);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.media-preview audio { width: min(380px, 100%); }
.media-link { display: inline-block; margin-top: 7px; font-weight: 900; color: var(--primary); text-decoration: none; }
input[type="file"] { cursor: pointer; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-center { display: none; }
  .login-shell { grid-template-columns: minmax(300px, 460px); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; padding: 14px; }
  .sidebar { min-height: auto; max-height: 440px; }
  .chat-box { height: 52vh; }
  .grid2, .grid3, .org-box, .health-grid { grid-template-columns: 1fr; }
  .section-head, .composer { grid-template-columns: 1fr; display: grid; }
  .actions-column { justify-items: stretch; }
  .department-box { justify-content: stretch; }
  .select-small { width: 100%; }
}
@media (max-width: 640px) {
  .topbar { position: relative; grid-template-columns: 1fr; padding: 14px; }
  .brand-logo { width: 128px; height: 42px; }
  .top-actions { justify-content: flex-start; flex-wrap: wrap; }
  .session-user { max-width: 100%; }
  .login-shell { padding: 16px 10px; }
  .app-shell { padding: 10px; }
  .workspace, .sidebar { border-radius: 22px; padding: 12px; }
  .tabs {
    position: relative;
    top: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .tab { flex: 0 0 auto; }
  .message { max-width: 94%; }
  .actions-row { align-items: stretch; }
  .actions-row .btn, .actions-row select, .actions-row input { width: 100%; }
  .composer { padding: 8px; }
  .send-btn { width: 100%; }
}

@media (max-width: 640px) {
  .login-card { padding: 24px 18px; }
  .login-logo { width: 138px; max-width: 70%; }
  .card-header h1 { font-size: 24px; }
}


/* v5.2 - Correção do deslocamento do menu de seções.
   O menu deixa de ficar preso ao topo da janela e passa a permanecer
   alinhado dentro do card principal, evitando sobreposição/deslocamento. */
.workspace { overflow: visible; }
.tabs { box-sizing: border-box; }
@media (min-width: 981px) {
  .tabs { min-height: 60px; }
}


/* v5.3 - Rodapé discreto da tela inicial. */
.login-footer {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  text-align: center;
  color: rgba(16, 41, 61, .48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
  pointer-events: none;
}
body.app-mode .login-footer { display: none; }
@media (max-width: 640px) {
  .login-footer {
    bottom: 8px;
    font-size: 10px;
    color: rgba(16, 41, 61, .42);
  }
}
