@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --jur-gold: #c9a227;
  --jur-gold-light: #e8d48a;
  --jur-gold-dark: #9a7b1a;
  --jur-charcoal: #1a1a1a;
  --jur-charcoal-soft: #2b2b2b;
  --jur-ink: #3d3d3d;
  --jur-ink-muted: #6b6560;
  --jur-bg: #f7f4ed;
  --jur-bg-warm: #efe9dc;
  --jur-card: #ffffff;
  --jur-border: rgba(201, 162, 39, 0.28);
  --jur-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  --jur-font-display: 'Cormorant Garamond', Georgia, serif;
  --f7-theme-color: var(--jur-charcoal);
  --f7-theme-color-rgb: 26, 26, 26;
  --f7-theme-color-shade: #0f0f0f;
  --f7-theme-color-tint: var(--jur-charcoal-soft);
}

body { background: var(--jur-bg); font-family: 'Source Sans 3', system-ui, sans-serif; }

/* —— Rolagem: páginas AJAX em #navegacao —— */
html.jur-shell-ready,
html.jur-shell-ready body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html.jur-shell-ready #app {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: -webkit-fill-available;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

#navegacao {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background: var(--jur-bg) !important;
  position: relative;
}

/* F7: .page { position:absolute; height:100% } — anula para conteúdo injectado */
#navegacao > .page {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  overflow: visible !important;
  transform: none !important;
  z-index: auto !important;
  box-sizing: border-box;
}

#navegacao .page-content {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  flex: none !important;
  box-sizing: border-box;
}

/* —— Auth: navbar fixo no topo ao rolar (#navegacao é o scroll container) —— */
.jur-auth-page.nex-auth-page,
.jur-cad-page.nex-auth-page {
  --nex-navbar-inner-bg: var(--jur-charcoal);
  --nex-shell-bg: var(--jur-bg);
  background: var(--jur-bg) !important;
}

.jur-auth-page .navbar,
.jur-cad-page .navbar {
  position: sticky !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  flex-shrink: 0;
}

.jur-auth-page .navbar-bg,
.jur-cad-page .navbar-bg {
  display: none !important;
}

.jur-auth-page .navbar-inner,
.jur-cad-page .navbar-inner {
  background: linear-gradient(180deg, #141414 0%, var(--jur-charcoal) 100%) !important;
  border-bottom: 2px solid var(--jur-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-height: 48px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
}

.jur-auth-page .navbar-inner .title,
.jur-cad-page .navbar-inner .title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  color: var(--jur-gold-light) !important;
}

.jur-auth-page .navbar-inner a.link,
.jur-cad-page .navbar-inner a.link {
  color: var(--jur-gold-light) !important;
  font-weight: 600;
  font-size: 14px;
}

.jur-auth-page .page-content,
.jur-cad-page .page-content {
  padding-top: 16px !important;
  padding-bottom: 40px !important;
  background: linear-gradient(180deg, var(--jur-bg) 0%, var(--jur-bg-warm) 100%) !important;
}

/* —— Marca / logo —— */
.jur-auth-brand {
  text-align: center;
  padding: 4px 8px 20px;
  margin-bottom: -5px;
  margin-top: -19px;
}

.jur-logo {
  max-height: 96px;
  width: auto;
  max-width: min(220px, 72vw);
  margin: 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(26, 26, 26, 0.12));
}

.jur-auth-brand__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.jur-auth-brand__line::before,
.jur-auth-brand__line::after {
  content: '';
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jur-gold), transparent);
}

.jur-auth-brand__line span {
  width: 6px;
  height: 6px;
  background: var(--jur-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.jur-auth-brand__tagline {
  margin: 8px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jur-ink);
  font-weight: 600;
}

/* —— Hero / tabs —— */
.jur-auth-hero {
  margin: 0 0 18px;
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #121212 0%, var(--jur-charcoal-soft) 55%, #1f1a14 100%);
  color: #fff;
  box-shadow: var(--jur-shadow);
  border: 1px solid rgba(201, 162, 39, 0.22);
}

.jur-auth-hero--adv {
  background: linear-gradient(145deg, #0f1418 0%, #1a2830 50%, #1a1a14 100%);
}

.jur-role-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.jur-role-switch button {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.jur-role-switch button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--jur-gold-light) 0%, var(--jur-gold) 100%);
  color: var(--jur-charcoal);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.jur-auth-hero .hero-title,
.jur-cad-hero h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--jur-gold-light);
  letter-spacing: 0.02em;
}

.jur-auth-hero .hero-sub,
.jur-cad-hero p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.jur-cad-hero {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, #121212 0%, var(--jur-charcoal-soft) 100%);
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: var(--jur-shadow);
}

/* —— Formulários —— */
.jur-auth-inner,
.jur-cad-inner {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 18px 12px;
}

.jur-card {
  background: var(--jur-card);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: var(--jur-shadow);
  border: 1px solid var(--jur-border);
}

.jur-card h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--jur-charcoal);
}

.jur-field { margin-bottom: 16px; }

.jur-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jur-charcoal-soft);
  margin-bottom: 7px;
}

.jur-field select,
.jur-field input,
.jur-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd5c4;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fdfcfa;
  color: var(--jur-charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.jur-field select:focus,
.jur-field input:focus,
.jur-field textarea:focus {
  outline: none;
  border-color: var(--jur-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.jur-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}

.jur-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8a8272;
  line-height: 1.35;
}

.jur-field--last {
  margin-bottom: 20px;
}

/* —— Novo caso —— */
.jur-novo-page .jur-dash-greeting h1 {
  font-family: var(--jur-font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
}

.jur-novo-ctx {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.jur-novo-ctx__chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.08);
  font-size: 0.84rem;
  color: var(--jur-charcoal);
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.05);
}

.jur-novo-ctx__chip--wide {
  flex: 1 1 100%;
}

.jur-novo-ctx__chip strong {
  font-weight: 700;
  color: var(--jur-charcoal-soft);
}

