/**
 * Portal Seguramos — estilos da aplicação
 * Variáveis de marca: ajusta aqui sem tocar no PHP.
 */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;600&display=swap");

:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --stroke: #e5e7eb;
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --brand1: #005c7e;
  --brand2: #07bed3;
  --brand: #19b8d3;
  --select-arrow-inset: 10px;
  --select-arrow-size: 16px;
  --select-arrow-gap: 12px;
  --select-arrow-padding-right: calc(var(--select-arrow-inset) + var(--select-arrow-size) + var(--select-arrow-gap));
  --select-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ---------- Login ---------- */
.login-page * {
  box-sizing: border-box;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa, #e4e8ef);
  padding: 18px;
}

.login-page .login {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 360px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.login-page .login img {
  max-width: 189px;
  margin-bottom: 22px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-page .login-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.login-page input[type="text"],
.login-page input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.login-page input[type="text"]:focus,
.login-page input[type="password"]:focus {
  border-color: rgba(7, 190, 211, 0.85);
  box-shadow: 0 0 0 4px rgba(7, 190, 211, 0.18);
}

.login-page button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background: #19b8d3;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.login-page button:hover {
  background: #000;
}

.login-page .erro {
  color: #d93025;
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.35;
}

.login-page .login-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}

.login-page input.login-code-input {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.login-page .login-inline-form {
  margin-top: 10px;
}

.login-page .login-btn-link {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #005c7e;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.login-page .login-btn-link:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.login-page .login-btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-page .login-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

.login-page .login-foot a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}

.login-page .login-foot a:hover {
  color: #005c7e;
  text-decoration: underline;
}

.login-page .login-success {
  color: #0f766e;
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.35;
}

/* Criar release — assistente de listas (modal) */
.app .create-list-modal {
  width: min(520px, 96vw);
  height: auto;
  max-height: min(88vh, 720px);
}

.app .create-list-body {
  padding: var(--sb-modal-pad) var(--sb-modal-pad-x) var(--sb-modal-pad-x);
  overflow-y: auto;
  max-height: min(70vh, 560px);
}

.app .create-list-intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

.app .create-list-rows {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app .create-list-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
}

.app .create-list-level-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app .create-list-level-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.app .create-list-level {
  width: 100%;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  background: #fff;
}

.app .create-list-text {
  width: 100%;
  min-width: 0;
}

.app .create-list-remove-btn {
  padding: 8px;
  min-width: 40px;
}

.app .create-list-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.app .create-list-actions {
  margin-top: 4px;
}

/* ---------- App shell ---------- */
.app * {
  box-sizing: border-box;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg), #e4e8ef);
  color: var(--text);
}

.app a {
  color: inherit;
  text-decoration: none;
}

.app .layout {
  display: flex;
  min-height: 100vh;
}

/* Criar release / Multimédia / áreas com tabs: preencher altura útil */
.app .main:has(.create-release-page),
.app .main:has(.media-page),
.app .main:has(.card--releases .releases-area-panel),
.app .main:has(.card--events .events-area-panel),
.app .main:has(.card--tasks .tasks-area-panel) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

.app .main:has(.create-release-page) > .card,
.app .main:has(.media-page) > .card,
.app .main > .card.card--releases,
.app .main > .card.card--events,
.app .main > .card.card--tasks {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app .main:has(.create-release-page) > .card > .topbar,
.app .main:has(.media-page) > .card > .topbar,
.app .main > .card.card--releases > .topbar,
.app .main > .card.card--releases > .releases-area-tabs-wrap,
.app .main > .card.card--events > .topbar,
.app .main > .card.card--events > .events-area-tabs-wrap,
.app .main > .card.card--tasks > .topbar,
.app .main > .card.card--tasks > .tasks-area-tabs-wrap {
  flex-shrink: 0;
}

.app .main > .card.card--releases > .releases-area-panel,
.app .main > .card.card--events > .events-area-panel,
.app .main > .card.card--tasks > .tasks-area-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app .sidebar {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 0 0 248px;
  width: 248px;
  min-width: 248px;
  max-width: 248px;
  background: linear-gradient(180deg, var(--brand1), var(--brand2));
  color: rgba(255, 255, 255, 0.92);
  padding: 18px 14px;
  transition: width 0.22s ease, min-width 0.22s ease, max-width 0.22s ease, padding 0.22s ease;
  z-index: 4;
}

.app body.sb-sidebar-collapsed .sidebar {
  flex-basis: 88px;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  padding-left: 12px;
  padding-right: 12px;
}

.app .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 68px;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
  width: 100%;
}

.app .brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  padding-left: 8px;
}

.app .brand-logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.app .brand-logo--compact {
  display: none;
  width: 30px;
}

.app .sidebar-toggle {
  position: absolute;
  top: 44px;
  right: -13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--brand1);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.22);
  transform: translateY(-50%);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 12;
}

.app .sidebar-toggle:hover {
  background: #004960;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.app .sidebar-toggle-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.app body.sb-sidebar-collapsed .brand {
  min-height: 92px;
  padding-top: 10px;
}

.app body.sb-sidebar-collapsed .brand-logo--full {
  display: none;
}

.app body.sb-sidebar-collapsed .brand-link {
  justify-content: center;
  padding-left: 0;
}

.app body.sb-sidebar-collapsed .brand-logo--compact {
  display: block;
}

.app body.sb-sidebar-collapsed .sidebar-toggle {
  top: 44px;
  right: -13px;
  transform: translateY(-50%);
}

.app .nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-top: 4px;
}

/* —— Sidebar (inspirado Email Funnel — Dribbble 2287587) —— */
.app .nav-funnel .nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.app .nav-funnel .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.app .nav-funnel .nav-menu > .nav-item,
.app .nav-funnel .nav-menu > .nav-group > summary {
  min-height: 48px;
}

.app .nav-funnel a.nav-item--l2:hover,
.app .nav-funnel .nav-item--l2.nav-item--parent:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.app .nav-funnel .nav-item--l1:hover,
.app .nav-funnel a.nav-item--l1:hover,
.app .nav-funnel .nav-item--l1.nav-item--parent:hover {
  border-radius: 0;
  margin-left: -14px;
  margin-right: -14px;
  width: calc(100% + 28px);
  padding-left: 24px;
  padding-right: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.app .nav-funnel .nav-item-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: transparent;
}

.app .nav-funnel .nav-item-icon-wrap--sm {
  width: 1.65rem;
  height: 1.65rem;
}

.app .nav-funnel .nav-item-icon {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.95;
}

.app .nav-funnel .nav-item-icon-wrap--sm .nav-item-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.app .nav-funnel .nav-item-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.app .nav-funnel .nav-item-chevron {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.app .nav-funnel .nav-item-chevron--trail {
  margin-left: auto;
}

.app .nav-funnel .nav-group[open] > .nav-item--parent .nav-item-chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.app .nav-funnel .nav-group {
  position: relative;
}

.app .nav-funnel .nav-group--flyout[open]::after {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(100% - 2px);
  width: 18px;
  height: 60px;
}

/* Pais (1.º nível) */
.app .nav-funnel .nav-item--l1 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.app .nav-funnel .nav-item--l1.is-active,
.app .nav-funnel .nav-item--l1.nav-item--parent.is-active {
  border-radius: 0;
  margin-left: -14px;
  margin-right: -14px;
  width: calc(100% + 28px);
  padding-left: 24px;
  padding-right: 24px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: none;
}

/* Submenus flutuantes */
.app .nav-funnel .nav-children {
  display: none;
}

.app .nav-funnel .nav-group[open] > .nav-flyout {
  display: flex;
  flex-direction: column;
}

.app .nav-funnel .nav-flyout {
  position: absolute;
  top: 2px;
  left: calc(100% - 2px);
  min-width: 168px;
  max-width: 220px;
  padding: 12px 14px;
  border-radius: 0 10px 10px 10px;
  border: 1px solid rgba(2, 6, 23, 0.18);
  background: #1f5268;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
  gap: 6px;
  z-index: 30;
}

.app .nav-funnel .nav-flyout::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -11px;
  width: 14px;
  height: 22px;
  border-radius: 12px 0 0 12px;
  background: #1f5268;
  box-shadow: -2px 0 6px rgba(2, 6, 23, 0.1);
}

.app .nav-funnel .nav-flyout-title {
  display: none;
}

.app .nav-funnel .nav-item--l2 {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}

.app .nav-funnel .nav-item--l2.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
}

.app .nav-funnel .nav-flyout .nav-item-icon-wrap {
  display: none;
}

.app .nav-funnel .nav-flyout .nav-item-label {
  text-align: left;
}

.app .nav-funnel .nav-flyout .nav-item--l2:hover {
  background: rgba(255, 255, 255, 0.08);
}

.app body.sb-sidebar-collapsed .nav-funnel .nav-flyout {
  left: calc(100% + 8px);
  top: 0;
}

.app body.sb-sidebar-collapsed .nav-funnel .nav-group--flyout[open]::after {
  left: 100%;
  width: 18px;
}

.app .nav-funnel .nav-group > summary {
  list-style: none;
}

.app .nav-funnel .nav-group > summary::-webkit-details-marker {
  display: none;
}

.app .nav-funnel .nav-group > summary::marker {
  content: "";
}

.app .footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app .nav-funnel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.app .nav-user-section {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.app .nav-user-heading {
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.app .nav-user-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app .nav-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.app .nav-user-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app .nav-user-item-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.app .nav-user-item-stack {
  align-items: flex-start;
}

.app .nav-user-stack-text {
  flex: 1;
  min-width: 0;
}

.app .nav-user-sub {
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}

.app .nav-user-text {
  flex: 1;
  min-width: 0;
}

.app .nav-user-item.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.app .nav-user-item-logout {
  margin-top: 4px;
  opacity: 1;
  color: #fff;
}

.app body.sb-sidebar-collapsed .nav-menu > .nav-item.nav-item--l1,
.app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary,
.app body.sb-sidebar-collapsed .nav-user-item {
  justify-content: center;
  gap: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.app body.sb-sidebar-collapsed .nav-menu > .nav-item.nav-item--l1:hover,
.app body.sb-sidebar-collapsed .nav-menu > .nav-item.nav-item--l1.is-active,
.app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary:hover,
.app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary.is-active {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  border-radius: 12px;
  padding-left: 10px;
  padding-right: 10px;
}

.app body.sb-sidebar-collapsed .nav-menu > .nav-item .nav-item-label,
.app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary .nav-item-label,
.app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary .nav-item-chevron,
.app body.sb-sidebar-collapsed .nav-user-heading,
.app body.sb-sidebar-collapsed .nav-user-text,
.app body.sb-sidebar-collapsed .nav-user-sub,
.app body.sb-sidebar-collapsed .nav-user-stack-text,
.app body.sb-sidebar-collapsed .nav-user-item .nav-item-chevron--trail {
  display: none;
}

.app body.sb-sidebar-collapsed .nav-user-item-stack {
  align-items: center;
}

.app body.sb-sidebar-collapsed .nav-item-icon-wrap,
.app body.sb-sidebar-collapsed .nav-user-item .nav-item-icon-wrap {
  width: 2rem;
  height: 2rem;
}

.app body.sb-sidebar-collapsed .nav-user-section {
  align-items: center;
}

.app .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 650;
}

.app .pill.btn-salmon {
  background: #ffe8e3;
  border-color: #f5c4b8;
  color: #0f172a;
}

.app .pill.btn-salmon:hover {
  background: #ffd9d0;
  border-color: #e8a898;
  color: #0f172a;
}

.app .pill:not(.btn-salmon):hover {
  background: rgba(0, 0, 0, 0.18);
}

.app .main {
  width: 100%;
  padding: 18px;
}

.app .card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app .topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.app .topbar-heading {
  flex: 1;
  min-width: 0;
}

.app .mobile-app-bar {
  display: none;
}

.app .sidebar-mobile-head {
  display: none;
}

.app .nav-funnel .nav-menu > .nav-group > summary .nav-item-chevron {
  display: none;
  margin-left: auto;
}

.app .sidebar-backdrop {
  display: none;
}

.app .title {
  color: #125c71;
  font-size: 25px;
  font-weight: 200;
  line-height: 1.25;
}

.app .muted {
  color: var(--muted);
  font-size: 13px;
}

.app .spacer {
  flex: 1;
}

.app .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

.app .btn:hover {
  filter: brightness(0.97);
  border-color: #cbd5e1;
}

.app .btn-sage {
  background: #eafcef;
  border-color: #c5e6cf;
  color: #0f172a;
}

.app .btn-sage:hover {
  background: #dff5e4;
  border-color: #a8d9b6;
  color: #0f172a;
}

.app .btn-salmon {
  background: #ffe8e3;
  border-color: #f5c4b8;
  color: #0f172a;
}

.app .btn-salmon:hover {
  background: #ffd9d0;
  border-color: #e8a898;
  color: #0f172a;
}

.app .btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.app .btn-icon-only {
  padding: 8px;
  min-width: 40px;
}

.app .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app .btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.app .btn.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.app .content {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 60px - 36px);
}

.app .list {
  border-right: 1px solid var(--stroke);
  padding: 10px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.app .list--archive {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app .archive-list-head {
  padding: 8px 6px 10px;
  border-bottom: 1px solid var(--stroke);
}

.app .archive-list-head-copy {
  display: grid;
  gap: 8px;
}

.app .archive-list-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00b4d8;
}

.app .archive-list-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app .archive-list-title {
  font-size: 24px;
  line-height: 1;
  color: #125c71;
}

.app .archive-list-subtle {
  margin: 0;
}

.app .archive-empty-state,
.app .archive-viewer-empty {
  padding: 18px;
  color: var(--muted);
}

.app .year-picker {
  position: relative;
}

.app .year-picker > summary {
  list-style: none;
}

.app .year-picker > summary::-webkit-details-marker {
  display: none;
}

.app .year-picker > summary::marker {
  content: "";
}

.app .year-picker-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 108px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #f8fafc;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.app .year-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  padding: 8px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 15;
}

.app .year-picker[open] .year-picker-menu {
  display: grid;
  gap: 4px;
}

.app .year-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.app .year-picker-option:hover {
  background: #f1f5f9;
}

.app .year-picker-option.is-active {
  background: rgba(0, 180, 216, 0.12);
  color: #0077b6;
}

.app .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: #fff;
  margin-bottom: 8px;
}

