/* Painel administrativo — Igreja Metodista em Vilhena */
:root {
  --red: #E30514; --red-700: #B30006; --red-50: #FDEBEC;
  --ink: #1E1E20; --text: #414141; --muted: #74747A; --line: #E7E8EB; --soft: #F4F5F7; --bg: #F1F2F4;
  --side: #1C1C1F; --side-2: #26262A;
  --ok: #16A34A; --ok-bg: #DCFCE7; --warn: #B45309; --warn-bg: #FEF3C7;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px -6px rgba(0,0,0,.08);
  --font-head: "Montserrat", system-ui, sans-serif; --font-body: "Roboto", system-ui, sans-serif;
  --side-w: 260px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-700); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.25; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -.22em; }
.icon--sm { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.d-block { display: block; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; color: var(--ink); }
.strong:hover { color: var(--red); }
.text-red { color: var(--red); }
.mt { margin-top: 26px; }
.inline { display: inline; margin: 0; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; transition: all .2s; white-space: nowrap; background: none; cursor: pointer; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: #fff; color: var(--red); }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 0; background: transparent; color: var(--muted); transition: all .15s; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn--danger:hover { background: #FEE2E2; color: #B91C1C; }
.link-btn { background: none; border: 0; color: var(--red); font-size: .78rem; padding: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Layout */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: rgba(255,255,255,.72); display: flex; flex-direction: column; z-index: 50; transition: transform .3s; }
.sidebar__brand { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar__brand img { width: 128px; height: auto; }
.sidebar__brand span { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.5); font-weight: 500; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.sidebar__group { margin-bottom: 18px; }
.sidebar__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.38); padding: 0 12px 6px; font-weight: 500; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.75); font-weight: 500; font-size: .92rem; position: relative; }
.sidebar a:hover { background: var(--side-2); color: #fff; }
.sidebar a.active { background: var(--red); color: #fff; }
.sidebar .count { margin-left: auto; font-style: normal; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sidebar a.active .count { background: #fff; color: var(--red); }
.sidebar__foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-backdrop { display: none; }
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__title { font-size: 1.2rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }
.content { padding: 28px; max-width: 1400px; width: 100%; }

.user-menu { position: relative; }
.user-menu__btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 8px; border-radius: 12px; color: var(--ink); }
.user-menu__btn:hover { background: var(--soft); }
.user-menu__name { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.user-menu__name strong { font-size: .88rem; }
.user-menu__name small { color: var(--muted); font-size: .75rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.2); padding: 6px; display: none; }
.user-menu.is-open .dropdown { display: block; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font-size: .9rem; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--soft); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar--soft { background: var(--red-50); color: var(--red); }
.avatar--lg { width: 54px; height: 54px; font-size: 1.3rem; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card__head h2, .card__title { font-size: 1rem; margin: 0 0 14px; }
.card__head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .card + .card { margin-top: 0; }

.welcome-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 30px; border-radius: var(--radius); color: #fff; margin-bottom: 22px;
  background: radial-gradient(500px 200px at 100% 0%, rgba(255,255,255,.15), transparent 60%), linear-gradient(120deg, var(--red-700), var(--red)); }
.welcome-box h2 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.welcome-box p { margin: 0; opacity: .85; }
.shortcuts { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--text); transition: all .2s; }
.stat:hover { border-color: var(--red); color: var(--text); transform: translateY(-2px); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.stat small { color: var(--muted); }
.stat__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--red-50); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat__icon .icon { width: 22px; height: 22px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--text); }
.list a:hover { background: var(--soft); }
.list a > span:nth-child(2) { flex: 1; min-width: 0; }
.list strong { display: block; color: var(--ink); font-weight: 500; }
.list small { color: var(--muted); }
.mini-date { display: inline-flex; flex-direction: column; align-items: center; min-width: 48px; padding: 4px 6px; border-radius: 10px; background: var(--red-50); color: var(--red); font-size: .7rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.mini-date strong { font-size: 1.15rem; font-family: var(--font-head); color: var(--red); }

/* Toolbar / tabelas */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar p { margin: 0; }
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .88rem; }
.tabs a.active { background: var(--red); color: #fff; }
.tabs a:not(.active):hover { background: var(--soft); color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; flex: 1; max-width: 340px; color: var(--muted); }
.search input { border: 0; outline: 0; padding: 10px 0; font: inherit; background: none; width: 100%; color: var(--ink); }
.select-sm { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFAFB; }
.table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.table tr.is-editing { background: var(--red-50); }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.with-thumb { display: flex; align-items: center; gap: 12px; }
.thumb { width: 52px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.thumb--empty, .thumb--icon { display: inline-flex; align-items: center; justify-content: center; background: var(--red-50); color: var(--red); }
.thumb--icon { width: 38px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--red { background: var(--red-50); color: var(--red); }
.badge--muted { background: var(--soft); color: var(--muted); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pagination a.active { background: var(--red); border-color: var(--red); color: #fff; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .icon { width: 42px; height: 42px; color: var(--red); opacity: .5; margin-bottom: 8px; }
.empty-state h2 { margin-top: 8px; }

/* Formulários */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-weight: 500; }
.back-link:hover { color: var(--red); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.form-side > .card + .card { margin-top: 18px; }
.form-side { position: sticky; top: 88px; }
.form-main { display: flex; flex-direction: column; gap: 16px; }
.form-main.card--flush { display: block; }
.form-side .card { display: flex; flex-direction: column; gap: 14px; }
.form-side .card__title { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.field > span { font-weight: 500; color: var(--ink); font-size: .88rem; }
.field > span b { color: var(--red); }
.field small { color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,5,20,.12); }
.field input:disabled { background: var(--soft); color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 40px; height: 22px; border-radius: 99px; background: #D4D5D9; position: relative; flex-shrink: 0; transition: background .2s; margin-top: 1px; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch__ui { background: var(--red); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { box-shadow: 0 0 0 3px rgba(227,5,20,.25); }
.switch__text { display: flex; flex-direction: column; font-weight: 500; color: var(--ink); font-size: .9rem; }
.switch__text small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.upload { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-side .upload__preview { width: 100%; height: 150px; }
.upload__preview { width: 120px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--soft); flex-shrink: 0; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; }
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload__empty .icon { width: 30px; height: 30px; color: var(--muted); opacity: .5; }
.upload__body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.upload__remove { font-size: .82rem; color: #B91C1C; display: flex; gap: 6px; align-items: center; }
.icon-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.icon-picker input { position: absolute; opacity: 0; }
.icon-picker span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); color: var(--muted); cursor: pointer; }
.icon-picker input:checked + span { border-color: var(--red); background: var(--red-50); color: var(--red); }
.icon-picker input:focus-visible + span { box-shadow: 0 0 0 3px rgba(227,5,20,.2); }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; transition: opacity .4s; }
.alert--ok { background: var(--ok-bg); color: #166534; }
.alert--err { background: #FEE2E2; color: #991B1B; }

/* Editor */
.editor { min-height: 320px; background: #fff; font-size: 1rem; }
.ql-toolbar.ql-snow { border: 1.5px solid var(--line); border-radius: 10px 10px 0 0; background: var(--soft); font-family: var(--font-body); }
.ql-container.ql-snow { border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; font-family: var(--font-body); font-size: 1rem; }
.ql-editor { min-height: 320px; line-height: 1.7; }
.ql-editor h2 { font-family: var(--font-head); }
.ql-editor blockquote { border-left: 4px solid var(--red) !important; background: var(--soft); padding: 10px 16px !important; }

/* Mensagens */
.msg-head { display: flex; align-items: center; gap: 14px; }
.msg-head h2 { margin: 0; font-size: 1.2rem; }
.msg-head p { margin: 2px 0 0; }
.msg-head .badge { margin-left: auto; }
.msg-body { background: var(--soft); border-radius: 12px; padding: 20px; font-size: 1.02rem; line-height: 1.7; color: var(--ink); white-space: normal; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; }

/* Banners */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.banner-grid .card + .card { margin-top: 0; }
.banner-item__img { aspect-ratio: 16/7; background: linear-gradient(120deg, var(--red-700), var(--red)) center/cover; display: flex; align-items: flex-end; padding: 16px; position: relative; }
.banner-item__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 70%); }
.banner-item__title { position: relative; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.banner-item__foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 16px; gap: 8px; }

/* Grupos */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.group-grid .card + .card { margin-top: 0; }
.group-card { display: flex; flex-direction: column; gap: 14px; }
.group-card__head { display: flex; gap: 14px; }
.group-card__head h3 { margin: 0 0 2px; font-size: 1.05rem; }
.group-card__head p { margin: 0; }
.group-card__meta { display: flex; gap: 16px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.group-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.group-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.perm-grid { display: grid; gap: 18px; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 6px; margin: 0; }
.perm-group legend { font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 0 8px; font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.perm { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--soft); cursor: pointer; }
.perm:last-child { border-bottom: 0; }
.perm input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }
.perm span { display: flex; flex-direction: column; color: var(--ink); }
.perm small { color: var(--muted); font-family: ui-monospace, monospace; font-size: .74rem; }
.perm.is-disabled { opacity: .5; cursor: not-allowed; }
.perm-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.perm-list li { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.perm-list .on .icon { color: var(--ok); }
.perm-list .off { color: var(--muted); }
.perm-list .off .icon { color: #CBCBD0; }

/* Configurações */
.settings { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }
.settings .card + .card { margin-top: 0; }
.settings__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings__fields .field:has(textarea) { grid-column: 1 / -1; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(0deg, var(--bg) 60%, transparent); }

/* Logo nas configurações */
.logo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.logo-field { display: flex; flex-direction: column; gap: 14px; }
.logo-preview { height: 130px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 18px; border: 1px solid var(--line); }
.logo-preview img { max-height: 100%; width: auto; object-fit: contain; }
.logo-preview--light { background: #fff; }
.logo-preview--dark { background: var(--side); }
.logo-field .upload__preview { display: none; }
@media (max-width: 900px) { .logo-fields { grid-template-columns: 1fr; } }

/* Integrações */
.integrations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.integration { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.integration__head { display: flex; gap: 12px; align-items: center; }
.integration__head strong { display: block; font-family: var(--font-head); color: var(--ink); }
.integration__head small { color: var(--muted); font-size: .8rem; }
.integration__head small.ok { color: var(--ok); }
.integration__icon { width: 42px; height: 42px; border-radius: 12px; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.integration__icon--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.integration__icon--yt { background: #FF0000; }
.integration__icon--fb { background: #1877F2; }
@media (max-width: 1200px) { .integrations { grid-template-columns: 1fr; } }

/* Instagram (admin) */
.ig-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ig-admin-grid .card + .card { margin-top: 0; }
.ig-admin { display: flex; flex-direction: column; }
.ig-admin__img { position: relative; aspect-ratio: 1; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.ig-admin__img img { width: 100%; height: 100%; object-fit: cover; }
.ig-admin__img .badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff; }
.ig-admin__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ig-admin__body p { margin: 0; font-size: .88rem; flex: 1; }

/* Login */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #fff; }
.login__art { display: flex; flex-direction: column; justify-content: space-between; padding: 50px; color: #fff;
  background: radial-gradient(600px 400px at 100% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(140deg, var(--red-700), var(--red)); }
.login__art img { width: 210px; background: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.35); }
.login__art p { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; line-height: 1.45; max-width: 440px; margin: 0; }
.login__art small { font-size: .85rem; opacity: .75; text-transform: uppercase; letter-spacing: .12em; }
.login__panel { display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.login__form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login__form h1 { font-size: 1.6rem; margin: 10px 0 0; }
.login__form p { margin: -8px 0 4px; }
.login__logo { width: 150px; height: auto; display: none; }
.login .btn--primary { min-height: 48px; margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; align-self: center; }

/* Responsivo */
@media (max-width: 1100px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .hide-md { display: none; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 14px; }
  .grid-2, .settings__fields { grid-template-columns: 1fr; }
  .user-menu__name { display: none; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .login__logo { display: block; }
}
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .table td { border: 0; padding: 3px 0; }
  .table td.hide-md { display: none; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .table td.actions { width: auto; text-align: left; padding-top: 8px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .row-2 { grid-template-columns: 1fr; }
  .welcome-box { padding: 22px; }
  .icon-picker { grid-template-columns: repeat(4, 1fr); }
}
.integration__head > div { min-width: 0; }
.integration__head small { overflow-wrap: anywhere; }
.field .upload__remove input { width: auto; padding: 0; accent-color: var(--red); }