.jur-novo-intro {
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: var(--jur-muted, #667);
  line-height: 1.5;
}

.jur-novo-card {
  padding: 22px 18px 20px;
}

.jur-novo-card .jur-btn-primary {
  margin-top: 4px;
}

.jur-novo-card .jur-erro {
  display: none;
}

.jur-novo-footer-hint {
  text-align: center;
  font-size: 12px;
  color: #8a8272;
  margin: 16px 0 8px;
  line-height: 1.45;
}

.jur-btn-primary.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.jur-btn-primary.is-loading .jur-novo-btn__label::after {
  content: '…';
}

.jur-btn-primary {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: var(--jur-charcoal);
  background: linear-gradient(180deg, var(--jur-gold-light) 0%, var(--jur-gold) 45%, var(--jur-gold-dark) 100%);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.jur-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 12px rgba(201, 162, 39, 0.3);
}

.jur-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.jur-link-row {
  text-align: center;
  margin-top: 18px;
  padding-top: 4px;
}

.jur-link-row a {
  color: var(--jur-gold-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 123, 26, 0.35);
}

.jur-erro {
  color: #a32a2a;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  display: none;
}

.jur-field-hint {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--jur-ink-muted);
}

.jur-field-hint--erro {
  color: #a32a2a;
}

.jur-field-hint--ok {
  color: #15803d;
}

.jur-demo {
  text-align: center;
  font-size: 11px;
  color: #8a8272;
  margin-top: 20px;
  line-height: 1.5;
}

.jur-auth-hint {
  font-size: 13px;
  color: var(--jur-ink);
  margin: 0 0 16px;
  line-height: 1.45;
}

.jur-only-cliente[hidden],
.jur-only-advogado[hidden] {
  display: none !important;
}

/* —— Dashboard / geral —— */
.jur-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(201, 162, 39, 0.15);
  color: var(--jur-charcoal);
}

.jur-badge.warn { background: #fff3cd; color: #856404; }
.jur-badge.ok { background: #d4edda; color: #155724; }

.jur-step {
  border-left: 3px solid var(--jur-gold);
  padding-left: 12px;
  margin-bottom: 16px;
}

.jur-chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.jur-chat-bubble.me {
  background: linear-gradient(135deg, #1a2332 0%, #2b3d52 100%);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.2);
}

.jur-chat-bubble.them {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.06);
}

/* —— Notificações —— */
.jur-notif-page .jur-dash-greeting h1 {
  font-family: var(--jur-font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
}

.jur-chat-full-page .jur-dash-greeting h1 {
  font-family: var(--jur-font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
}

.jur-notif-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jur-notif-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jur-notif-section__title {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8272;
}

.jur-notif-section--read .jur-notif-section__title {
  color: #a8a095;
}

.jur-notif-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.18);
  color: var(--jur-gold-dark);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.jur-notif-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.08);
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.jur-notif-card.is-unread {
  position: relative;
  border-color: rgba(201, 162, 39, 0.4);
  border-left: 4px solid var(--jur-gold);
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.1);
  cursor: pointer;
}

.jur-notif-card.is-unread:active {
  transform: scale(0.995);
}

.jur-notif-card.is-unread::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jur-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

.jur-notif-card__nova {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  color: var(--jur-gold-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.jur-notif-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.jur-notif-card.is-read .jur-notif-card__icon {
  background: rgba(26, 35, 50, 0.06);
  opacity: 0.85;
}

.jur-notif-card.is-read {
  opacity: 0.72;
  background: #fafafa;
  border-color: rgba(26, 35, 50, 0.05);
  box-shadow: none;
}

.jur-notif-card.is-read .jur-notif-card__body strong {
  font-weight: 500;
  color: #6b6560;
}

.jur-notif-card.is-read .jur-notif-card__body p {
  color: #9a9488;
}

.jur-notif-card__body {
  flex: 1;
  min-width: 0;
}

.jur-notif-card__body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--jur-charcoal);
  margin-bottom: 4px;
}

.jur-notif-card__body p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--jur-muted, #667);
  line-height: 1.45;
}

.jur-notif-card__time {
  font-size: 0.78rem;
  color: #8a8272;
}

/* —— Chat (página e painel) —— */
.jur-chat-full-page.jur-dash-page {
  min-height: calc(100dvh - var(--jur-dash-hero-h, 92px));
  --jur-chat-compose-h: calc(72px + env(safe-area-inset-bottom, 0px));
}

.jur-chat-full-page .jur-dash-body.jur-chat-page {
  display: flex;
  flex-direction: column;
  padding: 12px 16px var(--jur-chat-compose-h);
  min-height: calc(100dvh - var(--jur-dash-hero-h, 92px));
  box-sizing: border-box;
}