.app .list--archive .item {
  margin-bottom: 5px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.app .item:hover {
  background: #f8fafc;
}

.app .item.active {
  border-color: rgba(25, 184, 211, 0.45);
  background: rgba(25, 184, 211, 0.1);
}

.app .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.app .item.active .dot {
  background: var(--brand);
}

.app .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app .item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app .item-author {
  font-size: 12px;
}

.app .viewer {
  display: flex;
  flex-direction: column;
}

.app .viewer-top {
  padding: 30px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.app .iframe {
  border: 0;
  width: 100%;
  flex: 1;
  background: #fff;
}

/* ---------- Modals ---------- */
html.app {
  --sb-modal-pad: 34px;
  --sb-modal-pad-x: 38px;
}

.app .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.app .modal-overlay.open,
.modal-overlay.open {
  display: flex;
}

.app .modal {
  width: min(1100px, 96vw);
  height: min(80vh, 820px);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app .modal.modal-lg {
  width: min(920px, 96vw);
  height: min(88vh, 900px);
}

.app .modal-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--sb-modal-pad) var(--sb-modal-pad-x);
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
}

.app .modal-title {
  font-weight: 850;
}

.app .modal-h-with-desc {
  align-items: flex-start;
}

.app .modal-h-with-desc > .btn {
  margin-top: 2px;
  flex-shrink: 0;
}

.app .modal-h-text {
  flex: 1;
  min-width: 0;
}

.app .modal-h-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.42;
  max-width: 46rem;
}

.app .mono-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  font-weight: 600;
  background: #eef2f7;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

.app .modal-pre {
  margin: 0;
  padding: var(--sb-modal-pad);
  overflow: auto;
  flex: 1;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.app .modal-body-flex {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.app .modal-preview {
  flex: 1;
  min-height: 200px;
  border-bottom: 1px solid var(--stroke);
  position: relative;
}

.app .modal-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
}

.app .modal-preview-loading[hidden] {
  display: none !important;
}

.app .modal-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  background: #fff;
}

.app .email-send-modal .modal-preview.email-modal-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app .email-modal-preview-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--stroke);
  background: #f8fafc;
  font-size: 12px;
}

.app .email-modal-preview-bar-title {
  font-weight: 800;
  color: var(--text);
}

.app .email-modal-preview-bar-meta {
  font-size: 11px;
  font-weight: 650;
}

.app .email-modal-preview-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
  min-height: 0;
}

.app .email-modal-preview-inner iframe {
  flex: 1;
  width: 100%;
  min-height: 200px;
  height: auto;
}

.app .modal-form {
  padding: var(--sb-modal-pad);
  display: grid;
  gap: 10px;
  flex-shrink: 0;
}

.app .modal-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.app .modal-form input,
.app .modal-form textarea {
  width: 100%;
  padding: 20px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  background-color: #efefef;
  box-sizing: border-box;
  font-family: inherit;
}

.app .modal-form textarea {
  min-height: 88px;
  resize: vertical;
}

.app .modal-form .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.app .modal-error {
  color: #b91c1c;
  font-size: 13px;
  padding: 0 var(--sb-modal-pad-x) calc(var(--sb-modal-pad) - 4px);
}

/* Email: formulário com scroll + anexos + submodais sobre o modal principal */
.app .modal-body-flex > .modal-form.modal-form-scroll {
  flex: 1 1 42%;
  min-height: 0;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app .email-attach-block {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.app .email-attach-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.app .email-attach-title {
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.app .email-attach-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
}

.app .email-attach-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.app .email-attach-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app .email-attach-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app .email-attach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #f8fafc;
  font-size: 13px;
}

.app .email-attach-row-name {
  min-width: 0;
  word-break: break-word;
}

.app .email-attach-meter {
  margin: 0;
  font-size: 12px;
}

.app #emailModal .email-modal-form {
  gap: 14px;
}

.app #emailModal .email-modal-section {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #fafbfc;
}

.app #emailModal .email-modal-section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.app #emailModal .email-modal-section-attach .email-attach-head {
  margin-bottom: 0;
}

.app #emailModal .email-attach-points {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.48;
}

.app #emailModal .email-attach-points li + li {
  margin-top: 4px;
}

.app #emailModal .email-attach-toolbar {
  gap: 10px;
}

.app #emailModal .email-attach-tool-btn {
  flex: 1 1 160px;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
}

.app #emailModal .modal-form input {
  padding: 10px 12px;
  min-height: 42px;
  box-sizing: border-box;
}

.app #emailModal .email-modal-actions {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.app .modal-overlay.email-submodal-overlay {
  z-index: 70;
  background: rgba(2, 6, 23, 0.62);
}

.app .email-attach-picker-modal {
  max-height: min(88vh, 900px);
}

.app .email-attach-picker-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 38px 38px;
  gap: 12px;
}

.app .email-attach-bc-wrap {
  flex-shrink: 0;
}

.app .email-attach-bc-label,
.app .email-attach-picker-scroll-label {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 5px;
}

.app .email-attach-bc-wrap .email-attach-bc {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #efefef;
}

.app .email-attach-picker-scroll-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.app .email-attach-bc {
  flex-shrink: 0;
  padding: 10px 0 0;
}

.app .email-attach-picker-scroll {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(48vh, 440px);
  overflow: auto;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.app .email-attach-picker-scroll .media-folder-list {
  padding-top: 10px;
}

.app .email-attach-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  flex-shrink: 0;
}

.app .email-media-pick-table th:first-child,
.app .email-media-pick-table td:first-child {
  text-align: center;
  vertical-align: middle;
}

.app .email-media-pick-cb {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.app .email-media-pick-table tbody tr {
  transition: background-color 0.12s ease;
}

.app .email-media-pick-table tbody tr:hover {
  background: #f1f5f9;
}

.app .email-archive-local-intro {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.app .email-archive-pending-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #f8fafc;
  font-size: 13px;
  max-height: 140px;
  overflow-y: auto;
}

.app .email-archive-pending-list li + li {
  margin-top: 4px;
}

.app .email-archive-dest-label {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

/* Editor create */
.app .editor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.app .editor-toolbar label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.app .editor-toolbar select,
.app .editor-toolbar input[type="text"] {
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  min-width: 120px;
  background-color: #efefef;
  min-height: 40px;
  box-sizing: border-box;
}

.app .editor-toolbar input.filename-input {
  min-width: 220px;
}

.app .editor-toolbar .release-editor-year-readonly {
  display: inline-flex;
  align-items: center;
  min-width: 4.5rem;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--surface-2, #f4f6f8);
  font-weight: 600;
  color: var(--ink);
}

.app body.is-create-split-dragging {
  cursor: ns-resize !important;
  user-select: none;
}

.app body.is-create-split-dragging iframe {
  pointer-events: none;
}

.app .CodeMirror {
  height: 65vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* Criar release: página em coluna, editor ocupa o restante */
.app .create-release-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  box-sizing: border-box;
}

.app .create-release-page > .editor-toolbar {
  flex-shrink: 0;
  margin-bottom: 10px;
}

.app .create-release-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.app .create-release-card > .viewer-top {
  flex-shrink: 0;
}

.app .create-editor-stack {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.app .create-preview-panel {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #f8fafc;
}

.app .create-editor-split {
  flex-shrink: 0;
  height: 10px;
  margin: 0;
  padding: 0;
  border: none;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 45%, #eef2f7 100%);
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.app .create-editor-split:hover {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
}

.app .create-editor-split:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(25, 184, 211, 0.45);
}

.app .create-editor-split-grip {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    #94a3b8 0 3px,
    transparent 3px 6px
  );
  opacity: 0.85;
  pointer-events: none;
}

.app .create-editor-bottom {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app .create-preview-bar {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px 6px;
}

.app .create-preview-iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  display: block;
}

.app .create-html-toolbar.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  flex-shrink: 0;
  width: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app .wysiwyg-toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border-right: 1px solid rgba(148, 163, 184, 0.45);
}

.app .wysiwyg-toolbar-group:last-of-type {
  border-right: 0;
}

.app .wysiwyg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.app .wysiwyg-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.55);
  color: #0f172a;
}

.app .wysiwyg-btn:active {
  background: rgba(226, 232, 240, 0.95);
}

.app .wysiwyg-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.app .wysiwyg-swatch {
  padding: 6px 9px;
}

.app .wysiwyg-swatch-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.app .wysiwyg-toolbar-spacer {
  flex: 1;
  min-width: 8px;
}

.app .wysiwyg-toolbar-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  white-space: nowrap;
}

.app .wysiwyg-hint-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.app .create-cm-wrap {
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app .create-cm-wrap .CodeMirror {
  height: auto !important;
  flex: 1;
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* Multimédia (uploads/) — alinhado a .create-release-page / .editor-toolbar / .viewer-top */
.app .media-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px;
  box-sizing: border-box;
}

.app .media-toolbar.editor-toolbar {
  align-items: flex-start;
}

.app .media-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  flex: 1 1 220px;
  min-width: 0;
}

.app .media-bc a {
  color: var(--brand1);
}

.app .media-bc a:hover {
  text-decoration: underline;
}

.app .media-bc-sep {
  color: var(--muted);
  font-weight: 600;
  user-select: none;
}

.app .media-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.app .media-input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  min-width: 120px;
}

.app .media-upload-card {
  margin-bottom: 12px;
}

.app .media-upload-card--tint {
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.app .media-upload-card--tint .media-card-title {
  color: #0f172a;
}

.app .media-upload-card-text {
  color: #334155;
}

.app .media-upload-card,
.app .media-list-card {
  padding: 0;
  overflow: hidden;
}

.app .media-card-title {
  font-weight: 850;
  font-size: 15px;
  padding: 14px 14px 0;
}

.app .media-card-sub {
  margin: 0;
  padding: 6px 14px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.app .media-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 14px 14px;
}

.app .media-file-label {
  flex: 1 1 140px;
  min-width: 0;
  word-break: break-word;
}

.app .media-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--stroke);
  background: #fff;
}

.app .media-folder-list {
  list-style: none;
  margin: 0;
  padding: 8px 14px 14px;
  display: grid;
  gap: 6px;
}

.app .media-folder-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  justify-content: space-between;
}

.app .media-folder-row .media-folder-link {
  flex: 1;
  min-width: 0;
}

.app .media-folder-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app .media-folder-privacy-btn.is-private,
.app .media-icon-btn.is-private {
  color: #d97706;
}

.app .media-folder-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 600;
}

.app .media-folder-link:hover {
  background: #f1f5f9;
  border-color: var(--stroke);
}

.app .media-folder-icon {
  width: 2rem;
  height: 2rem;
  color: #0ea5e9;
  flex-shrink: 0;
}

.app .media-empty {
  margin: 0;
  padding: 14px;
}

.app .media-table-wrap {
  overflow-x: auto;
}

.app .media-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.app .media-table th,
.app .media-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: middle;
}

.app .media-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #00B4D8;
  background: #fafbfc;
}

.app .media-th-thumb {
  width: 84px;
}

.app .media-th-actions {
  width: 1%;
  white-space: nowrap;
}

.app .media-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: #f8fafc;
}

.app .media-pdf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, #fee2e2, #fecaca);
}

.app .media-pdf-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #b91c1c;
}

.app .media-file-name {
  font-weight: 600;
}

.app .media-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app .media-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: #334155;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.app .media-icon-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.app .media-icon-btn svg,
.app .media-icon-btn .btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.app .media-icon-btn.is-done {
  opacity: 0.55;
  cursor: default;
}

.app .media-del-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.app .media-drop-intro {
  margin: 0;
  padding: 0 38px 34px;
  font-size: 13px;
  line-height: 1.45;
}

.app .media-drop-zone {
  margin: 0 18px 14px;
  padding: 28px 18px;
  border: 2px dashed rgba(148, 163, 184, 0.85);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.app .media-drop-zone:hover,
.app .media-drop-zone:focus-visible {
  border-color: rgba(25, 184, 211, 0.65);
  box-shadow: 0 0 0 3px rgba(25, 184, 211, 0.12);
}

.app .media-drop-zone.is-dragover {
  border-color: var(--brand);
  background: #ecfeff;
  box-shadow: inset 0 0 0 1px rgba(25, 184, 211, 0.25);
}

.app .media-drop-zone-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--brand1);
  margin-bottom: 8px;
}

.app .media-drop-zone-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.app .media-drop-zone-hint {
  font-size: 13px;
}

.app .media-drop-file-list {
  list-style: none;
  margin: 0 18px 12px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fafbfc;
  font-size: 13px;
  max-height: 180px;
  overflow-y: auto;
}

.app .media-drop-file-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  word-break: break-word;
}

.app .media-drop-file-list li:last-child {
  border-bottom: 0;
}

.app .media-drop-error {
  margin: 0 18px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}

.app .media-drop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 34px 38px 38px;
  border-top: 1px solid var(--stroke);
  background: rgba(248, 250, 252, 0.85);
}

