/* Proqualix — painel administrativo claro, com contraste e foco no trabalho */
:root {
    --green: #27AE20;
    --green-dark: #176B14;
    --green-pale: #EAF5E8;
    --bg: #F4F6F3;
    --sidebar: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F7F9F6;
    --border: #E0E5DE;
    --border-light: #CBD4CA;
    --text: #172019;
    --muted: #4B554D;
    --muted-2: #626D63;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --danger: #B42318;
    --shadow: 0 10px 28px rgba(26, 40, 27, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 14px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
h1 { font-size: 30px; }
h2 { font-size: 18px; }
p { margin: 0 0 12px; }
strong { font-weight: 600; color: var(--text); }
::selection { background: #CDEBC8; color: #10250E; }
:focus-visible { outline: 3px solid #77B96F; outline-offset: 3px; }

/* Estrutura e navegação */
.admin-body { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px; flex-shrink: 0; background: var(--sidebar);
    border-right: 1px solid var(--border); display: flex; flex-direction: column;
    position: fixed; inset: 0 auto 0 0; z-index: 60;
}
.sidebar-brand { padding: 24px 22px 18px; border-bottom: 1px solid var(--border); }
.sidebar-brand img { width: 160px; height: auto; }
.sidebar-tag { display: block; margin-top: 12px; font-family: var(--font-head); font-size: 9px; letter-spacing: .14em; color: #59655B; }
.sidebar-nav { padding: 18px 12px; display: grid; gap: 4px; overflow-y: auto; flex: 1; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px;
    border-radius: 7px; color: #3D493F; font-size: 13px; font-weight: 500;
    transition: background .18s, color .18s;
}
.sidebar-nav a:hover { background: #F1F5EF; color: #172019; }
.sidebar-nav a.active { background: #EAF5E8; color: #145D11; box-shadow: inset 3px 0 0 var(--green); font-weight: 600; }
.sidebar-nav a svg { color: #5B685C; }
.sidebar-nav a.active svg { color: #176B14; }
.nav-badge { margin-left: auto; background: #D9F0D5; color: #145D11; border-radius: 100px; padding: 1px 7px; font-size: 10px; font-weight: 700; }
.nav-divider { height: 1px; background: var(--border); margin: 12px 6px; }
.sidebar-footer { padding: 16px 12px 22px; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.sidebar-footer a, .sidebar-footer button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    background: none; border: 0; color: #465248; font-size: 12px; text-align: left; border-radius: 7px;
}
.sidebar-footer a:hover, .sidebar-footer button:hover { background: #F1F5EF; color: #172019; }
.admin-main { margin-left: 248px; flex: 1; min-width: 0; }
.admin-topbar {
    height: 70px; display: flex; align-items: center; gap: 16px; padding: 0 32px;
    border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96);
    position: sticky; top: 0; z-index: 50;
}
.topbar-spacer { flex: 1; }
.sidebar-toggle { display: none; background: none; border: 0; color: var(--text); padding: 6px; }
.notification-wrap { position: relative; }
.bell-button {
    position: relative; width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 8px; background: #fff; border: 1px solid var(--border-light); color: #344037;
}
.bell-button:hover { border-color: var(--green-dark); color: var(--green-dark); background: #F8FBF7; }
.bell-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.bell-dropdown {
    position: absolute; right: 0; top: 48px; width: 340px; background: #fff;
    border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 42px rgba(20,35,22,.16);
    overflow: hidden; z-index: 70;
}
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.bell-head strong { font-family: var(--font-head); }
.bell-head a { color: var(--green-dark); font-size: 12px; font-weight: 600; }
.bell-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: #F7F9F6; }
.bell-item.unread { background: #F1F8EF; }
.bell-icon { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 7px; background: var(--green-pale); color: var(--green-dark); }
.bell-item strong, .bell-item small, .bell-item em { display: block; font-size: 12px; font-style: normal; }
.bell-item small { color: #465248; font-size: 11px; }
.bell-item em { color: #59655B; font-size: 10px; margin-top: 2px; }
.bell-empty { padding: 24px; text-align: center; color: #59655B; margin: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--border); }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #EAF5E8; border: 1px solid #C6E2C0; color: #145D11; font-family: var(--font-head); font-weight: 700; }
.user-avatar.small { width: 30px; height: 30px; font-size: 12px; }
.user-meta strong, .user-meta small { display: block; font-size: 12px; line-height: 1.3; }
.user-meta small { color: #59655B; }
.admin-content { padding: 30px 32px 60px; max-width: 1500px; }

/* Mensagens e títulos */
.admin-flash-stack { display: grid; gap: 10px; margin-bottom: 22px; }
.admin-flash { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 8px; border: 1px solid; font-size: 13px; }
.admin-flash div { display: grid; }
.admin-flash span { color: #344037; }
.admin-flash.ok { background: #EDF7EB; border-color: #B8DAB2; color: #145D11; }
.admin-flash.err { background: #FEF0EE; border-color: #F0BDB7; color: #8B1E14; }
.admin-alert { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 13px; }
.admin-alert.err { background: #FEF0EE; border: 1px solid #F0BDB7; color: #8B1E14; }
.admin-alert.info { background: #EDF7EB; border: 1px solid #B8DAB2; color: #145D11; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.page-kicker { display: block; font-family: var(--font-head); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #176B14; margin-bottom: 8px; font-weight: 700; }
.page-head h1 { font-size: clamp(26px, 3vw, 32px); }
.page-head p { color: #465248; margin: 0; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Botões e cartões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 7px; border: 1px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: 13px; transition: background .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--green); color: #10250E; }
.btn-primary:hover { background: #21901B; color: #fff; }
.btn-outline { background: #fff; border-color: #B7C1B7; color: #243026; }
.btn-outline:hover { background: #F6F9F5; border-color: var(--green-dark); color: var(--green-dark); }
.btn-outline-danger { background: #fff; border-color: #D9A19B; color: #9F2117; }
.btn-outline-danger:hover { background: #FEF0EE; }
.btn-block { width: 100%; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { margin-bottom: 2px; }
.panel-head p, .panel-desc { color: #4B554D; font-size: 12px; margin: 0; }
.panel-desc { font-size: 13px; margin-bottom: 20px; }
.panel-link { color: #176B14; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.result-count { color: #4B554D; font-size: 12px; }

/* Abas e campos */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tabs a { padding: 11px 16px; color: #465248; font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: #172019; }
.tabs a.active { color: #145D11; border-color: #21891B; font-weight: 600; }
.tabs a span { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 100px; background: #EEF2EC; font-size: 10px; color: #344037; }
.scroll-tabs { overflow-x: auto; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 600; color: #263229; }
.field input, .field select, .field textarea, .test-mail-form input, .search-form input {
    width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #AEB9AE;
    border-radius: 7px; color: #172019; font-size: 13px; outline: none;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .search-form input::placeholder { color: #626D63; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .test-mail-form input:focus, .search-form input:focus { border-color: #287A20; box-shadow: 0 0 0 3px rgba(39,174,32,.14); }
.field-help { color: #4B554D; font-size: 11px; }
.field-help a { color: #145D11; text-decoration: underline; }
.form-panel h2 { margin-bottom: 18px; }
.form-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.toggle-field input[type="checkbox"] { width: 42px; height: 22px; accent-color: #21891B; }
.search-form { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; }
.search-form input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 7px; font-size: 13px; }
.search-form button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--green); border: 0; color: #10250E; }
.search-form button:hover { background: #21901B; color: #fff; }

/* Dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; flex-shrink: 0; }
.stat-icon.green { background: #EAF5E8; color: #176B14; }
.stat-icon.blue { background: #EAF1FA; color: #245A91; }
.stat-icon.purple { background: #F1ECF8; color: #684194; }
.stat-icon.amber { background: #FBF2DF; color: #77530D; }
.stat-label { display: block; color: #465248; font-size: 12px; }
.stat-card strong { display: block; font-family: var(--font-head); color: #172019; font-size: 28px; line-height: 1.2; margin: 2px 0; }
.stat-card small { color: #4B554D; font-size: 11px; }
.dash-columns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.mini-chart { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 10px; }
.mini-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.mini-bar { width: 100%; max-width: 48px; background: #83C879; border-radius: 5px 5px 0 0; position: relative; min-height: 6px; }
.mini-bar em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: #344037; }
.mini-chart-col small { font-size: 11px; color: #4B554D; }
.quick-actions { display: grid; gap: 8px; }
.quick-actions a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.quick-actions a:hover { border-color: #8BBE83; background: #FBFDFB; }
.quick-actions .icon-box { width: 36px; height: 36px; background: #EAF5E8; border-color: #D1E8CD; color: #176B14; }
.quick-actions div { display: grid; }
.quick-actions strong { font-size: 13px; }
.quick-actions small { font-size: 11px; color: #4B554D; }
.quick-actions svg:last-child { margin-left: auto; color: #176B14; }

/* Tabelas e estados */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 11px 12px; color: #465248; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid #E8ECE7; vertical-align: middle; color: #344037; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #F8FAF7; }
.data-table a:hover strong { color: #145D11; }
.title-cell { display: grid; }
.title-cell small { color: #4B554D; font-size: 11px; }
.actions-col { text-align: right; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-actions a, .row-actions button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid var(--border-light); color: #344037; padding: 0; }
.row-actions a:hover, .row-actions button:hover { color: #145D11; border-color: #78B96F; background: #F5FAF4; }
.row-actions .danger:hover { color: #9F2117; border-color: #D9A19B; background: #FEF0EE; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-new, .badge-published, .badge-won { background: #E4F3E1; color: #145D11; }
.badge-contacted { background: #E8F0FA; color: #204E7D; }
.badge-qualified { background: #F0EAF7; color: #58347C; }
.badge-lost { background: #FCEAE8; color: #8B1E14; }
.badge-draft { background: #EEF1ED; color: #39443B; }
.badge-group { background: #EAF5E8; color: #145D11; }
.empty-mini { padding: 24px; color: #4B554D; font-size: 13px; }
.empty-mini.big { text-align: center; padding: 60px 20px; border: 1px dashed #B7C1B7; border-radius: 8px; color: #344037; }
.empty-mini a { color: #145D11; font-weight: 600; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.activity-list { display: grid; }
.activity-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.activity-list a:last-child { border-bottom: 0; }
.activity-list strong { display: block; font-size: 13px; }
.activity-list small { color: #4B554D; font-size: 11px; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.activity-dot.green { background: #21891B; }
.activity-dot.gray { background: #768176; }
.admin-pagination { display: flex; gap: 6px; margin-top: 18px; }
.admin-pagination a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border-light); color: #344037; font-size: 12px; background: #fff; }
.admin-pagination a.active, .admin-pagination a:hover { background: var(--green); color: #10250E; border-color: var(--green); }

/* Editor e publicação */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.editor-main, .editor-side { min-width: 0; }
.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; background: #F3F6F1; border: 1px solid var(--border); border-radius: 7px 7px 0 0; }
.editor-toolbar button { min-width: 32px; height: 30px; padding: 0 9px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: #263229; font-size: 12px; }
.editor-toolbar button:hover { background: #fff; border-color: var(--border-light); color: #145D11; }
.rich-editor { min-height: 380px; padding: 20px; background: #fff; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 7px 7px; outline: none; font-size: 14px; line-height: 1.8; color: #263229; }
.rich-editor:focus { border-color: #287A20; }
.rich-editor:empty::before { content: attr(data-placeholder); color: #626D63; }
.rich-editor h2 { font-size: 24px; margin: 24px 0 10px; }
.rich-editor h3 { font-size: 19px; margin: 20px 0 8px; }
.rich-editor blockquote { border-left: 3px solid var(--green); padding-left: 16px; color: #465248; }
.seo-panel summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; list-style: none; }
.seo-panel summary::-webkit-details-marker { display: none; }
.seo-panel summary span { margin-left: auto; color: #4B554D; font-family: var(--font-body); font-size: 11px; font-weight: 400; }
.seo-panel[open] summary { margin-bottom: 20px; }
.publish-panel h2, .tips-panel h2 { margin-bottom: 14px; }
.side-note { color: #4B554D; font-size: 11px; margin: 12px 0 0; }
.cover-preview { max-height: 140px; width: 100%; object-fit: cover; border-radius: 7px; margin: 10px 0; }
.tips-panel ul { padding-left: 18px; margin: 0; color: #344037; font-size: 12px; }
.tips-panel li { margin-bottom: 6px; }

/* Grupos, permissões e leads */
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.group-card-head small { color: #4B554D; font-size: 11px; }
.group-card > p { color: #465248; font-size: 12px; min-height: 38px; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.perm-tag { padding: 4px 8px; border-radius: 5px; background: #F3F6F1; border: 1px solid var(--border); color: #344037; font-size: 10px; }
.perm-tag.all { background: #EAF5E8; color: #145D11; border-color: #C6E2C0; }
.permission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.permission-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 7px; background: #fff; border: 1px solid var(--border); cursor: pointer; }
.permission-check:has(input:checked) { border-color: #78B96F; background: #F4FAF2; }
.permission-check input { accent-color: #21891B; margin-top: 3px; }
.permission-check strong, .permission-check small { display: block; }
.permission-check strong { font-size: 12px; font-weight: 500; }
.permission-check small { color: #4B554D; font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.detail-list { margin: 0 0 22px; }
.detail-list div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.detail-list dt { color: #4B554D; font-size: 12px; }
.detail-list dd { margin: 0; font-size: 13px; color: #263229; }
.detail-list dd a { color: #145D11; text-decoration: underline; }
.lead-message { padding: 16px; border-radius: 7px; background: #F4F6F2; border: 1px solid var(--border); margin-bottom: 20px; }
.lead-message strong { font-size: 12px; }
.lead-message p { margin: 8px 0 0; color: #344037; font-size: 13px; white-space: pre-line; }
.delete-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Notificações e configurações */
.notification-panel { padding: 0; overflow: hidden; }
.notification-row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.notification-row:last-child { border-bottom: 0; }
.notification-row.unread { background: #F4FAF2; }
.notification-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: #EAF5E8; color: #176B14; }
.notification-icon.type-post { background: #EAF1FA; color: #245A91; }
.notification-icon.type-user { background: #F1ECF8; color: #684194; }
.notification-body { flex: 1; min-width: 0; }
.notification-title { display: flex; align-items: center; gap: 8px; }
.notification-title strong { font-family: var(--font-head); font-size: 14px; }
.dot-new { width: 7px; height: 7px; border-radius: 50%; background: #21891B; }
.notification-body p { margin: 4px 0; color: #344037; font-size: 13px; }
.notification-body small { display: inline-flex; gap: 5px; align-items: center; color: #4B554D; font-size: 11px; }
.notification-actions { display: flex; gap: 5px; }
.notification-actions a, .notification-actions button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid var(--border-light); color: #344037; }
.notification-actions a:hover, .notification-actions button:hover { color: #145D11; border-color: #78B96F; }
.settings-panel { max-width: 820px; }
.info-inline { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 7px; background: #F0F7EE; border: 1px solid #C6E2C0; color: #264B22; font-size: 12px; }
.test-mail-panel { max-width: 820px; }
.test-mail-form { display: flex; gap: 10px; }
.test-mail-form input { flex: 1; }

/* Login: discreto, acessível, alinhado ao painel claro. */
.login-body { min-height: 100vh; display: grid; place-items: center; background: #F4F6F3; padding: 24px; }
.login-shell { width: min(100%, 1000px); min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(20,35,22,.12); }
.login-aside {
    padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
    color: #fff; background: linear-gradient(90deg, rgba(10,14,10,.82), rgba(10,14,10,.48)), url('../img/office-banner.jpg') center / cover no-repeat;
}
.login-aside > div h1 { font-size: 34px; margin: 20px 0 14px; color: #fff; }
.login-aside > div p { color: #F0F2EF; }
.login-aside .eyebrow { color: #F4FFF2; background: rgba(14,35,13,.78); }
.login-footer-note { color: #E0E5E0; font-size: 11px; margin: 0; }
.login-main { display: grid; place-items: center; padding: 48px; background: #fff; }
.login-card { width: 100%; max-width: 360px; }
.login-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: #EAF5E8; color: #176B14; margin-bottom: 22px; }
.login-card h2 { font-size: 26px; }
.login-card > p { color: #465248; margin-bottom: 26px; }
.login-card form .field { margin-bottom: 18px; }
.login-card .field label { color: #263229; }
.login-error { display: flex; gap: 8px; align-items: center; padding: 11px 14px; border-radius: 7px; background: #FEF0EE; border: 1px solid #F0BDB7; color: #8B1E14; font-size: 12px; margin-bottom: 18px; }
.login-back { display: inline-block; margin-top: 22px; color: #465248; font-size: 12px; }
.login-back:hover { color: #145D11; }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .group-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-columns { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 12px 0 30px rgba(20,35,22,.12); }
    .sidebar.open { transform: none; }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .editor-grid, .detail-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 24px 20px 50px; }
    .admin-topbar { padding: 0 20px; }
}
@media (max-width: 640px) {
    .stat-grid, .group-grid, .form-two-cols, .permission-grid { grid-template-columns: 1fr; }
    .bell-dropdown { width: min(320px, calc(100vw - 24px)); right: -50px; }
    .user-meta { display: none; }
    .login-shell { grid-template-columns: 1fr; min-height: 0; }
    .login-aside { min-height: 260px; padding: 28px; gap: 20px; }
    .login-aside > div h1 { font-size: 24px; }
    .login-main { padding: 32px 24px; }
    .page-head { align-items: flex-start; }
    .detail-list div { grid-template-columns: 1fr; gap: 2px; }
    .admin-content { padding: 20px 14px 40px; }
    .panel { padding: 17px; }
}