.jur-chat-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.jur-chat-full-page .jur-chat-page__msgs {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  border-radius: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.jur-chat-page__msgs {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #f4f1ea 0%, #eef2f6 100%);
  border-radius: 14px;
  border: 1px solid rgba(26, 35, 50, 0.06);
}

.jur-chat-full-page .jur-chat-page__compose {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 840;
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
  border-top: 1px solid rgba(26, 35, 50, 0.08);
  box-shadow: 0 -4px 16px rgba(26, 35, 50, 0.08);
}

.jur-chat-page__compose,
.jur-panel-chat-compose {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.jur-panel-chat-compose {
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  box-shadow: 0 -4px 16px rgba(26, 35, 50, 0.06);
}

.jur-chat-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.jur-chat-input,
.jur-panel-chat-compose .jur-panel-input,
#jur-p-msg.jur-chat-input,
#jur-msg.jur-chat-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 24px;
  font-size: 16px;
  line-height: 1.35;
  font-family: inherit;
  background: #fff;
  color: var(--jur-charcoal);
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.jur-chat-input::placeholder,
#jur-p-msg.jur-chat-input::placeholder,
#jur-msg.jur-chat-input::placeholder {
  color: #9a9284;
  opacity: 1;
}

.jur-chat-input:focus,
.jur-panel-chat-compose .jur-panel-input:focus,
#jur-p-msg.jur-chat-input:focus,
#jur-msg.jur-chat-input:focus {
  outline: none;
  border-color: var(--jur-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.jur-chat-input-wrap.is-focused .jur-chat-input,
.jur-chat-input-wrap.is-focused #jur-p-msg,
.jur-chat-input-wrap.is-focused #jur-msg {
  border-color: var(--jur-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.jur-chat-send-btn {
  flex-shrink: 0;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px;
  padding: 0 !important;
  border: none;
  border-radius: 50% !important;
  font-size: 17px !important;
  line-height: 1;
  cursor: pointer;
  color: var(--jur-charcoal);
  background: linear-gradient(180deg, var(--jur-gold-light) 0%, var(--jur-gold) 55%, var(--jur-gold-dark) 100%);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s, opacity 0.15s;
}

.jur-chat-send-btn.is-loading {
  opacity: 1;
  pointer-events: none;
  cursor: wait;
}

.jur-chat-send-btn__icon[hidden],
.jur-chat-send-btn__spin[hidden] {
  display: none !important;
}

.jur-chat-send-btn__spin {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 35, 50, 0.2);
  border-top-color: var(--jur-charcoal);
  border-radius: 50%;
  animation: jur-chat-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.jur-chat-send-btn.is-loading::after {
  content: none;
  display: none;
}

@keyframes jur-chat-spin {
  to { transform: rotate(360deg); }
}

.jur-chat-send-btn:active:not(.is-loading) {
  transform: scale(0.96);
}

.jur-chat-send-btn:disabled:not(.is-loading) {
  opacity: 0.55;
  cursor: not-allowed;
}

.jur-chat-full-page .jur-chat-page__compose .jur-chat-send-btn {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 17px !important;
}

.jur-chat-full-page .jur-chat-page__compose .jur-chat-send-btn__icon {
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
}

.jur-panel-chat-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f4f1ea 0%, #eef2f6 100%);
  border-radius: 14px;
  border: 1px solid rgba(26, 35, 50, 0.06);
}

/* —— Dashboard cliente —— */
.jur-dash-page {
  background: var(--jur-bg);
  min-height: 100%;
  --jur-dash-hero-h: calc(92px + env(safe-area-inset-top, 0px));
  --jur-tabbar-clearance: calc(84px + env(safe-area-inset-bottom, 0px));
}

.jur-dash-page .page-content.jur-dash-body {
  padding: 16px 16px 28px;
  height: auto !important;
  overflow: visible !important;
}

.jur-dash-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: linear-gradient(165deg, #1a2332 0%, #1a1a1a 55%, #252018 100%);
  padding: max(18px, calc(12px + env(safe-area-inset-top, 0px))) 16px 22px;
  border-bottom: 3px solid var(--jur-gold);
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.15);
}

.jur-dash-hero + .page-content.jur-dash-body {
  padding-top: calc(var(--jur-dash-hero-h) + 12px);
}

.jur-dash-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.jur-dash-greeting {
  flex: 1;
  min-width: 0;
}

.jur-dash-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 212, 138, 0.85);
  white-space: nowrap;
}

.jur-dash-greeting h1 {
  font-family: var(--jur-font-display);
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: anywhere;
}

.jur-dash-hero__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.jur-dash-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s ease;
}

.jur-dash-icon-btn:active {
  background: rgba(255, 255, 255, 0.16);
}

.jur-dash-icon-btn__glyph {
  font-size: 18px;
  line-height: 1;
}

.jur-dash-icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--jur-gold);
  color: var(--jur-charcoal);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.jur-dash-icon-btn__badge[hidden] {
  display: none !important;
}

.jur-notif-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.jur-notif-mark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  min-width: 220px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: linear-gradient(180deg, #fffdf6 0%, #fff6dc 100%);
  color: var(--jur-gold-dark);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(201, 162, 39, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jur-notif-mark-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.jur-notif-mark-btn:disabled {
  cursor: default;
}

.jur-notif-mark-btn.is-loading {
  opacity: 0.92;
  cursor: wait;
}

.jur-notif-mark-btn.is-done {
  border-color: rgba(46, 125, 50, 0.35);
  background: linear-gradient(180deg, #f4fbf5 0%, #e6f4e8 100%);
  color: #2e7d32;
  box-shadow: 0 3px 12px rgba(46, 125, 50, 0.12);
}

.jur-notif-mark-btn__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jur-notif-mark-btn.is-loading .jur-notif-mark-btn__label::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: jur-notif-spin 0.7s linear infinite;
}

.jur-notif-mark-btn.is-done .jur-notif-mark-btn__label::before {
  content: '✓';
  font-size: 0.95rem;
  font-weight: 700;
}

@keyframes jur-notif-spin {
  to { transform: rotate(360deg); }
}

.jur-notif-load-more {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px 24px;
  color: #8a8272;
  font-size: 0.82rem;
}

.jur-notif-load-more.is-loading {
  display: flex;
}

.jur-notif-load-more__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(201, 162, 39, 0.25);
  border-top-color: var(--jur-gold);
  border-radius: 50%;
  animation: jur-notif-spin 0.7s linear infinite;
}

.jur-dash-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.jur-dash-logout:active {
  background: rgba(255, 255, 255, 0.18);
}

.jur-dash-cta {
  margin-bottom: 18px;
  border-radius: 12px !important;
  text-transform: none;
  letter-spacing: 0.01em;
}

.jur-dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.jur-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.04);
}

.jur-stat-card .jur-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jur-ink-muted);
  margin-bottom: 6px;
  white-space: nowrap;
}

.jur-stat-card .jur-stat-value {
  font-family: var(--jur-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--jur-charcoal);
  line-height: 1;
}

.jur-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
}

.jur-section-head h2 {
  font-family: var(--jur-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jur-charcoal);
  margin: 0;
  line-height: 1.2;
  width: 100%;
}

.jur-section-sub {
  font-size: 0.92rem;
  color: var(--jur-muted, #667);
  margin: 0;
  line-height: 1.45;
  width: 100%;
  max-width: 36em;
}

.jur-caso-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.jur-caso-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.04);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.jur-caso-card:active {
  transform: scale(0.99);
  box-shadow: 0 1px 6px rgba(26, 35, 50, 0.06);
}