.app .media-upload-busy {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.app .media-upload-busy.open {
  display: flex;
}

.app .media-upload-busy.is-success {
  cursor: pointer;
}

.app .media-upload-busy-inner {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  text-align: center;
  max-width: 320px;
}

.app .media-upload-busy-inner p {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.app .media-upload-busy-sub {
  margin-top: 8px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.app .media-upload-spinner {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: sb-media-spin 0.75s linear infinite;
}

@keyframes sb-media-spin {
  to {
    transform: rotate(360deg);
  }
}

.app .media-view-meta {
  padding: 0 38px 32px;
  border-bottom: 1px solid var(--stroke);
}

.app .media-view-meta label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.app .media-url-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.app .media-url-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.app .media-view-canvas {
  padding: 16px;
  min-height: 200px;
  max-height: min(72vh, 820px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.app .media-view-img {
  max-width: 100%;
  max-height: min(68vh, 760px);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.app .media-view-video {
  width: min(100%, 900px);
  max-height: min(68vh, 760px);
  border-radius: 12px;
  background: #000;
  box-shadow: var(--shadow);
}

.app .media-view-frame {
  width: min(100%, 900px);
  height: min(68vh, 760px);
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.app .media-view-dialog .modal-h {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .app .wysiwyg-toolbar-hint {
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .app .wysiwyg-toolbar-spacer {
    display: none;
  }
}

@media (max-width: 1100px) {
  .app {
    --sb-mobile-bar-h: 56px;
  }

  .app .mobile-app-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 230;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-height: var(--sb-mobile-bar-h);
    padding: 0 12px 0 8px;
    padding-top: env(safe-area-inset-top, 0);
    background: var(--brand1);
    color: #fff;
    box-shadow: 0 4px 18px rgba(2, 6, 23, 0.18);
  }

  .app .mobile-app-bar-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .app .mobile-app-bar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .app .mobile-app-bar-toggle-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .app .mobile-app-bar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 4px 0;
  }

  .app .mobile-app-bar-logo img {
    display: block;
    width: auto;
    max-width: min(148px, 42vw);
    height: 32px;
    object-fit: contain;
    object-position: right center;
  }

  .app .layout {
    padding-top: calc(var(--sb-mobile-bar-h) + env(safe-area-inset-top, 0));
  }

  .app .sidebar-toggle {
    display: none;
  }

  .app .sidebar > .brand {
    display: none;
  }

  .app .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .app .sidebar-mobile-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    flex: 1;
  }

  .app .sidebar-mobile-logo-img {
    display: block;
    width: auto;
    max-width: 148px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
  }

  .app .sidebar-mobile-close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .app .sidebar-mobile-close:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .app .sidebar-mobile-close-glyph {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
  }

  .app .sidebar {
    position: fixed;
    top: calc(var(--sb-mobile-bar-h) + env(safe-area-inset-top, 0));
    left: 0;
    bottom: 0;
    z-index: 220;
    flex: none;
    width: min(320px, 88vw);
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 14px 14px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.28);
  }

  .app body.sb-mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .app .sidebar-backdrop {
    display: block;
    position: fixed;
    top: calc(var(--sb-mobile-bar-h) + env(safe-area-inset-top, 0));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 210;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.48);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .app body.sb-mobile-nav-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app .sidebar-backdrop[hidden] {
    display: none !important;
  }

  .app body.sb-mobile-nav-open {
    overflow: hidden;
  }

  .app body.sb-sidebar-collapsed .brand-logo--full {
    display: block;
  }

  .app body.sb-sidebar-collapsed .nav-menu > .nav-item .nav-item-label,
  .app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary .nav-item-label,
  .app body.sb-sidebar-collapsed .nav-user-heading,
  .app body.sb-sidebar-collapsed .nav-user-text,
  .app body.sb-sidebar-collapsed .nav-user-sub,
  .app body.sb-sidebar-collapsed .nav-user-stack-text {
    display: block;
  }

  .app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary .nav-item-chevron,
  .app body.sb-sidebar-collapsed .nav-user-item .nav-item-chevron--trail {
    display: block;
  }

  .app body.sb-sidebar-collapsed .brand-logo--compact {
    display: none;
  }

  .app body.sb-sidebar-collapsed .brand-link {
    justify-content: flex-start;
    padding-left: 8px;
  }

  .app body.sb-sidebar-collapsed .nav-menu > .nav-item.nav-item--l1,
  .app body.sb-sidebar-collapsed .nav-menu > .nav-group > summary,
  .app body.sb-sidebar-collapsed .nav-user-item {
    justify-content: flex-start;
    gap: 10px;
  }

  .app .nav-funnel .nav-menu > .nav-group > summary .nav-item-chevron {
    display: block;
  }

  .app .nav-funnel .nav-group--flyout[open]::after {
    display: none;
  }

  .app .nav-funnel .nav-flyout {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 2px 0 6px;
    padding: 4px 0 6px 10px;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 2px;
  }

  .app .nav-funnel .nav-flyout::before {
    display: none;
  }

  .app .nav-funnel .nav-flyout .nav-item-icon-wrap {
    display: inline-flex;
  }

  .app .nav-funnel .nav-item--l1:hover,
  .app .nav-funnel a.nav-item--l1:hover,
  .app .nav-funnel .nav-item--l1.nav-item--parent:hover,
  .app .nav-funnel .nav-item--l1.is-active,
  .app .nav-funnel .nav-item--l1.nav-item--parent.is-active {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
  }

  .app .nav-funnel .nav-menu > .nav-item,
  .app .nav-funnel .nav-menu > .nav-group > summary {
    min-height: 48px;
  }

  .app .nav-funnel .nav-item--l2 {
    min-height: 44px;
    padding: 10px 12px;
  }

  .app .nav-user-item {
    min-height: 44px;
    padding: 10px 12px;
  }

  .app .content {
    grid-template-columns: 1fr;
  }

  .app .list {
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
    max-height: 260px;
  }

  .app .main {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .app .sidebar {
    width: 100%;
    max-width: 100%;
  }
}

/* Agendar envios */
.app .schedule-page {
  padding: 18px;
  width: 100%;
  box-sizing: border-box;
}

.app .schedule-empty {
  margin: 0;
}

.app .schedule-page-error {
  color: #b91c1c;
  margin: 0 0 12px;
}

.app .schedule-send-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.app .schedule-send-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px 18px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--panel);
  min-width: 0;
}

.app .schedule-send-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .schedule-send-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.app .schedule-send-status .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.app .schedule-send-status--pending {
  color: #475569;
}

.app .schedule-send-status--sent {
  color: #15803d;
}

.app .schedule-send-status--failed {
  color: #b91c1c;
}

.app .schedule-send-datetime {
  flex: 0 0 auto;
  font-size: 13px;
  white-space: nowrap;
  color: var(--muted);
}

.app .schedule-send-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.app .schedule-delete-btn {
  color: var(--salmon, #e07a6a);
}

.app .sends-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
}

.app .sends-toolbar-field {
  display: flex;
  flex-direction: row;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
}

/* Os meus contactos */
.app .my-contacts-page {
  padding: 18px;
}

.app .my-contacts-intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.app .my-contacts-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .app .my-contacts-layout {
    grid-template-columns: 1fr;
  }
}

.app .my-contacts-groups {
  padding: 14px;
  box-shadow: none;
}

.app .my-contacts-groups-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.app .my-contacts-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
}

.app .btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.app .my-contacts-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app .my-contacts-group-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app .my-contacts-group-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}

.app .my-contacts-group-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app .my-contacts-group-btn:hover {
  background: var(--panel, #f4f6f8);
}

.app .my-contacts-group-btn.is-active {
  background: #e8f4ef;
  border-color: #b8d9cc;
  font-weight: 800;
}

.app .my-contacts-group-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .my-contacts-group-author {
  font-size: 12px;
}

.app .my-contacts-group-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 2px 8px;
}

.app .my-contacts-group-item-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.app .my-contacts-toolbar {
  margin-bottom: 14px;
}

.app .my-contacts-search-field {
  flex: 1 1 240px;
}

.app .my-contacts-table-wrap {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
}

.app .my-contacts-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.app .my-contacts-table th,
.app .my-contacts-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: middle;
}

.app .my-contacts-table th {
  font-size: 12px;
  font-weight: 800;
  color: #00B4D8;
  background: var(--panel, #f8fafc);
}

.app .my-contacts-person-name {
  font-weight: 850;
}

.app .my-contacts-email-link {
  color: var(--sage, #5a8f7b);
  text-decoration: none;
}

.app .my-contacts-email-link:hover {
  text-decoration: underline;
}

.app .my-contacts-group-tags {
  font-size: 13px;
  color: var(--muted);
}

.app .my-contacts-actions {
  display: flex;
  gap: 6px;
}

.app .my-contacts-th-actions {
  width: 110px;
}

.app .my-contact-modal .modal-form {
  max-height: min(70vh, 640px);
}

.app .my-contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .app .my-contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.app .my-contact-req {
  color: #b45309;
}

.app .my-contact-modal-section-label {
  margin: 16px 0 6px;
  font-size: 13px;
}

.app .my-contact-picker-hint {
  margin: 0 0 8px;
  font-size: 13px;
}

.app .my-contact-picker-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--panel, #fafbfc);
}

.app .my-contact-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  cursor: pointer;
  font-size: 14px;
}

.app .my-contact-picker-item strong {
  display: block;
  font-weight: 800;
}

.app .my-contact-picker-filter {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.app .my-contact-picker-empty {
  padding: 12px;
}

/* Autocomplete contactos no envio */
.app .email-modal-section-recipients,
.app #emailModal .email-modal-section:first-of-type,
.app .schedule-modal-form {
  overflow: visible;
}

.app .contacts-ac-wrap {
  position: relative;
  z-index: 2;
}

.app .contacts-ac-wrap input {
  width: 100%;
  box-sizing: border-box;
}

.app .contacts-ac-hint {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 1.4;
}

.app .contacts-ac-dropdown {
  display: none;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
}

.app .contacts-ac-dropdown.is-open,
.contacts-ac-dropdown.is-open {
  display: block;
}

.app .contacts-ac-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.app .contacts-ac-option:last-child {
  border-bottom: none;
}

.app .contacts-ac-option:hover,
.app .contacts-ac-option.is-active {
  background: #eef6f2;
}

.app .contacts-ac-option-icon {
  flex-shrink: 0;
  width: 18px;
  color: var(--sage, #5a8f7b);
  font-size: 10px;
  line-height: 22px;
}

.app .contacts-ac-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app .contacts-ac-option-label {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .contacts-ac-option-sub {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .contacts-ac-empty {
  padding: 12px 14px;
  font-size: 13px;
}

/* Eventos */
.app .events-page {
  padding: 18px;
}

.app .events-page-intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.app .events-flash-success {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 750;
}

.app .events-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.app .events-list-toolbar--end {
  justify-content: flex-end;
}

.app .toolbar-action-right {
  margin-left: auto;
}

.app .events-form {
  padding: 22px 24px 26px;
  max-width: 720px;
}

.app .events-form.events-form--split {
  max-width: none;
}

.app .events-form-section + .events-form-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

.app .events-form-section-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 850;
}

.app .events-form label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  margin-top: 0;
}

.app .events-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
}

.app .events-form input[type='text'],
.app .events-form input[type='email'],
.app .events-form input[type='password'],
.app .events-form input[type='date'],
.app .events-form input[type='datetime-local'],
.app .events-form input[type='number'],
.app .events-form input[type='search'],
.app .events-form input[type='url'],
.app .events-form textarea,
.app .events-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  background: #efefef;
  font-family: inherit;
  min-height: 46px;
}

.app .events-form textarea {
  min-height: 120px;
  resize: vertical;
}

.app .events-form--split .events-form-columns {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  gap: 24px 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .app .events-form--split .events-form-columns {
    grid-template-columns: 1fr;
  }
}

.app .events-form-col--side .events-form-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
}

.app .events-form-col--side .events-form-section + .events-form-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.app .events-form-col--side .events-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.app .events-form-col--side .events-agenda-cta-btn,
.app .events-form-col--side .events-budget-cta-btn,
.app .events-form-col--side .events-print-ficha-btn {
  width: 100%;
}

.app .events-date-budget-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 12px 20px;
  align-items: end;
  margin-top: 4px;
}

.app .events-form.events-form--date-range .events-date-budget-block {
  grid-template-columns: 1fr;
}

.app .events-form.events-form--date-range .events-budget-field {
  margin-top: 4px;
}

.app .events-date-fieldset {
  min-width: 0;
}

.app .events-budget-field label {
  margin-top: 0;
}

@media (max-width: 560px) {
  .app .events-date-budget-block {
    grid-template-columns: 1fr;
  }
}

.app .events-date-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.app .events-date-legend {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  padding: 0;
  margin: 12px 0 8px;
}

.app .events-date-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 10px;
}

.app .events-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.app .events-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .app .events-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.app .events-budget-wrap {
  display: flex;
  align-items: stretch;
  max-width: 280px;
}

.app .events-budget-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--panel, #f4f6f8);
  font-weight: 800;
  color: var(--muted);
}

.app .events-budget-wrap input {
  border-radius: 0 10px 10px 0;
  flex: 1;
  min-width: 0;
}

.app .events-req {
  color: #b45309;
}

.app .events-team-hint,
.app .events-team-empty {
  margin: 0 0 12px;
  font-size: 13px;
}

.app .events-team-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.app .events-team-selected-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app .events-team-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
}

.app .events-team-selected-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app .events-team-selected-text strong {
  font-weight: 850;
}

.app .events-team-selected-empty {
  margin: 0 0 12px;
  font-size: 13px;
}

.app .events-team-search-wrap {
  position: relative;
}

.app .events-team-search-wrap label {
  margin-top: 0;
}

