:root {
  --blue: #0756a8;
  --blue-dark: #063e79;
  --navy: #0b2340;
  --green: #16803a;
  --red: #b42318;
  --ink: #122033;
  --muted: #66758a;
  --line: #dce4ef;
  --surface: #f4f7fb;
  --panel: #fff;
  --soft-blue: #eef5ff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--surface); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }

.app-view { min-height: 100vh; }
.topbar {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 24px; color: #fff; background: linear-gradient(90deg, #092a4c, #073663);
  box-shadow: 0 2px 10px rgba(7, 35, 65, .2); position: relative; z-index: 20;
}
.topbar-brand, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-brand img { width: 74px; filter: brightness(0) invert(1); }
.topbar-brand > span { width: 1px; height: 30px; background: rgba(255,255,255,.35); }
.topbar-brand button { border: 0; background: none; color: inherit; font-weight: 800; font-size: 16px; }
.topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.session-pill, .connection-pill, .mode-pill { border-radius: 999px; padding: 7px 11px; font-size: 12px; background: rgba(255,255,255,.13); }
.connection-pill.ok { background: rgba(40, 180, 99, .28); }
.connection-pill.error { background: rgba(220, 53, 69, .3); }
.mode-pill { color: #ffe28a; border: 1px solid rgba(255,226,138,.45); }

.icon-button, .ghost-button, .primary-action, .icon-action {
  min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; font-weight: 700; background: #fff; color: var(--ink);
}
.topbar .icon-button, .topbar .ghost-button { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.primary-action { color: #fff; border-color: var(--blue); background: var(--blue); }
.primary-action:hover { background: var(--blue-dark); }

.app-shell { display: grid; grid-template-columns: 122px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side-nav { background: linear-gradient(180deg, #073d70 0%, #062f58 100%); color: #fff; display: flex; flex-direction: column; min-width: 0; }
.db-status { display: flex; gap: 8px; align-items: center; padding: 12px 10px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.13); }
.db-status div { min-width: 0; display: grid; }
.db-status strong, .db-status small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-status strong { font-size: 11px; }.db-status small { font-size: 10px; opacity: .72; }
.mail-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #31c66c; box-shadow: 0 0 0 4px rgba(49,198,108,.15); }
.version-note { padding: 5px 10px 12px; opacity: .65; font-size: 9px; }

.content-area { padding: 14px 16px 18px; min-width: 0; overflow: hidden; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.mail-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }
.mail-hero h1 { margin: 0 0 4px; font-size: 24px; }.mail-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.hero-meta { display: grid; text-align: right; }.hero-meta small { color: var(--muted); }.hero-meta strong { color: var(--blue); }

.mail-workspace {
  height: calc(100vh - 168px); min-height: 540px; display: grid; grid-template-columns: 220px 360px minmax(360px, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 42, 75, .07);
}
.mail-folders, .mail-list-panel { border-right: 1px solid var(--line); min-width: 0; }
.mail-folders { padding: 18px 14px; display: flex; flex-direction: column; background: #f9fbfe; }
.mailbox-picker { display: grid; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.mailbox-picker select, .mail-search, .admin-form input, .admin-form select, .compose-dialog input, .compose-dialog textarea {
  width: 100%; border: 1px solid #cbd6e5; border-radius: 6px; background: #fff; color: var(--ink); outline: 0;
}
.mailbox-picker select { height: 42px; padding: 0 9px; font-weight: 700; }
.compose-button { min-height: 44px; margin: 14px 0; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font-weight: 800; box-shadow: 0 8px 18px rgba(7,86,168,.18); }
.folder-list { display: grid; gap: 4px; }
.folder-button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 6px; padding: 0 10px; background: transparent; color: #33445b; text-align: left; }
.folder-button:hover, .folder-button.active { color: var(--blue); background: var(--soft-blue); }
.folder-button strong { margin-left: auto; min-width: 24px; border-radius: 999px; padding: 3px 6px; background: #e4ebf5; text-align: center; font-size: 10px; }
.folder-button.active strong { background: #cfe2fb; }
.quota-card { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.quota-card > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }.quota-card strong { color: var(--ink); }
.quota-track { height: 7px; margin-top: 8px; border-radius: 99px; overflow: hidden; background: #dde6f1; }.quota-track span { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s; }

.mail-list-panel { display: flex; flex-direction: column; min-height: 0; }
.mail-list-head { min-height: 66px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mail-list-head h2 { margin: 0; font-size: 17px; }.mail-list-head small { color: var(--muted); }
.icon-action { min-width: 36px; padding: 0 9px; }
.mail-search { min-height: 40px; margin: 10px 12px; padding: 0 10px; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.mail-search input { min-width: 0; flex: 1; border: 0; outline: 0; }
.message-list { overflow: auto; min-height: 0; }
.message-row { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; width: 100%; min-height: 94px; padding: 12px 13px; border: 0; border-bottom: 1px solid #edf1f6; background: #fff; text-align: left; }
.message-row:hover, .message-row.active { background: #f0f6ff; }.message-row.unread { background: #f7fbff; }.message-row.unread .message-sender, .message-row.unread .message-subject { font-weight: 800; }
.message-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4d7ba9; font-size: 10px; font-weight: 800; }
.message-row-main { min-width: 0; }.message-line { display: flex; align-items: center; gap: 8px; min-width: 0; }.message-sender, .message-subject, .message-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-sender { flex: 1; font-size: 13px; }.message-date { color: var(--muted); font-size: 10px; }.message-subject { margin-top: 5px; font-size: 12px; }.message-preview { margin-top: 4px; color: var(--muted); font-size: 11px; }
.message-flags { position: absolute; right: 12px; bottom: 8px; color: #e39b00; font-size: 12px; }
.list-empty { padding: 42px 24px; text-align: center; color: var(--muted); }

.message-detail { min-width: 0; overflow: auto; background: #fff; }
.detail-empty { height: 100%; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }.detail-empty span { font-size: 38px; opacity: .35; }.detail-empty h2 { margin: 12px 0 3px; color: var(--ink); }
.detail-head { padding: 22px 24px 15px; border-bottom: 1px solid var(--line); }.detail-head h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; }.detail-meta { display: flex; justify-content: space-between; gap: 18px; }.detail-addresses { min-width: 0; }.detail-addresses strong, .detail-addresses span { display: block; overflow-wrap: anywhere; }.detail-addresses span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 24px; border-bottom: 1px solid var(--line); }.detail-actions button { min-height: 33px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 12px; font-weight: 700; }
.message-body { min-height: 220px; padding: 22px 24px; }.message-body iframe { width: 100%; min-height: 300px; border: 0; background: #fff; }
.plain-body { white-space: pre-wrap; line-height: 1.55; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; }.attachment-chip { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--blue); background: #f8fbff; font-size: 12px; }

.empty-state { min-height: 520px; display: grid; place-content: center; justify-items: center; border: 1px dashed #b8c7da; border-radius: 10px; background: #fff; text-align: center; }.empty-state h2 { margin: 12px 0 4px; }.empty-state p { margin: 0 0 18px; color: var(--muted); }.empty-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 28px; font-weight: 800; }

.mail-dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 30px 80px rgba(7,31,58,.3); overflow: auto; }.mail-dialog::backdrop { background: rgba(4,20,38,.55); backdrop-filter: blur(2px); }
.mail-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 20px; color: #fff; background: linear-gradient(90deg,#073d70,#0756a8); }.mail-dialog header h2 { margin: 2px 0 0; font-size: 19px; }.mail-dialog header small { opacity: .8; }.dialog-close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: transparent; font-size: 22px; }
.compose-dialog form { display: grid; }.compose-dialog form > label, .compose-secondary label { display: grid; gap: 5px; padding: 8px 20px 0; color: var(--muted); font-size: 11px; font-weight: 700; }.compose-dialog input { height: 38px; padding: 0 10px; }.compose-secondary { display: grid; grid-template-columns: 1fr 1fr; }.compose-body textarea { padding: 10px; resize: vertical; }.compose-dialog footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 20px; }.compose-dialog footer > div { display: flex; gap: 8px; }.attachment-button { min-height: 38px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; font-weight: 700; cursor: pointer; }.compose-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 20px 0; }.compose-file { border-radius: 5px; padding: 6px 8px; background: var(--soft-blue); font-size: 11px; }

.admin-dialog { width: min(1050px, calc(100vw - 30px)); }.admin-grid { display: grid; grid-template-columns: 350px minmax(0,1fr); min-height: 510px; }.admin-form { display: grid; align-content: start; gap: 12px; padding: 20px; border-right: 1px solid var(--line); background: #f8fafd; }.admin-form h3, .section-head h3 { margin: 0; }.admin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }.admin-form input, .admin-form select { min-height: 39px; padding: 7px 9px; }.admin-form select[multiple] { min-height: 110px; }.admin-form small { font-weight: 400; }.address-field { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; }.address-field strong { font-size: 11px; }.admin-form output { min-height: 18px; color: var(--red); font-size: 12px; }.account-admin-list { padding: 20px; overflow: auto; }.section-head { display: flex; justify-content: space-between; margin-bottom: 12px; }.section-head span { color: var(--muted); }.admin-account { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }.admin-account strong, .admin-account small { display: block; }.admin-account small { margin-top: 3px; color: var(--muted); }.admin-account-actions { display: flex; align-items: center; gap: 5px; }.admin-account-actions button { min-height: 32px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; }.state-badge { display: inline-block !important; width: max-content; margin-top: 5px; border-radius: 99px; padding: 3px 7px; color: var(--green) !important; background: #e9f7ee; font-size: 9px; text-transform: uppercase; }.state-badge.suspendida, .state-badge.error { color: var(--red) !important; background: #fff0ef; }
.admin-account { display: block; }
.admin-account-summary { display: flex; justify-content: space-between; gap: 12px; }
.admin-account-settings { margin-top: 10px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbfd; }
.admin-account-settings summary { padding: 9px 11px; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-setting-row { display: grid; gap: 7px; padding: 10px 11px; border-top: 1px solid var(--line); }
.admin-setting-row > strong { font-size: 11px; }
.admin-inline, .admin-member-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-inline input, .admin-inline select, .admin-member-editor select { min-width: 120px; min-height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 5px 7px; background: #fff; }
.admin-inline button, .admin-member-editor button, .admin-chip button { min-height: 30px; border: 1px solid var(--line); border-radius: 5px; color: var(--blue); background: #fff; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c8d8e9; border-radius: 99px; padding: 4px 5px 4px 9px; color: #284b70; background: #fff; font-size: 10px; }
.admin-chip button { width: 23px; min-height: 23px; padding: 0; border-radius: 50%; }
.admin-member-editor label { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 10px; }
.admin-muted { color: var(--muted); }
.secret-dialog { width: min(500px, calc(100vw - 30px)); }.secret-dialog > div > p { padding: 0 20px; color: var(--muted); }.secret-dialog code { display: block; margin: 14px 20px; padding: 16px; border: 1px dashed #86a6ca; border-radius: 7px; background: #f1f7ff; overflow-wrap: anywhere; font-size: 15px; }.secret-dialog .primary-action { margin: 0 20px 20px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 1000; max-width: 420px; border-radius: 7px; padding: 12px 16px; color: #fff; background: #163a60; box-shadow: 0 12px 35px rgba(0,0,0,.2); }.toast.error { background: #a4251e; }

@media (max-width: 1250px) {
  .mail-workspace { grid-template-columns: 200px 330px minmax(320px,1fr); }
}
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 1fr; }.side-nav { position: relative; }
  .mail-workspace { height: auto; min-height: 700px; grid-template-columns: 190px minmax(300px, .9fr) minmax(360px, 1.1fr); }
}
@media (max-width: 780px) {
  .topbar, .mail-hero { align-items: flex-start; flex-direction: column; }.topbar-actions { justify-content: flex-start; }.hero-meta { text-align: left; }
  .mail-workspace { display: block; }.mail-folders { border-right: 0; border-bottom: 1px solid var(--line); }.folder-list { grid-template-columns: repeat(3, 1fr); }.quota-card { margin-top: 12px; }
  .mail-list-panel { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--line); }.message-detail { min-height: 500px; }
  .admin-grid, .compose-secondary { grid-template-columns: 1fr; }.admin-form { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Civernex Mail v2: portal independiente de Atlas */
:root { --mail-violet: #6757e8; --mail-cyan: #23b8d7; --mail-bg: #f6f7fb; }
.auth-view { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 44%) minmax(480px, 56%); background: #fff; }
.auth-brand { position: relative; min-height: 100vh; padding: 48px clamp(36px,6vw,88px); display: flex; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(49,212,221,.3), transparent 29%), radial-gradient(circle at 10% 88%, rgba(119,91,255,.42), transparent 34%), linear-gradient(145deg,#071832 0%,#102b58 57%,#173f70 100%); }
.auth-brand::after { content: ""; position: absolute; right: -130px; bottom: 110px; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.12); border-radius: 44% 56% 62% 38%; transform: rotate(18deg); }
.brand-row,.mobile-brand,.topbar-brand { display: flex; align-items: center; gap: 12px; }
.civernex-logo { width: auto; height: 46px; object-fit: contain; }.civernex-logo.dark { height: 40px; max-width: 170px; }.mail-product-name { border-left: 1px solid rgba(255,255,255,.32); padding-left: 14px; color: #a8c9ef; font-size: 18px; font-weight: 800; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #0d2850; background: linear-gradient(135deg,#6af0e4,#8bb8ff); box-shadow: 0 12px 34px rgba(45,210,215,.28); font-weight: 900; font-size: 25px; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; box-shadow: none; }
.brand-copy { display: grid; line-height: 1.05; }.brand-copy strong { font-size: 21px; }.brand-copy span { color: #a8c9ef; font-size: 15px; }
.auth-message { position: relative; z-index: 1; margin: auto 0; max-width: 580px; }.eyebrow { color: #28c6ce; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }.auth-message h1 { max-width: 530px; margin: 18px 0; font-size: clamp(35px,4vw,58px); line-height: 1.04; letter-spacing: -.035em; }.auth-message p { max-width: 510px; margin: 0; color: #bfd0e5; font-size: 17px; line-height: 1.65; }
.security-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 13px 15px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }.security-note > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #07233f; background: #5ee5d5; font-weight: 900; }.security-note div { display: grid; }.security-note small { margin-top: 3px; color: #bcd0e4; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: 34px; background: linear-gradient(180deg,#fff,#f7f8fc); }.auth-card { width: min(480px,100%); }.mobile-brand { display: none; margin-bottom: 28px; }.auth-form { display: grid; gap: 17px; }.auth-form h2 { margin: -7px 0 -10px; color: #152844; font-size: 34px; letter-spacing: -.02em; }.auth-form > p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }.auth-form label { display: grid; gap: 7px; color: #40506a; font-size: 12px; font-weight: 800; }.auth-form input { width: 100%; height: 48px; border: 1px solid #ccd5e3; border-radius: 10px; padding: 0 13px; color: var(--ink); background: #fff; outline: 0; }.auth-form input:focus { border-color: var(--mail-violet); box-shadow: 0 0 0 3px rgba(103,87,232,.12); }.auth-form label small { color: var(--muted); font-weight: 400; }.address-input { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid #ccd5e3; border-radius: 10px; overflow: hidden; background: #f7f8fb; }.address-input:focus-within { border-color: var(--mail-violet); box-shadow: 0 0 0 3px rgba(103,87,232,.12); }.address-input input { border: 0; border-radius: 0; box-shadow: none !important; }.address-input strong { padding: 0 12px; color: #607088; font-size: 12px; }.auth-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.auth-submit { height: 48px; border: 0; border-radius: 10px; background: linear-gradient(110deg,#5b57e8,#397eea); box-shadow: 0 10px 24px rgba(80,91,222,.2); }.secondary-action { height: 46px; border: 1px solid #cbd5e3; border-radius: 10px; color: #253b5a; background: #fff; font-weight: 800; }.text-action { border: 0; color: #4d59ce; background: none; font-weight: 800; }.auth-separator { position: relative; height: 16px; text-align: center; }.auth-separator::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e2e7ef; }.auth-separator span { position: relative; padding: 0 10px; color: #8793a5; background: #fafbfc; }.auth-output { display: block; min-height: 22px; margin-top: 15px; color: var(--red); font-size: 12px; line-height: 1.45; }.auth-output.ok { color: var(--green); }
.mail-topbar { min-height: 70px; padding: 10px 22px; background: #0c203d; }.mail-topbar .topbar-brand > div { display: grid; line-height: 1.05; }.mail-topbar .topbar-brand strong { font-size: 16px; }.mail-topbar .topbar-brand small { color: #9eb9d6; }.topbar-search { width: min(520px,36vw); min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 0 13px; color: #a9bfd7; background: rgba(255,255,255,.08); }.topbar-search input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; }.topbar-search input::placeholder { color: #a9bfd7; }.profile-button { min-height: 40px; display: flex; align-items: center; gap: 8px; border: 0; color: #fff; background: transparent; }.profile-button > span:first-child, .profile-button > img { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #122641; background: #70dfdb; font-weight: 900; object-fit: cover; }.mail-page { padding: 18px; }.mail-workspace { height: calc(100vh - 106px); grid-template-columns: 235px 370px minmax(360px,1fr); border-radius: 15px; box-shadow: 0 18px 55px rgba(22,44,74,.1); }

.profile-dialog { width: min(820px, calc(100vw - 28px)); }
.profile-content { display: grid; gap: 18px; padding: 22px; background: #f7f9fc; }
.profile-identity { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.profile-identity h3 { margin: 0 0 4px; font-size: 20px; }.profile-identity p { margin: 0 0 8px; color: var(--muted); }
.profile-photo { width: 82px; height: 82px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #0b365f; background: linear-gradient(135deg,#70dfdb,#b7f0ec); font-size: 28px; font-weight: 900; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }.profile-role { display: inline-block; border-radius: 99px; padding: 4px 9px; color: var(--blue); background: #eaf3ff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.profile-photo-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }.profile-photo-actions .secondary-action { display: grid; place-items: center; min-height: 34px; padding: 0 12px; cursor: pointer; }.profile-photo-actions .text-action { padding: 6px; }
.profile-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.profile-facts > div { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.profile-facts small { color: var(--muted); }.profile-facts strong { font-size: 12px; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.profile-form { display: grid; align-content: start; gap: 11px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.profile-form h3 { margin: 0 0 4px; }.profile-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }.profile-form input { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }.profile-form output { min-height: 17px; color: var(--muted); font-size: 11px; }
.admin-password-inline input { flex: 1 1 175px; }
.mail-topbar .topbar-brand .civernex-logo { height: 34px; max-width: 118px; }.mail-topbar .topbar-brand small { border-left: 1px solid rgba(255,255,255,.25); padding-left: 11px; font-size: 14px; font-weight: 800; }

@media (max-width: 900px) { .auth-view { grid-template-columns: 1fr; }.auth-brand { display: none; }.mobile-brand { display: flex; }.auth-panel { padding: 26px 20px; }.topbar-search { display: none; }.mail-workspace { height: auto; } }
@media (max-width: 560px) { .auth-two-cols { grid-template-columns: 1fr; }.auth-panel { align-items: start; }.topbar-actions .mode-pill,.topbar-actions .connection-pill,.profile-button span:last-child { display: none; } }
@media (max-width: 720px) { .profile-identity { grid-template-columns: auto 1fr; }.profile-photo-actions { grid-column: 1 / -1; flex-direction: row; }.profile-facts, .profile-columns { grid-template-columns: 1fr; } }