.jur-caso-card__main {
  flex: 1;
  min-width: 0;
}

.jur-caso-card .jur-caso-title {
  font-weight: 600;
  color: var(--jur-charcoal);
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jur-caso-card .jur-caso-meta {
  font-size: 12px;
  color: var(--jur-ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.jur-caso-date {
  color: var(--jur-ink-muted);
}

.jur-caso-chevron {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: rgba(26, 26, 26, 0.25);
  line-height: 1;
}

.jur-empty-state {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed rgba(26, 35, 50, 0.12);
}

.jur-empty-state .jur-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.jur-empty-state p {
  margin: 0;
  font-size: 14px;
  color: var(--jur-ink-muted);
  line-height: 1.5;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* —— Dashboard advogado —— */
.jur-dash-actions--adv {
  margin-bottom: 18px;
}

.jur-adv-caso-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.04);
  margin-bottom: 10px;
}

.jur-adv-caso-card__main {
  margin-bottom: 12px;
}

.jur-adv-cliente {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--jur-ink-muted);
}

.jur-adv-caso-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jur-adv-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  border: 1px solid rgba(26, 35, 50, 0.12);
  background: #fff;
  color: var(--jur-charcoal);
}

.jur-adv-btn--primary {
  background: var(--jur-charcoal);
  color: #fff;
  border-color: var(--jur-charcoal);
}

.jur-adv-btn--ia {
  background: linear-gradient(180deg, #2b3d52 0%, #1a2332 100%);
  color: #fff;
  border-color: #1a2332;
}

.jur-adv-btn--ghost {
  background: #fff;
}

.jur-adv-btn--ver {
  background: #fff;
  color: var(--jur-navy, #1e3a5f);
  border: 1px solid rgba(30, 58, 95, 0.35);
  font-weight: 600;
}

.jur-adv-btn--sm {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 0;
}

.jur-adv-analise-tools .jur-adv-btn,
.jur-adv-btn--tool {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 12px;
}

.jur-adv-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.jur-adv-analise {
  margin: 12px 0 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  background: #f8f6f1;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 50, 0.08);
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

.jur-adv-analise-wrap,
.jur-adv-doc-wrap {
  margin-top: 12px;
  padding: 14px 16px;
  background: #f8f6f1;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 50, 0.08);
}

.jur-adv-analise-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.jur-adv-analise-title {
  margin: 0;
  font-family: var(--jur-font-display);
  font-size: 1rem;
  color: var(--jur-charcoal);
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 6px;
}

.jur-adv-analise-tools {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  justify-content: flex-end;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.jur-adv-analise-tools::-webkit-scrollbar {
  display: none;
}

.jur-adv-analise-preview {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
}

.jur-adv-analise-edit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 160px;
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--jur-ink);
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  outline: none;
  cursor: default;
}

.jur-adv-analise-edit.is-editing {
  cursor: text;
  border-color: var(--jur-gold, #c9a227);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.jur-adv-analise-edit:focus {
  outline: none;
}

.jur-adv-analise-edit[contenteditable="false"] {
  user-select: text;
}

.jur-adv-analise-status {
  margin: 0 0 8px;
  font-size: 13px;
}

.jur-adv-analise-status--loading {
  color: var(--jur-ink-muted);
  font-style: italic;
}

.jur-adv-analise-status--ok {
  color: #1a6b3a;
  white-space: pre-line;
}

.jur-adv-analise-status--erro {
  color: #a32a2a;
}

.jur-markdown h3,
.jur-markdown h4,
.jur-markdown h5 {
  font-family: var(--jur-font-display);
  color: var(--jur-charcoal);
  margin: 0 0 10px;
  line-height: 1.3;
}

.jur-markdown h3 { font-size: 1.1rem; }
.jur-markdown h4 { font-size: 1rem; }
.jur-markdown h5 { font-size: 0.95rem; }

.jur-markdown p {
  margin: 0 0 10px;
  color: var(--jur-ink);
}

.jur-markdown p:last-child {
  margin-bottom: 0;
}

.jur-markdown strong {
  font-weight: 700;
  color: var(--jur-charcoal);
}

.jur-markdown ul,
.jur-markdown ol {
  margin: 0 0 12px 1.2em;
  padding: 0;
}

.jur-markdown li {
  margin-bottom: 6px;
  color: var(--jur-ink);
}

.jur-markdown-loading {
  color: var(--jur-ink-muted);
  font-style: italic;
}

.jur-markdown-erro {
  color: #a32a2a;
  margin: 0;
}

/* —— Trilha do cliente —— */
.jur-trilha-page {
  background: var(--jur-bg);
  min-height: 100%;
}

.jur-trilha-hero {
  background: linear-gradient(165deg, #1a2332 0%, #1a1a1a 55%, #252018 100%);
  padding: 14px 16px 20px;
  border-bottom: 3px solid var(--jur-gold);
}

.jur-trilha-back {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  margin-bottom: 10px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.jur-trilha-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 212, 138, 0.85);
}

.jur-trilha-hero h1 {
  font-family: var(--jur-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
}

.jur-trilha-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.jur-trilha-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--jur-gold-dark), var(--jur-gold-light));
  border-radius: 3px;
  transition: width 0.25s ease;
}

.jur-trilha-progress__label {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.jur-trilha-body {
  padding: 16px 16px 28px !important;
  height: auto !important;
  overflow: visible !important;
}

.jur-trilha-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.05);
}

.jur-trilha-step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jur-gold-dark);
  margin-bottom: 10px;
}

.jur-trilha-q {
  font-family: var(--jur-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--jur-charcoal);
  margin: 0 0 8px;
  line-height: 1.35;
}