.app .events-team-search-input {
  width: 100%;
}

.app .events-team-search-wrap .contacts-ac-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.app .events-team-hidden-inputs {
  display: none;
}

.app .events-form-actions .btn {
  min-height: 46px;
}

.app .events-form-error {
  margin: 16px 0 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 750;
}

.app .events-form-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.app .events-table-wrap {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
}

.app .events-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.app .events-table th,
.app .events-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
}

.app .events-table th {
  font-size: 12px;
  font-weight: 800;
  color: #00B4D8;
  background: var(--panel, #f8fafc);
}

.app .events-list-name {
  font-weight: 850;
}

.app .events-table .media-th-actions {
  width: 1%;
  white-space: nowrap;
}

.app .events-table td:last-child {
  text-align: right;
  vertical-align: middle;
}

.app .events-table-row--completed .events-list-name {
  color: var(--muted);
}

.app .events-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app .events-status-badge--active {
  background: #ecfdf5;
  color: #047857;
}

.app .events-status-badge--completed {
  background: #f1f5f9;
  color: #475569;
}

.app .event-view-modal {
  max-width: 520px;
}

.app .event-view-body {
  padding: 0 18px 18px;
}

.app .event-view-dl {
  margin: 0;
}

.app .event-view-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stroke);
}

.app .event-view-row:last-child {
  border-bottom: none;
}

.app .event-view-row dt {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.app .event-view-row dd {
  margin: 0;
  font-weight: 650;
}

.app .event-view-team-list {
  margin: 0 0 12px;
  padding: 0 18px 18px 32px;
  font-size: 13px;
  color: var(--text);
}

.app .event-view-team-list li + li {
  margin-top: 6px;
}

.app .event-view-loading {
  padding: 18px;
}

.app .sends-toolbar-field select,
.app .sends-toolbar-field input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #efefef;
}

.app .sends-toolbar-search {
  flex: 0 1 50%;
  margin-left: auto;
}

.app .sends-toolbar-search input {
  width: 100%;
}

.app .sends-table {
  width: 100%;
  min-width: 0;
}

.app .sends-table-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.9fr)
    minmax(110px, 0.9fr)
    108px
    72px
    72px
    minmax(88px, 0.7fr)
    92px;
  gap: 10px 14px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.app .sends-table-head {
  padding: 14px 18px;
  min-height: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #f6f7f9;
  box-sizing: border-box;
}

.app .sends-th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #00B4D8;
  white-space: nowrap;
  min-width: 0;
}

.app .sends-th.sends-col-envios,
.app .sends-th.sends-col-opens {
  text-align: center;
}

.app .sends-table-body {
  margin-top: 8px;
}

.app .sends-row.sends-table-grid {
  display: grid;
  flex-direction: unset;
  margin-left: 0;
}

.app .sends-td {
  min-width: 0;
  font-size: 13px;
}

.app .sends-col-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.app .sends-col-date {
  white-space: nowrap;
  color: var(--muted);
}

.app .sends-col-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .sends-col-envios,
.app .sends-col-opens {
  text-align: center;
}

.app .sends-no-attachments {
  font-size: 13px;
  font-weight: 600;
}

.app .sends-num {
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.app .sends-col-actions {
  justify-self: end;
}

.app .sends-col-actions.schedule-send-actions {
  margin-left: 0;
}

.app .sends-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app .sends-col-attachments.sends-attachments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .app .sends-table-grid {
    grid-template-columns:
      minmax(180px, 1.7fr)
      minmax(96px, 0.8fr)
      96px
      64px
      64px
      minmax(72px, 0.65fr)
      88px;
    gap: 8px 10px;
  }
}

.app .sends-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.app .sends-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app .sends-list-count {
  margin: 0;
}

.app .sends-attachments a {
  color: var(--brand-start);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.app .sends-attachments a:hover {
  text-decoration: underline;
}

.app .sent-send-modal {
  width: min(1100px, 96vw);
  height: min(88vh, 900px);
}

.app .sent-send-pixel-modal {
  width: min(640px, 96vw);
  height: auto;
  max-height: min(88vh, 720px);
}

.app .sent-send-pixel-body {
  padding: 0 38px 34px;
}

.app .sent-send-pixel-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
}

.app .sent-send-pixel-body label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.app .sent-send-pixel-tag {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 108px;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.app .sent-send-pixel-actions {
  justify-content: flex-end;
  margin-top: 14px;
  padding: 0;
  border: none;
}

.app .sent-send-preview-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

/* Perfil */
.app .profile-page {
  padding: 24px;
}

.app .profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: #fff;
}

.app .profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: #efefef;
  color: var(--brand-start);
}

.app .profile-avatar-icon {
  width: 42px;
  height: 42px;
}

.app .profile-details {
  display: grid;
  gap: 12px;
}

.app .profile-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}

.app .profile-row span {
  color: var(--muted);
  font-weight: 750;
}

.app .profile-row strong {
  color: var(--text);
  font-weight: 850;
}

.app .profile-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.app .profile-success {
  margin: 0;
  color: #15803d;
  font-weight: 800;
}

.app .profile-change-modal {
  width: min(560px, 96vw);
  height: auto;
}

.app .profile-change-body {
  padding: var(--sb-modal-pad);
}

.app .profile-change-body p {
  margin-top: 0;
  line-height: 1.55;
}

.app .user-management-page {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.app .user-management-intro-card,
.app .user-management-list-card,
.app .user-management-form-card {
  padding: 20px;
}

.app .user-management-intro {
  margin: 8px 0 0;
  max-width: 780px;
}

.app .user-management-table {
  min-width: 980px;
}

.app .user-management-row--locked {
  background: #fafafa;
}

.app .user-management-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  background: #e2e8f0;
}

.app .user-management-role-pill--superadmin {
  color: #065f46;
  background: #d1fae5;
}

.app .user-management-form.events-form {
  padding: 0;
  max-width: none;
}

.app .user-management-form {
  display: grid;
  gap: 20px;
}

.app .user-management-form-sub {
  margin: 8px 0 0;
}

.app .user-management-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  gap: 24px 28px;
  align-items: start;
}

.app .user-management-form-side .events-form-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.app .user-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app .user-management-checkbox-wrap {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.app .events-form .user-management-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #efefef;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.app .events-form .user-management-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-start);
}

.app .user-management-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
}

.app .user-management-permissions {
  display: grid;
  gap: 8px;
}

.app .user-management-permissions--main {
  margin-top: 20px;
}

.app .user-management-permission-area {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--stroke);
}

.app .user-management-permission-area:first-child {
  padding-top: 0;
  border-top: 0;
}

.app .user-management-permission-area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.app .user-management-permission-area-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.app .user-management-permission-area-head--scope-only {
  justify-content: flex-start;
  margin-bottom: 8px;
}

/* Toggle Sim/Não — âmbito de autoria (design system SB) */
.app .user-management-permission-area-head .sb-scope-toggle {
  flex: 0 1 auto;
  max-width: 100%;
}

.app .sb-scope-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.app .sb-scope-toggle__question {
  display: block;
  margin: 0;
  max-width: 11em;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.app .sb-scope-toggle__fixed {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.app .sb-scope-toggle__control {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 27px;
}

.app .sb-scope-toggle__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.app .events-form .sb-scope-toggle__track {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #e1e5eb;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.app .sb-scope-toggle__track::before {
  content: "Não";
  position: absolute;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #848ea1;
  pointer-events: none;
  transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease;
}

.app .sb-scope-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(44% - 2px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.app .sb-scope-toggle__input:checked + .sb-scope-toggle__track {
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.app .sb-scope-toggle__input:checked + .sb-scope-toggle__track::before {
  content: "Sim";
  left: 8px;
  color: #fff;
}

.app .sb-scope-toggle__input:checked + .sb-scope-toggle__track .sb-scope-toggle__thumb {
  left: 56.5%;
}

.app .sb-scope-toggle__input:disabled {
  cursor: not-allowed;
}

.app .sb-scope-toggle__input:disabled + .sb-scope-toggle__track {
  opacity: 0.55;
  cursor: not-allowed;
}

.app .sb-scope-toggle__input:focus-visible + .sb-scope-toggle__track {
  outline: 2px solid rgba(25, 184, 211, 0.55);
  outline-offset: 2px;
}

.app .user-management-permission-area-head--scope-only .sb-scope-toggle {
  justify-content: flex-start;
  width: 100%;
}

.app .user-management-permission-area-head--scope-only .sb-scope-toggle__question {
  text-align: left;
  max-width: none;
  flex: 1 1 auto;
}

.app .user-management-permission-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.app .user-management-permission-checks-item {
  margin: 0;
}

.app .sb-checkbox-row,
.app .user-management-permission-check,
.app .user-management-active-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.app .sb-checkbox-row-label,
.app .user-management-permission-check-label {
  display: block;
  margin-top: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
}

.app .user-management-active-wrap {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
}

.app .user-management-active-heading {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
}

.app .user-management-permissions--user-area {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.app .user-management-permissions-user-heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.app .user-management-permissions-user-lead {
  margin: 0 0 12px;
}

/* ---------- Checkbox SB (design system) ---------- */
.app .sb-checkbox-goo-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.app .sb-checkbox {
  position: relative;
  flex-shrink: 0;
}

.app .sb-checkbox * {
  box-sizing: border-box;
}

.app .sb-checkbox__input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #bfbfc0;
  border-radius: 50%;
  background: transparent;
  z-index: 2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.app .sb-checkbox__input:checked {
  border-color: var(--brand);
  background: var(--brand);
}

.app .sb-checkbox__input:focus-visible {
  outline: 2px solid rgba(25, 184, 211, 0.55);
  outline-offset: 2px;
}

.app .sb-checkbox__field {
  position: relative;
  width: 24px;
  height: 24px;
}

.app .sb-checkbox__splash {
  width: 24px;
  height: 24px;
  background: none;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  -webkit-filter: url("#sb-goo-checkbox");
  filter: url("#sb-goo-checkbox");
}

.app .sb-checkbox__tick {
  position: absolute;
  top: 5px;
  left: 4px;
  z-index: 3;
  pointer-events: none;
}

.app .sb-checkbox__tick path {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 19;
  stroke-dashoffset: 19;
  transition: stroke-dashoffset 0.3s ease;
  transition-delay: 0.2s;
}

.app .sb-checkbox__input:checked + .sb-checkbox__splash {
  animation: none;
  background: transparent;
  box-shadow: none;
}

.app .sb-checkbox__input:checked + .sb-checkbox__splash + .sb-checkbox__tick path {
  stroke-dashoffset: 0;
}

.app .sb-checkbox__input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app .sb-checkbox__input:disabled + .sb-checkbox__splash + .sb-checkbox__tick path {
  stroke-dashoffset: 19;
}

/* ---------- Radio SB (design system) ---------- */
.app .sb-radio-row,
.public-form-page .sb-radio-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.app .sb-radio-row-label,
.public-form-page .sb-radio-row-label {
  display: block;
  margin-top: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #0f172a);
  cursor: pointer;
  line-height: 1.35;
}

.app .sb-radio,
.public-form-page .sb-radio {
  position: relative;
  flex-shrink: 0;
}

.app .sb-radio *,
.public-form-page .sb-radio * {
  box-sizing: border-box;
}

.app .sb-radio__input,
.public-form-page .sb-radio__input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #bfbfc0;
  border-radius: 50%;
  background: transparent;
  z-index: 2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.app .sb-radio__input:checked,
.public-form-page .sb-radio__input:checked {
  border-color: var(--brand);
  background: #fff;
}

.app .sb-radio__input:focus-visible,
.public-form-page .sb-radio__input:focus-visible {
  outline: 2px solid rgba(25, 184, 211, 0.55);
  outline-offset: 2px;
}

.app .sb-radio__field,
.public-form-page .sb-radio__field {
  position: relative;
  width: 24px;
  height: 24px;
}

.app .sb-radio__splash,
.public-form-page .sb-radio__splash {
  width: 24px;
  height: 24px;
  background: none;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  -webkit-filter: url("#sb-goo-checkbox");
  filter: url("#sb-goo-checkbox");
}

.app .sb-radio__dot,
.public-form-page .sb-radio__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
  pointer-events: none;
  z-index: 3;
}

.app .sb-radio__input:checked ~ .sb-radio__dot,
.public-form-page .sb-radio__input:checked ~ .sb-radio__dot {
  transform: translate(-50%, -50%) scale(1);
}

.app .sb-radio__input:disabled,
.public-form-page .sb-radio__input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app .sb-radio__input:disabled ~ .sb-radio__dot,
.public-form-page .sb-radio__input:disabled ~ .sb-radio__dot {
  transform: translate(-50%, -50%) scale(0);
}

/* ---------- Checkbox quadrado SB (design system) ---------- */
.app .sb-form-checkbox-row,
.public-form-page .sb-form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.app .sb-form-checkbox-row-label,
.public-form-page .sb-form-checkbox-row-label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #0f172a);
  cursor: pointer;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.app .sb-form-checkbox-row-label {
  font-weight: 600;
}

.app .tasks-checklist-toggle .sb-form-checkbox-row-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.app .sb-form-checkbox,
.public-form-page .sb-form-checkbox {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.app .sb-form-checkbox *,
.public-form-page .sb-form-checkbox * {
  box-sizing: border-box;
}

.app .sb-form-checkbox__input,
.public-form-page .sb-form-checkbox__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.app .sb-form-checkbox__checkmark,
.public-form-page .sb-form-checkbox__checkmark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  background-color: transparent;
  border-radius: 5px;
  transition: background-color 0.25s ease;
}

.app .sb-form-checkbox__input:checked ~ .sb-form-checkbox__checkmark,
.public-form-page .sb-form-checkbox__input:checked ~ .sb-form-checkbox__checkmark {
  background-color: var(--brand);
}

.app .sb-form-checkbox__checkmark::after,
.public-form-page .sb-form-checkbox__checkmark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border: 2px solid var(--brand);
  border-radius: 5px;
  transform: rotate(0deg);
  transition:
    all 0.25s ease,
    border-width 0.1s ease;
}

.app .sb-form-checkbox__input:checked ~ .sb-form-checkbox__checkmark::after,
.public-form-page .sb-form-checkbox__input:checked ~ .sb-form-checkbox__checkmark::after {
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border-color: transparent #fff #fff transparent;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  transform: rotate(45deg);
}

.app .sb-form-checkbox__input:focus-visible ~ .sb-form-checkbox__checkmark,
.public-form-page .sb-form-checkbox__input:focus-visible ~ .sb-form-checkbox__checkmark {
  outline: 2px solid rgba(25, 184, 211, 0.55);
  outline-offset: 2px;
}

.app .sb-form-checkbox__input:disabled,
.public-form-page .sb-form-checkbox__input:disabled {
  cursor: not-allowed;
}

.app .sb-form-checkbox__input:disabled ~ .sb-form-checkbox__checkmark,
.public-form-page .sb-form-checkbox__input:disabled ~ .sb-form-checkbox__checkmark {
  opacity: 0.45;
}

.app .sb-form-checkbox__input:disabled ~ .sb-form-checkbox__checkmark::after,
.public-form-page .sb-form-checkbox__input:disabled ~ .sb-form-checkbox__checkmark::after {
  border-color: #bfbfc0;
}

@media (max-width: 980px) {
  .app .user-management-form-layout,
  .app .user-management-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal agendar envio — formulário compacto (sem pré-visualização) */
.app .modal.schedule-modal {
  width: min(560px, 96vw);
  height: auto;
  max-height: min(88vh, 720px);
}

.app #emailModal.modal-overlay {
  z-index: 55;
}

.app #scheduleModal.modal-overlay {
  z-index: 60;
}

.app #emailModal.modal-overlay.open,
.app #scheduleModal.modal-overlay.open {
  display: flex;
}

.app .schedule-modal .modal-form-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app .schedule-modal-form {
  padding-bottom: var(--sb-modal-pad-x);
}

.app .schedule-datetime-input {
  font: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.app.sb-modal-open,
html.app.sb-modal-open body {
  overflow: hidden;
}

/* ---------- Event timetables / agenda ---------- */
.app .tt-panel.card {
  box-shadow: none;
  padding: 18px 20px;
  overflow: visible;
}

.app .tt-page-toolbar.events-list-toolbar {
  margin-bottom: 16px;
}

.app .tt-page-toolbar-left,
.app .tt-page-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.app .tt-sidebar .tt-day-list {
  margin: 0;
  padding: 0;
}

.app .tt-sidebar-hint {
  margin: 10px 0 0;
}

.app .tt-autosave-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.app .tt-page-event-meta {
  margin: 0 0 16px;
}

.app .tt-layout {
  display: grid;
  grid-template-columns: minmax(187px, 238px) 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .app .tt-layout {
    grid-template-columns: 1fr;
  }
}

.app .tt-sidebar-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.app .tt-day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app .tt-day-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}

.app .tt-day-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.app .tt-day-btn.active {
  border-color: #005c7e;
  background: #ecfeff;
  box-shadow: 0 0 0 1px #005c7e;
}

.app .tt-day-btn-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.app .tt-day-btn-meta {
  font-size: 12px;
}

.app .tt-day-btn-buffer {
  align-self: flex-start;
  margin-top: 4px;
}

.app .tt-buffer {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app .tt-buffer--positive {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #047857;
  border: 1px solid #a7f3d0;
}

.app .tt-buffer--negative {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #c2410c;
  border: 1px solid #fdba74;
}

.app .tt-editor-top-fields {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .app .tt-editor-top-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.app .tt-editor-top-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.app .tt-editor input[type='text'],
.app .tt-editor input[type='date'],
.app .tt-editor input[type='time'],
.app .tt-editor input[type='number'],
.app .tt-editor textarea,
.app .tt-editor select,
.app .tt-editor .btn,
.app .tt-items-actions .btn {
  box-sizing: border-box;
  min-height: 46px;
}

.app .tt-editor-top-fields input,
.app .tt-notes-label textarea {
  width: 100%;
  font: inherit;
  padding: 14px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #efefef;
  font-size: 14px;
}

.app .tt-field-grow {
  grid-column: 1 / -1;
}

@media (min-width: 1101px) {
  .app .tt-field-grow {
    grid-column: span 1;
  }
}

.app .tt-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  margin-bottom: 14px;
}

.app .tt-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app .tt-stat strong {
  font-size: 18px;
}

.app .tt-stat-buffer strong {
  font-size: 20px;
}

.app .tt-notes-label {
  display: block;
  width: 100%;
  margin-bottom: 14px;
}

.app .tt-notes-label textarea {
  width: 100%;
  max-width: 100%;
  resize: vertical;
}

.app .tt-notes-label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.app .tt-items-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.app .tt-items-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.app .tt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
}

.app .tt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
}