.jur-trilha-q-sub {
  font-size: 14px;
  color: var(--jur-ink-muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.jur-trilha-opt {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--jur-ink-muted);
}

.jur-trilha-field {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#navegacao .jur-trilha-card input.jur-trilha-input,
#navegacao .jur-trilha-card textarea.jur-trilha-input,
#navegacao .jur-trilha-card select.jur-trilha-input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid #ddd5c4;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.45;
  box-sizing: border-box;
  background: #fdfcfa;
  color: var(--jur-charcoal);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 2px rgba(26, 26, 26, 0.04);
}

#navegacao .jur-trilha-card .jur-trilha-input--text,
#navegacao .jur-trilha-card .jur-trilha-input--date,
#navegacao .jur-trilha-card .jur-trilha-input--select {
  min-height: 48px;
}

#navegacao .jur-trilha-card .jur-trilha-input--area {
  min-height: 120px;
  resize: vertical;
}

#navegacao .jur-trilha-card .jur-trilha-input:focus {
  outline: none;
  border-color: var(--jur-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.jur-trilha-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd5c4;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fdfcfa;
  color: var(--jur-charcoal);
}

.jur-trilha-input:focus {
  outline: none;
  border-color: var(--jur-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.jur-trilha-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd5c4;
  border-radius: 12px;
  background: #fdfcfa;
  box-sizing: border-box;
}

.jur-trilha-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--jur-charcoal);
  cursor: pointer;
}

.jur-trilha-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.jur-trilha-anexo {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd5c4;
  border-radius: 12px;
  background: #fdfcfa;
  box-sizing: border-box;
}

.jur-trilha-anexo-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--jur-ink-muted);
}

.jur-trilha-file-wrap {
  display: block;
  width: 100%;
}

.jur-trilha-file-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed rgba(26, 35, 50, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--jur-charcoal);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.jur-trilha-file {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.jur-trilha-anexo-ok {
  margin: 10px 0 0;
  font-size: 13px;
  color: #2d6a3e;
}

.jur-trilha-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
}

.jur-trilha-btn-secondary {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(26, 35, 50, 0.15);
  border-radius: 12px;
  background: #fff;
  color: var(--jur-charcoal);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

.jur-trilha-btn-next {
  grid-column: 1 / -1;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  border-radius: 12px !important;
  box-sizing: border-box;
}

.jur-trilha-done {
  text-align: center;
  padding: 28px 20px;
}

.jur-trilha-done__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.2);
  color: var(--jur-gold-dark);
  font-size: 28px;
  line-height: 52px;
  font-weight: 700;
}

.jur-trilha-done h2 {
  font-family: var(--jur-font-display);
  margin: 0 0 8px;
  color: var(--jur-charcoal);
}

.jur-trilha-done p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--jur-ink-muted);
  line-height: 1.5;
}

/* —— Framework7 dialogs (alertas / confirmações) —— */
.dialog .dialog-inner {
  background: var(--jur-card);
  border-radius: 16px;
  border: 1px solid var(--jur-border);
  box-shadow: var(--jur-shadow);
}

.dialog .dialog-title {
  font-family: var(--jur-font-display);
  font-size: 1.15rem;
  color: var(--jur-charcoal);
}

.dialog .dialog-text {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--jur-ink);
}

.dialog .dialog-buttons {
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.dialog .dialog-button {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 600;
  color: var(--jur-charcoal);
}

.dialog .dialog-button-bold {
  color: #fff;
  background: linear-gradient(180deg, #2b3d52 0%, #1a2332 100%);
}

.jur-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.jur-dash-page--tabbar .jur-area-grid {
  margin-bottom: 0;
  padding-bottom: 4px;
}

.jur-area-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.06);
}

.jur-area-card__icon { font-size: 1.4rem; }
.jur-area-card__title { font-weight: 700; color: var(--jur-charcoal); font-size: 0.95rem; }
.jur-area-card__desc { font-size: 0.8rem; color: var(--jur-muted, #667); line-height: 1.3; }

.jur-esc-list { display: flex; flex-direction: column; gap: 12px; }
.jur-esc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.06);
}
.jur-esc-card__main { min-width: 0; }
.jur-esc-card .jur-esc-btn {
  width: 100%;
  margin: 0;
  border-radius: 12px !important;
}
.jur-esc-title { margin: 0 0 4px; font-size: 1rem; color: var(--jur-charcoal); }
.jur-esc-endereco, .jur-esc-meta { margin: 0; font-size: 0.85rem; color: var(--jur-muted, #667); }
.jur-geo-hint { font-size: 0.9rem; color: var(--jur-muted, #667); margin-bottom: 12px; }

/* —— Tabbar fixo + painel popup —— */
.jur-tabbar-spacer {
  width: 100%;
  height: var(--jur-tabbar-clearance, 84px);
  flex-shrink: 0;
  pointer-events: none;
}

.jur-dash-page--tabbar .jur-dash-body {
  padding-bottom: 20px;
}

#navegacao:has(.jur-dash-page--tabbar) {
  scroll-padding-bottom: var(--jur-tabbar-clearance, 84px);
}

.jur-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(26, 35, 50, 0.1);
  box-shadow: 0 -4px 20px rgba(26, 26, 26, 0.08);
}

.jur-tabbar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #667;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  min-width: 0;
}

.jur-tabbar__btn.is-active {
  color: var(--jur-charcoal, #1a2332);
  background: rgba(232, 212, 138, 0.25);
}

.jur-tabbar__icon { font-size: 1.25rem; line-height: 1; }
.jur-tabbar__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.jur-tabbar__icon-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 1.5rem;
}

.jur-tabbar__badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #d32f2f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 1px;
}

.jur-tabbar__badge[hidden] {
  display: none !important;
}

.jur-tabbar__badge--pulse {
  animation: jur-ag-badge-pulse 1s ease-in-out infinite;
}

.jur-tabbar__btn--alert {
  position: relative;
  animation: jur-tabbar-btn-alert 1.4s ease-in-out infinite;
}

.jur-tabbar__btn--alert .jur-tabbar__icon {
  animation: jur-tabbar-icon-pop 0.8s ease-in-out infinite;
}

@keyframes jur-ag-badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.5); }
  50% { transform: scale(1.12); opacity: 0.92; box-shadow: 0 0 0 4px rgba(211, 47, 47, 0); }
}

@keyframes jur-tabbar-btn-alert {
  0%, 100% { background: transparent; }
  50% { background: rgba(211, 47, 47, 0.12); border-radius: 10px; }
}

@keyframes jur-tabbar-icon-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.jur-panel-sheet__body:has(.jur-ag-adv-shell),
.jur-panel-sheet__body:has(.jur-ag-cli-shell) {
  padding: 12px 14px 20px;
  background: linear-gradient(180deg, #f8f6f1 0%, #fff 120px);
}

.jur-ag-adv-shell,
.jur-ag-cli-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jur-ag-adv-head,
.jur-ag-cli-head {
  padding: 4px 2px 2px;
}

.jur-ag-adv-head h3,
.jur-ag-cli-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jur-charcoal, #1a2332);
}

.jur-ag-adv-head p,
.jur-ag-cli-head p {
  margin: 0;
  font-size: 0.82rem;
  color: #667;
  line-height: 1.45;
}

.jur-ag-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jur-ag-card {
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.06);
}

.jur-ag-card--pending {
  border-color: rgba(230, 81, 0, 0.35);
  box-shadow: 0 2px 14px rgba(230, 81, 0, 0.1);
}

.jur-ag-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.jur-ag-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--jur-charcoal, #1a2332);
  line-height: 1.3;
}

.jur-ag-pill {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.jur-ag-pill--solicitado { background: #fff3e0; color: #e65100; }
.jur-ag-pill--proposto { background: #e3f2fd; color: #1565c0; }
.jur-ag-pill--confirmado { background: #e8f5e9; color: #2e7d32; }
.jur-ag-pill--realizado { background: #f3e5f5; color: #6a1b9a; }
.jur-ag-pill--cancelado,
.jur-ag-pill--recusado { background: #fce4ec; color: #c62828; }

.jur-ag-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #556;
  margin-bottom: 10px;
}

.jur-ag-card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jur-ag-card__meta strong {
  color: #334;
  font-weight: 600;
}

.jur-ag-propose {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #faf9f6;
  border: 1px solid rgba(201, 162, 39, 0.18);
}

.jur-ag-propose__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b6560;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jur-ag-propose__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jur-ag-propose__fields .jur-panel-input {
  margin: 0;
}

.jur-ag-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.jur-ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 14px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.jur-ag-btn:active {
  transform: scale(0.98);
}

.jur-ag-btn--full {
  grid-column: 1 / -1;
}

.jur-ag-btn--primary {
  background: linear-gradient(180deg, var(--jur-gold-light) 0%, var(--jur-gold) 52%, var(--jur-gold-dark) 100%);
  color: #1a2332;
  box-shadow: 0 3px 10px rgba(201, 162, 39, 0.22);
}

.jur-ag-btn--live {
  background: linear-gradient(180deg, #edf7ee 0%, #dcedc8 100%);
  border-color: rgba(46, 125, 50, 0.28);
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.jur-ag-btn--ghost {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.12);
  color: #445;
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.05);
}

.jur-ag-actions .jur-btn-primary,
.jur-ag-actions .jur-panel-btn-sm {
  margin-top: 0;
  border-radius: 12px;
  font-weight: 600;
}

.jur-ag-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px 16px 16px;
  color: #fff;
  background: linear-gradient(135deg, #1a2332 0%, #2d3a52 55%, #3d4f6a 100%);
  box-shadow: 0 8px 28px rgba(26, 35, 50, 0.22);
}

.jur-ag-hero--live {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 45%, #43a047 100%);
  animation: jur-ag-hero-glow 2s ease-in-out infinite;
}

.jur-ag-hero--wait {
  background: linear-gradient(135deg, #1a2332 0%, #37474f 100%);
}

.jur-ag-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  opacity: 0.95;
}

.jur-ag-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69f0ae;
  box-shadow: 0 0 0 0 rgba(105, 240, 174, 0.6);
  animation: jur-ag-live-dot 1.2s ease-in-out infinite;
}

.jur-ag-hero h4 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.jur-ag-hero p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.92;
}

.jur-ag-hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.jur-ag-hero--live .jur-ag-hero__btn {
  background: #fff;
  color: #1b5e20;
}

.jur-ag-hero__btn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.jur-ag-section {
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.05);
}

.jur-ag-section__title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--jur-charcoal, #1a2332);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes jur-ag-hero-glow {
  0%, 100% { box-shadow: 0 8px 28px rgba(46, 125, 50, 0.25); }
  50% { box-shadow: 0 8px 32px rgba(105, 240, 174, 0.35); }
}

@keyframes jur-ag-live-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(105, 240, 174, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(105, 240, 174, 0); }
}

.jur-panel-sheet {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s;
}

.jur-panel-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.jur-panel-sheet__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.25s;
}

.jur-panel-sheet.is-open .jur-panel-sheet__backdrop {
  opacity: 1;
}

.jur-panel-sheet__panel {
  position: relative;
  z-index: 2;
  max-height: min(82vh, 640px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.jur-panel-sheet__panel:has(.jur-panel-chat-compose) {
  min-height: min(72vh, 600px);
  max-height: min(88vh, 680px);
}

.jur-panel-sheet.is-open .jur-panel-sheet__panel {
  transform: translateY(0);
}

.jur-panel-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #d1d5db;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.jur-panel-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
  flex-shrink: 0;
}

.jur-panel-sheet__title {
  margin: 0;
  font-family: var(--jur-font-display);
  font-size: 1.1rem;
  color: var(--jur-charcoal);
}

.jur-panel-sheet__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--jur-charcoal);
}

.jur-panel-sheet__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  min-height: 0;
}

body.jur-panel-open #navegacao {
  /* mantém dashboard visível — sem unload */
}

body.jur-panel-open .jur-tabbar {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.jur-panel-sheet--thread .jur-panel-sheet__panel {
  min-height: min(78vh, 620px);
  max-height: min(92vh, 720px);
}

.jur-panel-sheet--thread .jur-panel-sheet__head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 10px;
}