.app .tt-table th,
.app .tt-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: middle;
}

.app .tt-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #00B4D8;
  background: #fafbfc;
}

.app .tt-table input,
.app .tt-table select {
  width: 100%;
  font: inherit;
  padding: 8px 8px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  min-height: 38px;
}

.app .tt-col-hour {
  width: 8.08rem;
}

.app .tt-col-duration {
  width: 6.5rem;
}

.app .tt-col-status {
  width: 9.4rem;
}

.app .tt-col-rep {
  width: 16.5%;
}

.app .tt-col-loc {
  width: 14.5%;
}

.app .tt-col-activity {
  width: auto;
}

.app .tt-th-actions,
.app .tt-td-actions {
  width: 4.25rem;
}

.app .tt-table .media-icon-btn {
  min-height: 38px;
  min-width: 38px;
  padding: 8px;
}

.app .tt-page-toolbar .btn {
  min-height: 46px;
}

.app .tt-th-drag,
.app .tt-td-drag {
  width: 36px;
  text-align: center;
}

.app .tt-drag-handle {
  cursor: grab;
  color: var(--muted);
  user-select: none;
}

.app .tt-row-dragging {
  opacity: 0.5;
  background: #f0f9ff;
}

.app .tt-compact .tt-table input,
.app .tt-compact .tt-table select {
  padding: 4px 6px;
  font-size: 12px;
  min-height: 32px;
}

.app .tt-compact .tt-editor input,
.app .tt-compact .tt-editor .btn {
  min-height: 38px;
}

.app .tt-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.app .tt-editor-footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.app .tt-save-status {
  margin: 8px 0 0;
  font-size: 13px;
}

.app .tt-editor-empty {
  padding: 40px 20px;
  text-align: center;
}

.app .tt-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.app .tt-print-table th,
.app .tt-print-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
}

.app .tt-print-day {
  margin-bottom: 24px;
}

.app .tt-print-day-h {
  margin-bottom: 10px;
}

.app .event-view-timetables {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.app .event-view-tt-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

/* ---------- Event budgets ---------- */
.app .budget-list-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.app .budget-list-toolbar-actions--right {
  margin-left: auto;
}

/* Campo de pesquisa padrão do portal (largura fixa confortável) */
.app .portal-search-field.sends-toolbar-field {
  flex: 0 0 300px;
  width: 300px;
  max-width: 100%;
  margin: 0;
  margin-left: 0;
  flex-direction: column;
  align-items: stretch;
  align-self: flex-end;
  gap: 6px;
}

.app .portal-search-field.sends-toolbar-field input {
  width: 100%;
  box-sizing: border-box;
}

.app .portal-search-field.portal-search-field--toolbar {
  margin-left: auto;
}

.app .budget-list-search-field {
  margin-left: 0;
}

.app .portal-search-field.portal-search-field--with-icon .portal-search-field-control {
  position: relative;
  display: block;
  width: 100%;
}

.app .portal-search-field.portal-search-field--with-icon .portal-search-field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.app .portal-search-field.portal-search-field--with-icon input {
  padding-left: 36px;
}

.app .forms-list-toolbar,
.app .budget-list-toolbar--search-left {
  justify-content: flex-start;
}

.app .forms-page .forms-list-search-field,
.app .budget-list-toolbar--search-left .budget-list-search-field {
  margin-left: 0;
  align-self: center;
}

.app .budget-table-event {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app .budget-balance-pill {
  white-space: nowrap;
}

.app .budget-balance-pill--neutral {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.app .budget-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.app .budget-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app .budget-list-empty {
  margin-top: 14px;
}

.app .budget-page-toolbar-left,
.app .budget-page-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app .budget-editor-card {
  padding: 18px 20px;
}

.app .budget-editor-top-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 920px) {
  .app .budget-editor-top-fields {
    grid-template-columns: 1fr;
  }
}

.app .budget-field-grow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.app .budget-field-grow input {
  width: 100%;
  font: inherit;
  padding: 14px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #efefef;
  font-size: 14px;
  min-height: 46px;
}

.app .budget-event-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #f8fafc;
}

.app .budget-event-summary-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.app .budget-event-summary strong {
  font-size: 16px;
}

.app .budget-items-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
}

.app .budget-col-supplier {
  width: 26%;
}

.app .budget-col-category {
  width: 21%;
}

.app .budget-col-unit-amount {
  width: 10.5rem;
}

.app .budget-col-quantity {
  width: 8.5rem;
}

.app .budget-col-line-total {
  width: 10.5rem;
}

.app .budget-col-notes {
  width: 20%;
}

.app .budget-editor-table textarea {
  width: 100%;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 8px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  resize: vertical;
}

.app .budget-editor-table .budget-in-notes {
  color: #475569;
}

.app .budget-editor-table .budget-line-total-value {
  display: inline-block;
  min-width: 100%;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.app .budget-view-modal {
  max-width: 760px;
}

.app .budget-view-items {
  margin-top: 18px;
}

.app .budget-view-items-table {
  min-width: 0;
}

.app .budget-note-text {
  display: inline-block;
  font-size: 12px;
  color: #475569;
  line-height: 1.35;
}

.app .budget-assign-body {
  gap: 12px;
}

.app .budget-assign-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app .budget-assign-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 640px) {
  .app .budget-assign-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.app .budget-assign-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app .budget-assign-card-text strong {
  font-size: 14px;
  font-weight: 800;
}

.app .budget-assign-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.app .budget-editor-footer-hint {
  max-width: 460px;
  font-size: 13px;
  line-height: 1.45;
}

.app #eventViewTimetablesList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.app .tt-view-day-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.app .tt-view-day-card:hover {
  background: #f8fafc;
}

.app .events-agenda-cta {
  border-top: 1px solid var(--stroke);
  padding-top: 18px;
}

.app .tasks-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app .tasks-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app .tasks-summary-card {
  padding: 16px 18px;
  box-shadow: none;
  overflow: visible;
}

.app .tasks-summary-card--urgent {
  border-color: rgba(220, 68, 76, 0.24);
  background: rgba(220, 68, 76, 0.08);
}

.app .tasks-summary-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.app .tasks-summary-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.app .tasks-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app .tasks-view-pill {
  text-decoration: none;
}

.app .tasks-view-pill.is-active {
  background: #00b4d8;
  color: #fff;
  border-color: #00b4d8;
}

.app .tasks-view-note {
  margin: -4px 0 0;
  font-size: 13px;
}

.app .tasks-list-table {
  width: 100%;
  min-width: 0;
}

.app .tasks-list-grid {
  display: grid;
  grid-template-columns:
    108px
    minmax(180px, 1.8fr)
    120px
    minmax(116px, 0.95fr)
    minmax(116px, 0.95fr)
    96px
    minmax(110px, 0.9fr)
    92px;
  gap: 10px 14px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.app .tasks-list-head {
  padding: 14px 18px;
  min-height: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #f6f7f9;
  box-sizing: border-box;
}

.app .tasks-th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #00b4d8;
  white-space: nowrap;
  min-width: 0;
}

.app .tasks-table-body {
  margin-top: 8px;
}

.app .tasks-row.tasks-list-grid {
  display: grid;
  flex-direction: unset;
  margin-left: 0;
}

.app .tasks-td {
  min-width: 0;
  font-size: 14px;
}

.app .tasks-col-task,
.app .tasks-col-responsible,
.app .tasks-col-event,
.app .tasks-col-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .tasks-col-deadline,
.app .tasks-col-status {
  white-space: nowrap;
}

.app .tasks-col-actions {
  justify-self: end;
}

.app .tasks-actions.schedule-send-actions {
  margin-left: 0;
}

.app .tasks-col-priority {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.app .tasks-table-row--archived {
  opacity: 0.72;
}

.app .tasks-table-row--overdue {
  background: rgba(220, 68, 76, 0.05);
}

.app .tasks-table-row--completed {
  background: rgba(15, 157, 88, 0.06);
}

.app .tasks-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #0f9d58;
  background: rgba(15, 157, 88, 0.12);
}

.app .tasks-completed-badge .btn-icon {
  width: 1em;
  height: 1em;
}

.app .tasks-kanban-card--completed,
.app .tasks-calendar-card--completed {
  background: rgba(15, 157, 88, 0.06);
  border-color: rgba(15, 157, 88, 0.18);
}

.app .tasks-page-toolbar {
  justify-content: flex-end;
}

.app .tasks-page-toolbar .tasks-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.app .tasks-page-toolbar .tasks-new-btn {
  margin-left: 0;
}

.app .tasks-filters-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px 14px;
  margin-bottom: 16px;
}