.jur-panel-sheet--thread .jur-panel-sheet__title {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jur-panel-sheet--thread .jur-panel-sheet__close {
  justify-self: end;
}

.jur-panel-sheet__back {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.06);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--jur-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.jur-panel-sheet--thread .jur-panel-sheet__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 14px 10px;
}

.jur-panel-sheet--thread .jur-panel-chat-msgs {
  margin: 0;
  border-radius: 12px;
}

.jur-panel-sheet__panel:has(.jur-panel-chat-compose) {
  display: flex;
  flex-direction: column;
}

.jur-panel-list { display: flex; flex-direction: column; gap: 10px; }
.jur-panel-list__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.jur-panel-list__item--static { cursor: default; }
.jur-panel-list__item strong { font-size: 0.95rem; color: var(--jur-charcoal); }
.jur-panel-list__item span { font-size: 0.82rem; color: #667; }
.jur-panel-form label { display: block; font-size: 0.8rem; font-weight: 600; margin: 8px 0 4px; color: #445; }
.jur-panel-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(26, 35, 50, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.jur-panel-chat-compose .jur-panel-input,
.jur-panel-chat-compose .jur-chat-input,
.jur-panel-chat-compose #jur-p-msg {
  padding: 13px 18px;
  border-radius: 24px;
  font-size: 16px;
  min-height: 48px;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.14);
  box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.04);
}
.jur-panel-muted { color: #667; font-size: 0.9rem; }
.jur-panel-loading { text-align: center; color: #667; padding: 24px; }
.jur-panel-back {
  border: 0;
  background: transparent;
  color: var(--jur-charcoal);
  font-weight: 600;
  padding: 0 0 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* —— Roteiro por área (advogado) — espelha painel/roteiro-perguntas.css —— */
.jur-roteiro-page {
  background: var(--jur-bg);
  min-height: 100%;
}

.jur-roteiro-hero {
  background: linear-gradient(165deg, #1a2332 0%, #1a1a1a 55%, #252018 100%);
  padding: 14px 16px 20px;
  border-bottom: 3px solid var(--jur-gold);
}

.jur-roteiro-hero h1 {
  font-family: var(--jur-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.jur-roteiro-hero__sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.jur-roteiro-body {
  padding: 16px 16px 32px !important;
  max-width: 640px;
  margin: 0 auto;
  height: auto !important;
  overflow: visible !important;
}

.jur-roteiro-area-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.05);
}

.jur-roteiro-area-card .jur-field {
  margin-bottom: 0;
}

.jur-roteiro-resumo {
  font-size: 13px;
  color: var(--jur-ink-muted);
  margin: 0 0 14px;
  padding: 0 2px;
  line-height: 1.45;
}

.jur-roteiro-resumo strong {
  color: #1a2332;
}

.jur-roteiro-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jur-roteiro-etapa {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.04);
}

.jur-roteiro-etapa--inativa {
  opacity: 0.72;
  background: #f5f5f5;
}

.jur-roteiro-etapa__num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8d48a 0%, #c9a227 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.jur-roteiro-etapa__body {
  flex: 1;
  min-width: 0;
}

.jur-roteiro-etapa__titulo {
  font-family: var(--jur-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2332;
  margin: 0 0 6px;
  line-height: 1.3;
}

.jur-roteiro-etapa__pergunta {
  font-size: 14px;
  color: #5c574f;
  margin: 0 0 10px;
  line-height: 1.45;
}

.jur-roteiro-etapa__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jur-roteiro-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #f0ebe0;
  color: #3d3d3d;
}

.jur-roteiro-badge--tipo { background: #e8eef5; color: #1a3a5f; }
.jur-roteiro-badge--obrig { background: #fde8e8; color: #8b2e2e; }
.jur-roteiro-badge--ok { background: #e6f4ea; color: #1e6b3a; }
.jur-roteiro-badge--off { background: #eee; color: #666; }

.jur-roteiro-etapa__opcoes {
  font-size: 12px;
  color: #6b6560;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: #faf8f4;
  border-radius: 8px;
  border-left: 3px solid var(--jur-gold);
  line-height: 1.4;
}

.jur-roteiro-nova {
  margin-top: 18px;
}

.jur-roteiro-nova .jur-card {
  margin-bottom: 0;
}

.jur-roteiro-nova__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.jur-roteiro-nova__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a2332, #1a1a1a);
  color: var(--jur-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.jur-roteiro-nova__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.jur-roteiro-nova__head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--jur-ink-muted);
}

.jur-roteiro-empty {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed rgba(201, 162, 39, 0.35);
  color: var(--jur-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.jur-roteiro-empty__icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.85;
}

.jur-roteiro-add-btn {
  width: 100%;
  margin-top: 4px;
}

.jur-roteiro-add-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.jur-roteiro-hero {
  position: relative;
}

.jur-roteiro-nova-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a227 0%, #a8841a 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 132, 26, 0.35);
}

.jur-roteiro-etapa__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jur-roteiro-etapa__ordem-btns {
  display: inline-flex;
  gap: 4px;
}

.jur-roteiro-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #d4cfc4;
  background: #fff;
  color: #44403c;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.jur-roteiro-btn--icon {
  min-width: 36px;
  padding: 6px 8px;
  font-size: 0.75rem;
  line-height: 1;
}

.jur-roteiro-btn--edit {
  border-color: #d4a017;
  background: #fff9eb;
  color: #7a5c0a;
}

.jur-roteiro-btn--danger {
  border-color: #e8b4b4;
  background: #fff5f5;
  color: #8b2e2e;
}

.jur-roteiro-btn--ok {
  border-color: #a8d5b5;
  background: #f0faf3;
  color: #1e6b3a;
}

.jur-roteiro-btn:active {
  transform: scale(0.98);
}

.jur-roteiro-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.jur-roteiro-modal[hidden] {
  display: none !important;
}

body.jur-roteiro-modal-open {
  overflow: hidden;
}

.jur-roteiro-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
}

.jur-roteiro-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  animation: jurRoteiroSlideUp 0.28s ease;
}

@keyframes jurRoteiroSlideUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.jur-roteiro-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eee;
}

.jur-roteiro-modal__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1917;
}