.app .tasks-filters-toolbar .tasks-view-switch {
  flex: 0 0 auto;
  margin-right: 4px;
}

.app .tasks-filters-toolbar .tasks-filters-bar {
  flex: 1 1 320px;
  margin-bottom: 0;
}

.app .tasks-row.is-filtered-out,
.app .tasks-kanban-card.is-filtered-out,
.app .tasks-calendar-card.is-filtered-out {
  display: none !important;
}

.app .tasks-scope-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app .tasks-scope-pill {
  cursor: pointer;
  border: 1px solid var(--stroke);
  background: #fff;
}

.app .tasks-scope-pill.is-active {
  background: #00b4d8;
  color: #fff;
  border-color: #00b4d8;
}

.app .tasks-list-footer {
  margin-top: 14px;
}

.app .tasks-priority-empty {
  font-size: 14px;
  font-weight: 600;
}

.app .tasks-complete-btn.btn-sage {
  background: #eafcef;
  border-color: #c5e6cf;
  color: #0f172a;
}

.app .tasks-complete-btn.btn-sage:hover {
  background: #dff5e4;
  border-color: #a8d9b6;
  color: #0f172a;
}

.app .tasks-complete-btn.btn-sage .btn-icon,
.app .tasks-complete-btn.btn-sage svg {
  color: currentColor;
  stroke: currentColor;
}

.app .tasks-priority-rules {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #f8fafc;
}

.app .tasks-priority-rules-heading {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.app .tasks-priority-rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app .tasks-priority-rules-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.app .tasks-priority-rules-item.is-active {
  background: #fff;
  border-color: #c5e6cf;
  box-shadow: 0 0 0 1px rgba(15, 157, 88, 0.08);
}

.app .tasks-priority-rules-interval {
  font-size: 13px;
  line-height: 1.4;
}

.app .tasks-priority-live {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.app .tasks-row-actions .media-icon-btn[data-action='archive-task'],
.app .tasks-row-actions .media-icon-btn[data-action='restore-task'] {
  background: #fff;
}

.app .tasks-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app .tasks-title {
  color: var(--text);
}

.app .tasks-inline-note {
  color: var(--muted);
  font-size: 12px;
}

.app .tasks-priority-badge,
.app .tasks-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.app .tasks-list-table .tasks-status-badge {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.app .tasks-priority-badge--urgent {
  color: #fff;
  background: #dc444c;
}

.app .tasks-priority-badge--high {
  color: #fff;
  background: #f59e0b;
}

.app .tasks-priority-badge--medium {
  color: #1f2937;
  background: #f5d66b;
}

.app .tasks-priority-badge--low {
  color: #1f2937;
  background: #d9e4c0;
}

.app .tasks-status-badge--pending {
  color: #64748b;
  background: #e5e7eb;
}

.app .tasks-status-badge--progress {
  color: #fff;
  background: #2563eb;
}

.app .tasks-status-badge--review {
  color: #fff;
  background: #7c3aed;
}

.app .tasks-status-badge--completed {
  color: #fff;
  background: #0f9d58;
}

.app .tasks-status-badge--cancelled {
  color: #fff;
  background: #dc444c;
}

.app .tasks-status-badge--hold {
  color: #1f2937;
  background: #d1d5db;
}

.app .tasks-list-table .tasks-status-badge--pending {
  color: #8a96a8;
  background: transparent;
}

.app .tasks-list-table .tasks-status-badge--progress {
  color: #6f8fdb;
  background: transparent;
}

.app .tasks-list-table .tasks-status-badge--review {
  color: #9a83d6;
  background: transparent;
}

.app .tasks-list-table .tasks-status-badge--completed {
  color: #5e9b83;
  background: transparent;
}

.app .tasks-list-table .tasks-status-badge--cancelled {
  color: #c77478;
  background: transparent;
}

.app .tasks-list-table .tasks-status-badge--hold {
  color: #9ba3af;
  background: transparent;
}

@media (max-width: 1200px) {
  .app .tasks-list-grid {
    grid-template-columns:
      100px
      minmax(160px, 1.55fr)
      110px
      minmax(102px, 0.9fr)
      minmax(102px, 0.9fr)
      88px
      minmax(96px, 0.82fr)
      88px;
    gap: 8px 10px;
  }
}

.app .tasks-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.app .tasks-section-head .events-form-section-title {
  margin: 0;
}

.app .tasks-section-hint {
  margin-bottom: 12px;
}

.app .tasks-assignment-grid {
  margin-top: 12px;
}

.app .tasks-assignment-panel {
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
}

.app .tasks-user-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.app .tasks-subtitle {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.app .tasks-checklist-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.app .tasks-checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.app .tasks-meta-section {
  padding-top: 18px;
}

.app .tasks-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.app .tasks-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.app .tasks-meta-list dt {
  color: var(--muted);
}

.app .tasks-meta-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.app .tasks-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app .tasks-detail-card {
  padding: 18px;
  overflow: visible;
}

.app .tasks-detail-title {
  margin: 0 0 14px;
}

.app .tasks-kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(240px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.app .tasks-kanban-column {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 14px;
  box-shadow: none;
  overflow: visible;
}

.app .tasks-kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.app .tasks-kanban-column-title {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  color: var(--text);
}

.app .tasks-kanban-column-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 4px 2px 2px;
  border-radius: 12px;
  transition: background-color 0.18s ease, outline-color 0.18s ease;
}

.app .tasks-kanban-column-body.is-drop-target {
  background: rgba(0, 180, 216, 0.08);
  outline: 2px dashed rgba(0, 180, 216, 0.42);
}

.app .tasks-kanban-empty {
  margin: 0;
  font-size: 13px;
}

.app .tasks-kanban-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.app .tasks-kanban-card.is-draggable {
  cursor: grab;
}

.app .tasks-kanban-card.is-dragging {
  opacity: 0.45;
  transform: rotate(1deg);
}

.app .tasks-kanban-board.is-updating .tasks-kanban-card {
  pointer-events: none;
}

.app .tasks-kanban-card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.app .tasks-kanban-card-top,
.app .tasks-kanban-meta,
.app .tasks-kanban-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.app .tasks-kanban-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.app .tasks-kanban-title:hover {
  color: #0077b6;
}

.app .tasks-kanban-foot {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.app .tasks-kanban-grip {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.app .tasks-calendar-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app .tasks-calendar-title {
  margin-bottom: 6px;
}

.app .tasks-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app .tasks-calendar-month-label {
  min-width: 160px;
  text-align: center;
  font-weight: 850;
  color: var(--text);
}

.app .tasks-calendar-grid-wrap {
  overflow-x: auto;
}

.app .tasks-calendar-weekdays,
.app .tasks-calendar-grid {
  min-width: 980px;
}

.app .tasks-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.app .tasks-calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #00b4d8;
}

.app .tasks-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.app .tasks-calendar-day {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 12px;
  box-shadow: none;
  overflow: visible;
}

.app .tasks-calendar-day.is-outside-month {
  background: #f8fafc;
  opacity: 0.72;
}

.app .tasks-calendar-day.is-today {
  border-color: rgba(0, 180, 216, 0.42);
  box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.12);
}

.app .tasks-calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.app .tasks-calendar-day-number {
  font-size: 16px;
  font-weight: 850;
  color: var(--text);
}

.app .tasks-calendar-day-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.12);
  color: #0077b6;
  font-size: 12px;
  font-weight: 800;
}

.app .tasks-calendar-day-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app .tasks-calendar-empty {
  margin: 0;
  font-size: 12px;
}

.app .tasks-calendar-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.app .tasks-calendar-card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.app .tasks-calendar-card-time {
  font-size: 12px;
  font-weight: 800;
  color: #0077b6;
}

.app .tasks-calendar-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.app .tasks-calendar-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.app .tasks-comments-list,
.app .tasks-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app .tasks-comment-item,
.app .tasks-timeline-item {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel, #f8fafc);
}

.app .tasks-comment-meta,
.app .tasks-timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.app .tasks-comment-body,
.app .tasks-timeline-message {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.app .tasks-comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.app .tasks-comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
}

.app .tasks-comment-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 14px;
  background: #efefef;
  font-family: inherit;
  min-height: 110px;
  resize: vertical;
}

.app .tasks-comment-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .app .tasks-summary-grid,
  .app .tasks-detail-grid {
    grid-template-columns: 1fr;
  }

  .app .tasks-kanban-board {
    grid-template-columns: repeat(6, minmax(220px, 1fr));
  }
}

@media (max-width: 560px) {
  .app .tasks-summary-grid,
  .app .tasks-assignment-grid,
  .app .tasks-checklist-item {
    grid-template-columns: 1fr;
  }

  .app .tasks-calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .app .tasks-calendar-month-label {
    min-width: 0;
    flex: 1;
  }
}

/* Consistência tipográfica — listas e grelhas */
.app .item,
.app .item-author,
.app .media-folder-link,
.app .media-file-name,
.app .media-table,
.app .media-table th,
.app .media-table td,
.app .schedule-send-row,
.app .schedule-send-name,
.app .schedule-send-status,
.app .schedule-send-datetime,
.app .my-contacts-group-label,
.app .my-contacts-group-author,
.app .my-contacts-group-count,
.app .my-contacts-table,
.app .my-contacts-table th,
.app .my-contacts-table td,
.app .events-list-name,
.app .events-status-badge,
.app .events-table,
.app .events-table th,
.app .events-table td,
.app .sends-th,
.app .sends-td,
.app .sends-no-attachments,
.app .sends-attachments a,
.app .tt-day-btn,
.app .tt-day-btn-title,
.app .tt-day-btn-meta,
.app .tt-buffer,
.app .tt-table,
.app .tt-table th,
.app .tt-table td,
.app .budget-table-event,
.app .budget-balance-pill,
.app .budget-note-text,
.app .budget-view-items-table,
.app .budget-view-items-table th,
.app .budget-view-items-table td,
.app .budget-assign-card,
.app .budget-assign-card-text,
.app .tasks-inline-note,
.app .tasks-priority-badge,
.app .tasks-status-badge,
.app .tasks-table,
.app .tasks-table th,
.app .tasks-table td,
.app .tasks-kanban-title,
.app .tasks-calendar-card-time,
.app .tasks-calendar-card-title,
.app .tasks-calendar-card-meta,
.app .tasks-comment-meta,
.app .tasks-comment-body,
.app .tasks-timeline-meta,
.app .tasks-timeline-message {
  font-size: 14px;
  line-height: 1.4;
}

.app .media-file-name,
.app .schedule-send-name,
.app .my-contacts-person-name,
.app .events-list-name,
.app .sends-col-name,
.app .tt-day-btn-title,
.app .budget-assign-card-text strong,
.app .tasks-title,
.app .tasks-kanban-title,
.app .tasks-calendar-card-title {
  font-weight: 700;
}

.app .media-table thead th,
.app .my-contacts-table th,
.app .events-table th,
.app .sends-th,
.app .tt-table thead th,
.app .budget-view-items-table th {
  font-weight: 700;
  line-height: 1.3;
}

.app th {
  color: #00b4d8;
}

.app .item-author,
.app .schedule-send-datetime,
.app .my-contacts-group-author,
.app .tt-day-btn-meta,
.app .budget-note-text,
.app .tasks-inline-note,
.app .tasks-calendar-card-meta,
.app .tasks-comment-meta,
.app .tasks-timeline-meta {
  font-weight: 500;
}

/* Formulários públicos de inscrição (/i/{slug}) */
.public-form-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(165deg, #f0f9ff 0%, #f8fafc 45%, #fff7ed 100%);
  color: #0f172a;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.public-form-wrap {
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.public-form-wrap--narrow {
  max-width: 480px;
  text-align: center;
}

.public-form-logo {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 0 auto 24px;
}

.public-form-header-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 24px;
  border-radius: 8px;
}

/* Página de confirmação de inscrição (/i/confirm/{token}) */
.public-form-confirm {
  box-sizing: border-box;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

@media (min-width: 720px) {
  .public-form-confirm {
    padding: 32px 20px 48px;
  }
}

.public-form-confirm__frame {
  width: 100%;
  margin: 0 auto;
}

.public-form-confirm__banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  vertical-align: top;
}

.public-form-confirm__panel {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  padding: 24px 20px 28px;
  text-align: center;
}

@media (min-width: 480px) {
  .public-form-confirm__panel {
    padding: 28px 32px 32px;
  }
}

.public-form-confirm__panel .public-form-logo {
  max-width: 200px;
  margin: 0 auto 20px;
}

.public-form-confirm__panel h1 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.25;
}

.public-form-confirm__panel .public-form-meta {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.public-form-confirm__panel .public-form-lead {
  margin: 0 0 12px;
}

.public-form-confirm__panel .public-form-status {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.public-form-confirm__panel .public-form-status--ok {
  background: #dcfce7;
  color: #166534;
}

.public-form-confirm__panel .public-form-status--error {
  background: #fee2e2;
  color: #991b1b;
}

.public-form-confirm__hint {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

.public-form-confirm__actions {
  margin: 0;
}

.public-form-confirm__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 48px;
  min-width: min(100%, 280px);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background: #2d6a4f;
  color: #fff;
  transition: background 0.15s ease;
}

.public-form-confirm__download:hover {
  background: #1b4332;
  color: #fff;
}

.public-form-confirm__download:focus-visible {
  outline: 2px solid #2d6a4f;
  outline-offset: 2px;
}

.public-form-confirm__download-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.event-form-banner-field {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border, #e2e8f0);
}

/* —— Editor de formulários: grelha de definições —— */
.app .forms-editor-ident {
  margin-bottom: 16px;
}

.app .forms-editor-ident-fields {
  margin-bottom: 0;
}

.app .forms-editor-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  align-items: stretch;
}

.app .forms-editor-settings-grid > .forms-editor-section {
  height: 100%;
}

.app .forms-editor-section--stack {
  display: flex;
  flex-direction: column;
}

.app .forms-editor-section-body {
  flex: 1 1 auto;
  min-width: 0;
}

.app .forms-editor-section-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--stroke, #e2e8f0);
}

.app .forms-editor-section {
  padding: 14px 14px 16px;
  border: 1px solid var(--stroke, #e2e8f0);
  border-radius: 12px;
  background: #fafbfc;
  min-width: 0;
}

.app .forms-editor-section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.app .forms-editor-section-hint {
  margin: 4px 0 12px;
  font-size: 12px;
  line-height: 1.4;
}

.app .forms-editor-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.app .forms-editor-section--fields {
  padding: 0;
  border: 0;
  background: transparent;
}

.app .forms-editor-section-head > div .forms-editor-section-hint {
  margin-bottom: 0;
}

.app .forms-fields-toolbar-actions {
  margin: -4px 0 10px;
}

.app .forms-editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
}

.app .forms-editor-field:last-child {
  margin-bottom: 0;
}

.app .forms-editor-field input,
.app .forms-editor-field select {
  width: 100%;
  box-sizing: border-box;
}

.app .forms-editor-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
  margin-bottom: 6px;
}

.app .forms-editor-field-note {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.app .forms-editor-rules-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app .forms-public-link-box {
  margin-top: 4px;
}

.app .forms-public-link-display {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.app .forms-public-link-url {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--stroke, #e2e8f0);
  border-radius: 10px;
  background: #efefef;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
  color: #125c71;
  text-decoration: none;
  min-height: 46px;
  box-sizing: border-box;
}

.app .forms-public-link-url:hover {
  text-decoration: underline;
}

.app .forms-public-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app .forms-public-actions-row {
  display: flex;
  gap: 8px;
}

.app .forms-public-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.app .forms-public-actions-row .btn {
  flex: 1 1 0;
  min-width: 0;
}

.app .forms-field-required-row {
  justify-content: center;
  min-height: 0;
  gap: 0;
  margin: 0;
}

.app .forms-add-field-required .forms-field-required-row {
  justify-content: flex-start;
  margin-top: 2px;
}

.app .btn-compact {
  padding: 4px 10px;
  font-size: 12px;
}

.app .forms-email-placeholders-details {
  margin: 0 0 12px;
  font-size: 12px;
}

.app .forms-email-placeholders-details summary {
  cursor: pointer;
  color: #64748b;
}

.app .forms-email-placeholders-body {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.app .event-form-banner-thumb-wrap {
  position: relative;
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--stroke, #e2e8f0);
  background: #fff;
}

.app .event-form-banner-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app .event-form-banner-thumb-wrap.is-empty .event-form-banner-preview-img {
  display: none;
}

.app .event-form-banner-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  background: #f1f5f9;
}

.app .event-form-banner-thumb-wrap:not(.is-empty) .event-form-banner-thumb-placeholder {
  display: none;
}

.app .event-form-banner-thumb-icon {
  width: 36px;
  height: 36px;
}

.event-form-banner-field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.event-form-banner-field-label {
  font-weight: 600;
}

.event-form-banner-preview-wrap {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  background: #f8fafc;
}

.event-form-banner-path {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
}

.app .event-form-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app .event-form-banner-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .app .forms-editor-settings-grid {
    grid-template-columns: 1fr;
  }

  .app .event-form-banner-thumb-wrap {
    max-width: 120px;
  }
}

.event-form-banner-upload-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.event-form-banner-upload-label {
  margin-bottom: 8px;
  font-size: 13px;
}

.event-form-banner-drop-zone {
  min-height: 120px;
}

.event-form-banner-pick-table .event-form-banner-row--disabled {
  opacity: 0.55;
}

.public-form-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 14px;
}

.public-form-header h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.public-form-meta,
.public-form-location,
.public-form-vacancies {
  margin: 4px 0;
}

.public-form-flash {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
}

.public-form-flash--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.public-form-errors {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.public-form-errors p {
  margin: 0 0 6px;
}

.public-form-errors p:last-child {
  margin-bottom: 0;
}

.public-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .public-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .public-form-field--full,
  .public-form-section {
    grid-column: 1 / -1;
  }

  .public-form-field--half {
    grid-column: span 1;
  }

  .public-form-field--third {
    grid-column: span 1;
  }
}

.public-form-field label {
  display: block;
}

.public-form-field label > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.public-form-field input[type='text'],
.public-form-field input[type='email'],
.public-form-field input[type='tel'],
.public-form-field input[type='date'],
.public-form-field input[type='number'],
.public-form-field select,
.public-form-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.public-form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.public-form-radio-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.public-form-radio-legend {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.public-form-radio-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.public-form-section-rule {
  margin: 12px 0 8px;
  border: 0;
  border-top: 1px solid #cbd5e1;
}

.public-form-section-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.public-form-section-help {
  margin: 4px 0 0;
  font-size: 13px;
}

.public-form-help,
.public-form-gdpr {
  margin: 6px 0 0;
  font-size: 13px;
}

.public-form-field:has(.sb-form-checkbox-row) .public-form-gdpr {
  margin-top: 8px;
  padding-left: 36px;
}

.public-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-form-actions {
  margin-top: 24px;
  grid-column: 1 / -1;
}

.public-form-submit {
  width: 100%;
  max-width: 320px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.public-form-page .btn.btn-sage {
  background: #2d6a4f;
  color: #fff;
}

.public-form-page .btn.btn-sage:hover {
  background: #1b4332;
}

.public-form-lead {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.public-form-page .muted {
  color: #64748b;
}

.public-form-page fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.public-form-page legend {
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}

.public-ticket-wrap {
  text-align: center;
}

.public-ticket-wrap .events-status-badge {
  display: inline-block;
  margin: 12px 0;
}

.public-ticket-qr {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  min-height: 220px;
}

.public-ticket-qr img {
  border-radius: 8px;
}

.public-ticket-hint {
  font-size: 14px;
}

.app .forms-checkin-page .forms-checkin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.app .forms-checkin-stat {
  flex: 1 1 120px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f1f5f9;
  text-align: center;
}

.app .forms-checkin-stat--ok {
  background: #ecfdf5;
}

.app .forms-checkin-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.app .forms-checkin-stat-label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.app .forms-checkin-scanner-card {
  margin-top: 16px;
}

.app .forms-checkin-reader {
  max-width: 420px;
  margin: 0 auto 12px;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.app .forms-checkin-reader-hint {
  text-align: center;
  margin-bottom: 20px;
}

.app .forms-checkin-manual-search {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
}

.app .forms-checkin-manual-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.app .forms-checkin-manual-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
}

.app .forms-checkin-search-field {
  display: block;
  margin: 0;
}

.app .forms-checkin-search-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
}

.app .forms-checkin-search-hint,
.app .forms-checkin-search-empty {
  margin: 10px 0 0;
  font-size: 14px;
}

.app .forms-checkin-search-results {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app .forms-checkin-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app .forms-checkin-search-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.app .forms-checkin-search-item-contact {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .forms-checkin-search-item-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app .forms-checkin-result {
  margin-top: 20px;
  padding: 0;
  border: none;
  background: transparent;
}

.app .forms-checkin-result--ok {
  background: transparent;
  border: none;
  color: inherit;
}

.app .forms-checkin-result--err {
  padding: 14px 18px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.app .forms-checkin-result-error {
  margin: 0;
}

/* Painel de sucesso CHECK-IN (scanner + modal) */
.checkin-success-panel {
  box-sizing: border-box;
  text-align: center;
  padding: 36px 28px 32px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.checkin-success-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
}

.checkin-success-icon-wrap svg {
  width: 48px;
  height: 48px;
  display: block;
}

.checkin-success-icon-wrap--duplicate {
  background: #fff4eb;
  color: #ea580c;
}

.checkin-duplicate-glyph {
  display: none;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1;
}

.checkin-success-icon-wrap--duplicate .checkin-duplicate-glyph {
  display: block;
}

.checkin-success-icon-wrap--duplicate .checkin-success-icon-svg--ok {
  display: none;
}

.checkin-success-panel--modal.checkin-success-panel--duplicate .checkin-success-label {
  color: #c2410c;
}

.checkin-success-label {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #065f46;
  line-height: 1.05;
}

.checkin-success-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #475569;
}

.checkin-success-detail {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
  font-weight: 500;
}

.checkin-success-panel--landing .checkin-success-label {
  font-size: 40px;
}

.checkin-success-panel--modal {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.checkin-success-panel--modal .checkin-success-icon-wrap {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}

.checkin-success-panel--modal .checkin-success-icon-wrap svg {
  width: 38px;
  height: 38px;
}

.checkin-success-panel--modal .checkin-success-label {
  font-size: 30px;
  margin-bottom: 0;
}

.app .modal.modal-checkin-success {
  width: min(320px, 92vw);
  height: auto;
  max-height: none;
  border-radius: 20px;
  overflow: visible;
}

.app #eventFormEntryCheckinModal .modal-checkin-success-body {
  padding: 28px 24px 22px;
  text-align: center;
}

.app #eventFormEntryCheckinModal .checkin-success-message {
  margin-top: 14px;
}

.app #eventFormEntryCheckinModal .checkin-success-actions {
  justify-content: center;
  margin-top: 22px;
  padding: 0;
  border: none;
}

.app #eventFormEntryCheckinModal .checkin-success-actions .btn,
.app #eventFormCheckinModal .checkin-success-actions .btn {
  min-width: 96px;
}

.app #eventFormCheckinModal .modal-checkin-success-body {
  padding: 28px 24px 22px;
  text-align: center;
}

.app #eventFormCheckinModal .checkin-success-message {
  margin-top: 14px;
}

/* Modais de feedback (sucesso / aviso) — padrão partilhado */
.sb-feedback-modal {
  position: relative;
}

.sb-feedback-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sb-feedback-modal-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.sb-feedback-modal-close-glyph {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}

.sb-feedback-modal .sb-feedback-modal-label,
.sb-feedback-modal .checkin-success-panel--modal .sb-feedback-modal-label {
  font-size: 25px;
  margin-bottom: 0;
}

.sb-feedback-modal .checkin-success-icon-wrap--ok {
  background: #ecfdf5;
  color: #059669;
}

.sb-feedback-modal .checkin-success-icon-wrap--warning {
  background: #fff4eb;
  color: #ea580c;
}

.sb-feedback-modal .sb-feedback-icon-svg {
  width: 38px;
  height: 38px;
  display: block;
}

.sb-feedback-modal .checkin-success-icon-wrap--ok .sb-feedback-icon-svg--warning,
.sb-feedback-modal .checkin-success-icon-wrap--warning .sb-feedback-icon-svg--success {
  display: none;
}

.sb-feedback-modal .checkin-success-panel--modal.feedback-modal--success .checkin-success-label {
  color: #065f46;
}

.sb-feedback-modal .checkin-success-panel--modal.feedback-modal--warning .checkin-success-label {
  color: #c2410c;
}

.app #taskFeedbackModal .modal-checkin-success-body {
  padding: 36px 24px 28px;
  text-align: center;
}

.app #taskFeedbackModal .checkin-success-message {
  margin-top: 14px;
}

.app #eventFormCheckinModal .checkin-success-actions {
  justify-content: center;
  margin-top: 22px;
  padding: 0;
  border: none;
}

@media (max-width: 1100px) {
  .app .forms-checkin-scanner-card {
    padding: 14px;
  }

  .app .forms-checkin-reader {
    min-height: min(52vw, 320px);
  }

  .app .modal.modal-checkin-success {
    width: min(340px, 94vw);
  }
}

.app .forms-checkin-recent {
  margin-top: 20px;
}

.app .forms-checkin-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app .forms-entry-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
}

.app .forms-entries-table {
  table-layout: fixed;
  min-width: 720px;
}

.app .forms-entries-table col.forms-entries-col-date {
  width: 12%;
}

.app .forms-entries-table col.forms-entries-col-contact {
  width: auto;
}

.app .forms-entries-table col.forms-entries-col-status {
  width: 112px;
}

.app .forms-entries-table col.forms-entries-col-confirmed {
  width: 14%;
}

.app .forms-entries-table col.forms-entries-col-checkin {
  width: 100px;
}

.app .forms-entries-table col.forms-entries-col-actions {
  width: 210px;
}

.app .forms-entries-table .forms-entries-col-status,
.app .forms-entries-table .forms-entries-col-checkin,
.app .forms-entries-table .forms-entries-col-confirmed {
  white-space: nowrap;
  font-size: 12px;
}

.app .forms-entries-table .forms-entries-col-status {
  width: 112px;
  min-width: 112px;
}

.app .forms-entries-table .entry-status-badge {
  display: inline-block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  font-size: 11px;
  padding: 4px 10px;
}

.app .forms-entries-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin-bottom: 16px;
}