.jur-roteiro-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f5f5f4;
  color: #57534e;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.jur-roteiro-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.jur-roteiro-form-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}

.jur-roteiro-form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.jur-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #44403c;
  cursor: pointer;
}

.jur-check input {
  width: 18px;
  height: 18px;
  accent-color: #b8860b;
}

.jur-roteiro-modal__foot {
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eee;
  background: #fafaf9;
}

.jur-roteiro-modal__foot .jur-btn-primary,
.jur-roteiro-modal__foot .jur-btn-ghost {
  flex: 1;
}

.jur-btn-ghost {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #57534e;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 640px) {
  .jur-roteiro-modal {
    align-items: center;
    padding: 20px;
  }

  .jur-roteiro-modal__panel {
    border-radius: 16px;
    max-height: 88vh;
  }
}

.jur-panel-btn-sm { margin-top: 8px; padding: 8px 12px; font-size: 0.85rem; }

/* —— Diálogo in-app (alert / confirm dentro da coluna do app) —— */
#app {
  position: relative;
}

.jur-dialog-root {
  position: absolute;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.jur-dialog-root[hidden] {
  display: none !important;
}

.jur-dialog-root__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.48);
  animation: jurDialogFadeIn 0.2s ease;
}

.jur-dialog-root__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  background: var(--jur-card, #fff);
  border-radius: 16px;
  border: 1px solid var(--jur-border, rgba(26, 35, 50, 0.1));
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  animation: jurDialogPopIn 0.24s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.jur-dialog-root__head {
  padding: 18px 20px 0;
}

.jur-dialog-root__title {
  margin: 0;
  font-family: var(--jur-font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--jur-charcoal, #1a2332);
}

.jur-dialog-root__body {
  margin: 0;
  padding: 10px 20px 18px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--jur-ink, #334155);
}

.jur-dialog-root__foot {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.jur-dialog-root__btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.jur-dialog-root__btn:active {
  transform: scale(0.98);
}

.jur-dialog-root__btn--ghost {
  background: #f4f1ea;
  border-color: rgba(26, 35, 50, 0.1);
  color: var(--jur-charcoal, #1a2332);
}

.jur-dialog-root__btn--primary {
  background: linear-gradient(180deg, #2b3d52 0%, #1a2332 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.22);
}

.jur-dialog-root--alert .jur-dialog-root__foot {
  justify-content: stretch;
}

@keyframes jurDialogFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes jurDialogPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* —— Suporte ao cliente —— */
.jur-sup-wrap { padding: 4px 0 12px; }
.jur-sup-lead { margin: 0 0 14px; font-size: 14px; color: var(--jur-ink-muted); line-height: 1.5; }
.jur-sup-label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--jur-ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.jur-sup-input-field {
  width: 100%; box-sizing: border-box; margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid var(--jur-border); border-radius: 12px; font-size: 15px;
}
.jur-sup-modo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.jur-sup-modo label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.jur-sup-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.jur-sup-status--aguardando { background: #fff8e6; color: #8a6d00; }
.jur-sup-status--em_atendimento { background: #e8f5ee; color: #1a6b3a; }
.jur-sup-thread-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.jur-sup-assunto { font-size: 13px; color: var(--jur-ink-muted); }
.jur-sup-msgs {
  max-height: min(48vh, 360px); overflow-y: auto; padding: 8px 4px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.jur-sup-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; }
.jur-sup-msg--mine { align-self: flex-end; align-items: flex-end; }
.jur-sup-msg__bubble {
  padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  background: #f0ebe3; color: var(--jur-ink);
}
.jur-sup-msg--mine .jur-sup-msg__bubble { background: var(--jur-charcoal); color: #fff; }
.jur-sup-msg__time { font-size: 11px; color: var(--jur-ink-muted); margin-top: 4px; }
.jur-sup-actions { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 10px; }
.jur-sup-hint {
  margin: 0; padding: 12px 14px; font-size: 13px; color: var(--jur-ink-muted); line-height: 1.45;
  background: #faf8f2; border: 1px solid #ebe4d6; border-radius: 12px;
}
.jur-sup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.jur-sup-btn:active { transform: scale(0.98); }
.jur-sup-btn--primary {
  color: var(--jur-charcoal);
  background: linear-gradient(180deg, var(--jur-gold-light) 0%, var(--jur-gold) 52%, var(--jur-gold-dark) 100%);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.28);
}
.jur-sup-btn--ghost {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.14);
  color: #4a5568;
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.06);
}
.jur-sup-btn--ghost:active { background: #f7f5f1; }
.jur-sup-btn--danger {
  background: #fff;
  border-color: rgba(163, 42, 42, 0.22);
  color: #a32a2a;
}
.jur-sup-btn--danger:active { background: #fff5f5; }
.jur-sup-btn--video {
  background: linear-gradient(180deg, #edf7ee 0%, #dcedc8 100%);
  border-color: rgba(46, 125, 50, 0.28);
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.12);
}
.jur-sup-empty { margin: 0; font-size: 13px; color: var(--jur-ink-muted); text-align: center; padding: 20px 0; }
.jur-sup-compose { display: flex; gap: 8px; align-items: center; }
.jur-sup-compose input {
  flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--jur-border);
  border-radius: 999px; font-size: 15px;
}
.jur-btn-spinner {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: jur-chat-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.jur-chat-send-btn .jur-btn-spinner {
  border-color: rgba(26, 35, 50, 0.2);
  border-top-color: var(--jur-charcoal);
}
.jur-sup-send {
  flex-shrink: 0;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--jur-charcoal); color: #fff; font-size: 18px; cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jur-sup-send.is-loading,
.jur-sup-btn.is-loading {
  pointer-events: none;
  cursor: wait;
}
.jur-sup-send.is-loading { opacity: 1; }
.jur-sup-btn.is-loading { opacity: 0.88; }
.jur-sup-send:disabled:not(.is-loading) { opacity: 0.55; cursor: not-allowed; }
.jur-tabbar__btn[data-tab="suporte"] .jur-tabbar__icon { font-size: 1.15rem; }