.app .forms-entries-filter-field {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.app .forms-entries-filter-field > span:not(.visually-hidden) {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  line-height: 1.2;
}

.app .forms-entries-filter-field select,
.app .forms-entries-filter-field input[type="date"] {
  min-width: 168px;
  width: 100%;
}

.app .forms-entries-table-wrap {
  position: relative;
}

.app .forms-entries-no-results {
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 15px;
}

.app .forms-entries-no-results p {
  margin: 0;
  font-weight: 600;
  color: #475569;
}

.app .forms-entries-table-wrap.is-search-empty .forms-entries-table {
  display: none;
}

.app .forms-entries-table td.forms-entries-col-actions {
  text-align: right;
  vertical-align: middle;
}

.app .forms-entry-cancel-btn {
  color: #b91c1c;
}

.app .forms-entry-cancel-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.app .forms-entry-anonymized-label {
  font-size: 12px;
}

.app .forms-entry-delete-btn {
  color: #b91c1c;
}

.app .forms-entry-delete-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.app .forms-checkin-recent-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.public-form-wrap--policy {
  max-width: 720px;
}

.privacy-policy-doc section {
  margin-top: 1.5rem;
}

.privacy-policy-doc h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.privacy-policy-doc ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.privacy-policy-doc li {
  margin-bottom: 0.35rem;
}

.privacy-policy-intro {
  font-size: 1.05rem;
  line-height: 1.55;
}

.privacy-policy-context {
  margin-bottom: 1rem;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.public-form-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
}

.public-form-privacy-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.app .privacy-policy-backoffice .privacy-policy-doc {
  max-width: 720px;
}

.app .forms-email-template-input {
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid var(--stroke, #cbd5e1);
  border-radius: 8px;
}

.app .form-email-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
  flex-wrap: wrap;
}

.app .form-email-tab {
  border: 1px solid var(--stroke, #cbd5e1);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

.app .form-email-tab.is-active {
  background: var(--sage, #7d9b76);
  border-color: var(--sage, #7d9b76);
  color: #fff;
}

.app .form-email-templates-card .form-rich-editor-block {
  margin-top: 8px;
}

.app .form-email-templates-card .create-editor-stack {
  min-height: 1500px;
}

.app .form-field-options-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--stroke, #cbd5e1);
  border-radius: 10px;
  background: #f8fafc;
}

.app .form-field-options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.app .form-field-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 12px;
}

.app .form-field-options-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.app .form-field-options-span2 {
  grid-column: 1 / -1;
}

.app .event-form-field-row.is-field-selected td {
  background: #eef6ff;
}

.app .forms-fields-toolbar {
  margin-top: 12px;
  margin-bottom: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--stroke);
}

.app .forms-fields-table-wrap {
  margin-top: 0;
  margin-bottom: 24px;
}

.app .forms-fields-table {
  table-layout: fixed;
  width: 100%;
}

.app .forms-fields-table col.forms-col-drag {
  width: 40px;
}

.app .forms-fields-table col.forms-col-type {
  width: 22%;
}

.app .forms-fields-table col.forms-col-req {
  width: 11%;
}

.app .forms-fields-table col.forms-col-actions {
  width: 120px;
}

.app .forms-fields-table td.forms-col-req,
.app .forms-fields-table th.forms-col-req {
  text-align: center;
}

.app .forms-fields-table td.forms-col-actions,
.app .forms-fields-table th.forms-col-actions {
  text-align: center;
  white-space: nowrap;
}

.app .forms-fields-table .event-form-field-type {
  width: 100%;
  max-width: none;
}

.app .forms-fields-table .event-form-field-label {
  width: 100%;
}

.app .forms-field-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 4px;
  margin: 10px 0;
}

.app .forms-field-remove-btn {
  color: #b91c1c;
  border-color: #fecaca;
}

.app .forms-field-remove-btn:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.app .forms-add-field-section {
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
}

.app .forms-add-field-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.15fr) minmax(220px, 2.4fr) minmax(88px, 0.65fr) minmax(148px, 1fr);
  gap: 16px 20px;
  align-items: end;
  width: 100%;
}

.app .forms-add-field-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
}

.app .forms-add-field-required {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
}

.app .forms-add-field-options-span {
  grid-column: 1 / -1;
}

.app .forms-add-field-options textarea {
  width: 100%;
  min-height: 96px;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
}

.app .forms-add-field-submit {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.app .forms-add-field-submit .btn {
  width: 100%;
  justify-content: center;
}

.app .budget-field-grow select,
.app .tt-stats-bar input,
.app .tt-stats-bar select,
.app .tt-editor-top-fields select,
.app .tt-editor-top-fields input[type="text"],
.app .tt-editor-top-fields input[type="number"],
.app .tt-editor-top-fields input[type="date"],
.app .tt-editor-top-fields input[type="time"],
.app #eventFormName,
.app #eventFormEventId,
.app #eventFormPublicSlug,
.app #eventFormStatus,
.app #eventFormMaxEntries,
.app #eventFormRetentionDays,
.app #eventFormNewFieldType,
.app #eventFormNewFieldLabel,
.app #eventFormFieldOptWidth,
.app #eventFormFieldOptPlaceholder,
.app #eventFormFieldOptHelp,
.app #eventFormFieldOptOptions,
.app #eventFormFieldOptGdpr,
.app .form-step-block input,
.app .form-step-block textarea {
  width: 100%;
  font: inherit;
  padding: 14px 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #efefef;
  font-size: 14px;
  box-sizing: border-box;
  min-height: 46px;
}

.app .tt-stats-bar input,
.app .tt-stats-bar select {
  padding: 10px 10px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 14px;
}

.app #eventFormNewFieldType {
  width: 100%;
}

.app .forms-add-field-grid #eventFormNewFieldType,
.app .forms-add-field-grid #eventFormNewFieldLabel {
  width: 100%;
  max-width: none;
}

.app .tt-table input[type="checkbox"]:not(.sb-form-checkbox__input) {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
  accent-color: #125c71;
  transform: scale(0.8);
  transform-origin: left center;
}

.app .form-field-options-panel input,
.app .form-field-options-panel select,
.app .form-field-options-panel textarea,
.app .form-step-block input,
.app .form-step-block textarea {
  width: 100%;
  font: inherit;
  padding: 8px 8px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #efefef;
  box-sizing: border-box;
  min-height: 38px;
}

.app .form-field-options-panel textarea,
.app .form-step-block textarea {
  min-height: 92px;
}

@media (max-width: 860px) {
  .app .forms-add-field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app .forms-add-field-label {
    grid-column: 1 / -1;
  }

  .app .forms-add-field-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .app .form-field-options-grid {
    grid-template-columns: 1fr;
  }

  .app .forms-fields-table col.forms-col-type {
    width: 28%;
  }

  .app .forms-fields-table col.forms-col-actions {
    width: 100px;
  }
}

.app .form-field-condition-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: end;
}

.app .form-step-block {
  border: 1px solid var(--stroke, #cbd5e1);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
}

.app .form-entry-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 14px;
}

.app .form-entry-detail-fields {
  display: grid;
  gap: 10px 16px;
  margin: 12px 0 0;
}

.app .form-entry-detail-field dt {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.app .form-entry-detail-field dd {
  margin: 4px 0 0;
  font-size: 15px;
}

.app .form-entry-log-timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-left: 2px solid #e2e8f0;
}

.app .form-entry-log-item {
  padding: 0 0 14px 16px;
  position: relative;
}

.app .form-entry-log-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage, #7d9b76);
}

.app .form-entry-log-meta {
  font-size: 11px;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.public-form-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.public-form-step-tab {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: default;
}

.public-form-step-tab.is-active {
  background: #125c71;
  color: #fff;
  border-color: #125c71;
}

.public-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-ticket-pdf {
  margin-top: 20px;
  text-align: center;
}

/* Select: seta personalizada com margem de 10px à direita do ícone */
.app select:not([multiple]):not([size]),
.public-form-page select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-arrow-icon);
  background-repeat: no-repeat;
  background-position: right var(--select-arrow-inset) center;
  background-size: var(--select-arrow-size) var(--select-arrow-size);
}

.app select:not([multiple]):not([size]),
.public-form-page select:not([multiple]):not([size]),
.app .events-form select:not([multiple]):not([size]),
.app .sends-toolbar-field select:not([multiple]):not([size]),
.app .editor-toolbar select:not([multiple]):not([size]),
.app .tt-table select:not([multiple]):not([size]),
.app .tt-compact .tt-table select:not([multiple]):not([size]),
.app .tt-stats-bar select:not([multiple]):not([size]),
.app .tt-editor-top-fields select:not([multiple]):not([size]),
.app .tt-editor select:not([multiple]):not([size]),
.app .budget-field-grow select:not([multiple]):not([size]),
.app .form-field-options-panel select:not([multiple]):not([size]),
.app .forms-entries-filter-field select:not([multiple]):not([size]),
.app #eventFormEventId,
.app #eventFormStatus,
.app #eventFormNewFieldType,
.app #eventFormFieldOptWidth,
.public-form-field select:not([multiple]):not([size]) {
  padding-right: var(--select-arrow-padding-right);
}

/* Áreas com tabs horizontais (Releases, Eventos, Tarefas) */
.app .card--releases,
.app .card--events,
.app .card--tasks {
  background: var(--bg);
}

.app .card--releases > .topbar,
.app .card--events > .topbar,
.app .card--tasks > .topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: none;
  padding: 24px;
  margin-bottom: 10px;
}

.app .topbar--releases .title,
.app .topbar--events .title,
.app .topbar--tasks .title {
  font-weight: 400;
  color: var(--brand1);
}

.app .topbar--releases .title strong,
.app .topbar--events .title strong,
.app .topbar--tasks .title strong {
  font-weight: 700;
  color: var(--brand1);
}

.app .topbar--releases .topbar-title-tab,
.app .topbar--events .topbar-title-tab,
.app .topbar--tasks .topbar-title-tab {
  font-weight: 200;
  color: var(--brand1);
}

.app .topbar--releases .topbar-user-actions,
.app .topbar--events .topbar-user-actions,
.app .topbar--tasks .topbar-user-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.app .topbar--releases .topbar-user-link,
.app .topbar--events .topbar-user-link,
.app .topbar--tasks .topbar-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  color: var(--brand1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.app .topbar--releases .topbar-user-link:hover,
.app .topbar--events .topbar-user-link:hover,
.app .topbar--tasks .topbar-user-link:hover {
  color: var(--brand);
}

.app .topbar--releases .topbar-user-link.is-active,
.app .topbar--events .topbar-user-link.is-active,
.app .topbar--tasks .topbar-user-link.is-active {
  color: var(--brand1);
  font-weight: 600;
}

.app .topbar--releases .topbar-user-link-icon,
.app .topbar--events .topbar-user-link-icon,
.app .topbar--tasks .topbar-user-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.app .releases-area-tabs-wrap,
.app .events-area-tabs-wrap,
.app .tasks-area-tabs-wrap {
  background: var(--bg);
  padding: 10px 12px 0;
  flex-shrink: 0;
}

.app .releases-area-tabs,
.app .events-area-tabs,
.app .tasks-area-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px;
}

.app .releases-area-tab,
.app .events-area-tab,
.app .tasks-area-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 12px;
  margin: 0;
  border: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--brand1);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.app .releases-area-tab:hover,
.app .events-area-tab:hover,
.app .tasks-area-tab:hover {
  color: #004a66;
  background: rgba(255, 255, 255, 0.45);
}

.app .releases-area-tab.is-active,
.app .events-area-tab.is-active,
.app .tasks-area-tab.is-active {
  background: #fff;
  color: #1e293b;
  padding-top: 16px;
  padding-bottom: 14px;
  box-shadow: 0 -1px 0 #fff;
}

.app .releases-area-tab-icon,
.app .events-area-tab-icon,
.app .tasks-area-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.app .releases-area-tab.is-active .releases-area-tab-icon,
.app .events-area-tab.is-active .events-area-tab-icon,
.app .tasks-area-tab.is-active .tasks-area-tab-icon {
  color: #1e293b;
}

.app .releases-area-tab:not(.is-active) .releases-area-tab-icon,
.app .events-area-tab:not(.is-active) .events-area-tab-icon,
.app .tasks-area-tab:not(.is-active) .tasks-area-tab-icon {
  color: var(--brand1);
}

.app .tasks-area-tab.tasks-area-tab--new:not(.is-active),
.app .releases-area-tab.releases-area-tab--create:not(.is-active),
.app .events-area-tab.events-area-tab--new:not(.is-active) {
  background: #dcf7e8;
  color: #0f766e;
}

.app .tasks-area-tab.tasks-area-tab--new:not(.is-active):hover,
.app .releases-area-tab.releases-area-tab--create:not(.is-active):hover,
.app .events-area-tab.events-area-tab--new:not(.is-active):hover {
  background: #c8f0d8;
  color: #0d655c;
}

.app .tasks-area-tab.tasks-area-tab--new:not(.is-active) .tasks-area-tab-icon,
.app .releases-area-tab.releases-area-tab--create:not(.is-active) .releases-area-tab-icon,
.app .events-area-tab.events-area-tab--new:not(.is-active) .events-area-tab-icon {
  color: #0f766e;
}

.app .releases-area-panel,
.app .events-area-panel,
.app .tasks-area-panel {
  background: #fff;
  min-height: 120px;
}

.app .card--releases .releases-area-panel > .content--archive,
.app .card--releases .releases-area-panel > .schedule-page,
.app .card--releases .releases-area-panel > .media-page,
.app .card--releases .releases-area-panel > .create-release-page,
.app .card--events .events-area-panel > .events-page,
.app .card--tasks .tasks-area-panel > .tasks-page {
  flex: 1;
  min-height: 0;
}

@media (max-width: 720px) {
  .app .releases-area-tabs-wrap,
  .app .events-area-tabs-wrap,
  .app .tasks-area-tabs-wrap {
    padding: 8px 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app .releases-area-tabs,
  .app .events-area-tabs,
  .app .tasks-area-tabs {
    flex-wrap: nowrap;
    min-width: min-content;
  }

  .app .releases-area-tab,
  .app .events-area-tab,
  .app .tasks-area-tab {
    padding: 12px 14px 10px;
    font-size: 11px;
    gap: 8px;
  }

  .app .releases-area-tab.is-active,
  .app .events-area-tab.is-active,
  .app .tasks-area-tab.is-active {
    padding-top: 14px;
    padding-bottom: 12px;
  }
}

