/* Fresno Notify — dark UI, sidebar layout. Single stylesheet, no framework. */

:root {
    --bg:           #0b0e14;
    --bg-elev:      #11151c;
    --bg-elev-2:    #161b24;
    --bg-elev-3:    #1d2330;
    --bg-input:     #0b0e14;
    --bg-hover:     #1a2030;
    --border:       #232a36;
    --border-soft:  #1a212c;
    --border-strong:#2e3645;

    --text:         #e6edf3;
    --text-muted:   #8b9aaf;
    --text-faint:   #5d6b80;

    --accent:       #4493f8;
    --accent-2:     #2f81f7;
    --accent-hover: #58a6ff;
    --accent-fade:  rgba(68, 147, 248, 0.12);
    --success:      #3fb950;
    --success-fade: rgba(63, 185, 80, 0.13);
    --warning:      #d29922;
    --warning-fade: rgba(210, 153, 34, 0.13);
    --danger:       #f85149;
    --danger-fade:  rgba(248, 81, 73, 0.13);
    --info:         #58a6ff;
    --info-fade:    rgba(88, 166, 255, 0.13);

    --shadow-sm:    0 1px 2px rgba(0,0,0,.25);
    --shadow:       0 4px 12px -2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03);
    --shadow-lg:    0 20px 48px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);

    --radius-sm:    4px;
    --radius:       8px;
    --radius-lg:    12px;

    --sidebar-w:    248px;

    --t-fast:       120ms cubic-bezier(.4,0,.2,1);
    --t-base:       180ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
code, pre {
    font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
    background: var(--bg-elev-2);
    color: var(--text);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.88em;
    border: 1px solid var(--border-soft);
}
h1 { font-size: 1.5rem; margin: 0 0 0.4rem; font-weight: 600; letter-spacing: -0.01em; }
h2.h2 { font-size: 1.0rem; margin: 0 0 1rem; font-weight: 600; letter-spacing: -0.005em; }
h3.h3 { font-size: 0.78rem; margin: 1.5rem 0 0.6rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.icon { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }

/* ============================================================
 * LAYOUT — sidebar + main
 * ============================================================ */
.layout-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-elev);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.75rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.25rem 0.7rem 1.5rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.sidebar-brand:hover { color: var(--text); }
.brand-mark {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, #6f7afa 100%);
    color: white;
    border-radius: 8px;
    display: inline-grid; place-items: center;
    font-weight: 700; font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
}
.brand-name { font-size: 1.0rem; }
.brand-mark-lg {
    width: 56px; height: 56px; font-size: 1.7rem; border-radius: 14px;
    box-shadow: 0 6px 20px -4px rgba(68, 147, 248, .5);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 0.1rem; flex: 1 1 auto; }
.nav-section {
    color: var(--text-faint);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.25rem 0.8rem 0.4rem;
}
.navlink {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: background var(--t-fast), color var(--t-fast);
}
.navlink:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.navlink.is-active {
    background: var(--accent-fade);
    color: var(--accent);
}
.navlink .icon { opacity: 0.85; }

.sidebar-user {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 1rem;
}
.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3fb950, #2f81f7);
    color: white;
    font-weight: 600;
    display: inline-grid; place-items: center;
    flex-shrink: 0;
}
.user-meta { flex: 1 1 auto; min-width: 0; }
.user-name { color: var(--text); font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.logout-form { margin: 0; flex-shrink: 0; }
.icon-button {
    background: none; border: 0; padding: 0.4rem;
    color: var(--text-muted); cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
}
.icon-button:hover { background: var(--bg-hover); color: var(--text); }

.main {
    padding: 1.75rem 2rem 3rem;
    min-width: 0;
    max-width: 1400px;
}

/* Mobile: collapse sidebar to top bar */
@media (max-width: 768px) {
    .layout-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: static; height: auto;
        flex-direction: row; align-items: center; flex-wrap: wrap;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    .sidebar-brand { padding: 0; }
    .sidebar-nav { flex-direction: row; flex: 1 1 100%; overflow-x: auto; gap: 0.25rem; }
    .nav-section { display: none; }
    .navlink span { display: none; }
    .navlink { padding: 0.5rem; }
    .sidebar-user { margin-top: 0; padding-top: 0; border-top: 0; margin-left: auto; }
    .main { padding: 1rem 1rem 2rem; }
}

/* ============================================================
 * AUTH LAYOUT — login / public pages
 * ============================================================ */
.auth-shell { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-bg {
    position: fixed; inset: 0; z-index: -1;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(68, 147, 248, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(63, 185, 80, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(111, 122, 250, 0.05) 0%, transparent 70%);
}
.auth-container { width: 100%; max-width: 400px; text-align: center; }
.auth-brand { margin-bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.auth-brand-name { font-size: 1.5rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.auth-tagline { color: var(--text-muted); margin: 0; font-size: 0.9rem; }
.auth-card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
}
.auth-card h2 { font-size: 1.1rem; margin: 0 0 1.25rem; font-weight: 600; letter-spacing: -0.005em; }
.auth-footer { margin-top: 1.5rem; }

/* ============================================================
 * CARDS / HEAD
 * ============================================================ */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.card-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ============================================================
 * FORMS
 * ============================================================ */
label { display: block; margin-bottom: 1.1rem; }
label > span { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); font-size: 0.83rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="datetime-local"], select, textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-fade);
}
textarea { min-height: 6rem; resize: vertical; font-family: inherit; }
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}
.field-err { color: var(--danger); font-style: normal; font-size: 0.8rem; display: block; margin-top: 0.35rem; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
 * BUTTONS
 * ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
    user-select: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; justify-content: center; padding: 0.6rem; }
.btn-primary { background: var(--accent-2); color: white; border-color: var(--accent-2); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: white; }
.btn-secondary { background: var(--bg-elev-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-elev-3); border-color: var(--border-strong); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.link-button {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 0; font: inherit;
    transition: color var(--t-fast);
}
.link-button:hover { color: var(--text); text-decoration: underline; }
.link-button.danger { color: var(--danger); }
.link-button.danger:hover { color: #ff7b72; }

/* ============================================================
 * FLASHES
 * ============================================================ */
.flashes { margin-bottom: 1.25rem; }
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border: 1px solid;
    display: flex; align-items: center; gap: 0.6rem;
    animation: flash-in 220ms cubic-bezier(.2,.8,.2,1);
}
.flash-success { background: var(--success-fade); color: var(--success); border-color: rgba(63, 185, 80, 0.3); }
.flash-error   { background: var(--danger-fade); color: var(--danger); border-color: rgba(248, 81, 73, 0.3); }
.flash-info    { background: var(--info-fade); color: var(--info); border-color: rgba(88, 166, 255, 0.3); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============================================================
 * TABLES
 * ============================================================ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    text-align: left;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--border-soft);
}
.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 0.55rem;
}
.data-table tbody tr { transition: background var(--t-fast); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.015); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table.compact th, .data-table.compact td { padding: 0.45rem 0.55rem; }
.nowrap { white-space: nowrap; }
.ellipsis { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
 * BADGES (status pills with dot)
 * ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.18rem 0.6rem 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}
.badge::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge-admin, .badge-info  { background: var(--info-fade); color: var(--info);    border-color: rgba(88, 166, 255, 0.25); }
.badge-owner, .badge-active, .badge-delivered, .badge-verified
                           { background: var(--success-fade); color: var(--success); border-color: rgba(63, 185, 80, 0.25); }
.badge-paused, .badge-partial, .badge-unverified
                           { background: var(--warning-fade); color: var(--warning); border-color: rgba(210, 153, 34, 0.25); }
.badge-failed, .badge-disabled, .badge-undelivered
                           { background: var(--danger-fade); color: var(--danger); border-color: rgba(248, 81, 73, 0.25); }
.badge-viewer, .badge-draft, .badge-queued, .badge-deduplicated
                           { background: rgba(139, 154, 175, 0.12); color: var(--text-muted); border-color: rgba(139, 154, 175, 0.2); }
.badge-sending, .badge-sent { background: var(--info-fade); color: var(--info); border-color: rgba(88, 166, 255, 0.25); }

/* ============================================================
 * MISC
 * ============================================================ */
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: 0.65rem 1rem; margin: 0; }
.kv dt { color: var(--text-muted); font-size: 0.85rem; }
.kv dd { margin: 0; }
.muted { color: var(--text-muted); }
.small { font-size: 0.82rem; }
.row-actions { white-space: nowrap; }
.inline-form { display: inline; margin: 0 0.35rem 0 0; }
.inline-form input[type="text"] { width: 9rem; display: inline-block; vertical-align: middle; }
.row-form { display: flex; gap: 0.5rem; align-items: center; }
.row-form select { flex: 1 1 auto; }
.action-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}
.empty-state .icon { color: var(--text-faint); margin-bottom: 0.5rem; width: 32px; height: 32px; }
.empty-state-title { color: var(--text); font-weight: 500; margin-bottom: 0.25rem; }

/* ============================================================
 * WIZARD
 * ============================================================ */
.wizard-steps {
    display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 1.5rem;
    border: 1px solid var(--border-soft); border-radius: var(--radius);
    background: var(--bg-elev); overflow: hidden;
}
.wizard-steps li {
    flex: 1 1 0;
    padding: 0.8rem 0.85rem;
    display: flex; align-items: center; gap: 0.55rem;
    color: var(--text-muted);
    border-right: 1px solid var(--border-soft);
    font-size: 0.83rem;
    transition: background var(--t-base);
}
.wizard-steps li:last-child { border-right: 0; }
.wizard-steps li.is-current { background: var(--accent-fade); color: var(--accent); font-weight: 500; }
.wizard-steps li.is-done { background: var(--success-fade); color: var(--success); }
.wizard-steps .step-num {
    display: inline-grid; place-items: center;
    width: 1.45rem; height: 1.45rem;
    border-radius: 50%;
    background: var(--bg-elev-3); color: var(--text-muted);
    font-weight: 600; font-size: 0.75rem;
}
.wizard-steps li.is-current .step-num { background: var(--accent); color: white; }
.wizard-steps li.is-done .step-num { background: var(--success); color: var(--bg); }
.wizard-nav { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.25rem; }

.input-suffix { display: flex; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix .suffix {
    padding: 0.55rem 0.8rem;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-left: 0;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.9em;
}

/* ============================================================
 * DASHBOARD
 * ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-base);
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-label { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; font-weight: 500; }
.stat-value { font-size: 1.85rem; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -0.02em; }
.stat-sub { color: var(--text-faint); font-size: 0.78rem; margin-top: 0.5rem; }
.status-ok { color: var(--success); font-size: 1.1rem; }

.attention-banner { border-left: 3px solid var(--warning); }
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--border-soft);
}
.attention-item:last-child { border-bottom: 0; }
.attention-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.attention-warning .attention-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-fade); }
.attention-error   .attention-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-fade); }
.attention-info    .attention-dot { background: var(--info); box-shadow: 0 0 0 4px var(--info-fade); }
.attention-text { flex: 1 1 auto; }
.attention-link { font-size: 0.85rem; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-soft);
}
.activity-item:last-child { border-bottom: 0; }
.activity-alias { white-space: nowrap; }
.activity-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.activity-time { white-space: nowrap; }

/* ============================================================
 * FILTER BAR / PAGINATION / REJECTIONS
 * ============================================================ */
.filter-bar { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)) auto auto; gap: 0.75rem; align-items: end; }
.filter-field { margin-bottom: 0; }
@media (max-width: 1000px) { .filter-bar { grid-template-columns: 1fr 1fr; } }

.pagination { display: flex; align-items: center; gap: 1rem; padding: 1rem 0 0; }

.rejection-list { list-style: none; padding: 0; margin: 0; }
.rejection-item {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-soft);
    display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: center;
}
.rejection-item:last-child { border-bottom: 0; }

/* Channel selector (wizard step 4) */
.channel-options { display: grid; gap: 0.5rem; margin: 0 0 1.25rem; }
.channel-option {
    display: grid; grid-template-columns: auto 1fr; gap: 0.75rem;
    align-items: start;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
    margin: 0;
}
.channel-option:hover { border-color: var(--border-strong); }
.channel-option input[type="radio"] {
    width: auto; margin: 0.25rem 0 0;
}
.channel-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-fade);
}
.channel-label { font-weight: 500; color: var(--text); margin-bottom: 0.15rem; }

/* Clickable activity rows */
.msg-row { cursor: pointer; }
.msg-row:hover { background: var(--bg-hover); }

/* Modal */
.modal {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    padding: 1rem;
    animation: modal-in 140ms cubic-bezier(.2,.8,.2,1);
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-card {
    position: relative;
    width: 100%; max-width: 1040px;
    max-height: calc(100vh - 2rem);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem 2rem;
    overflow-y: auto;
}
.modal-x {
    position: absolute; top: 0.75rem; right: 0.85rem;
    background: none; border: 0;
    color: var(--text-muted); cursor: pointer;
    font-size: 1.5rem; line-height: 1;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
}
.modal-x:hover { background: var(--bg-hover); color: var(--text); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-right: 2rem; }
.modal-head .h2 { margin: 0; }
.modal-body .kv { margin-bottom: 1rem; grid-template-columns: 8rem 1fr; }
.msg-body {
    background: var(--bg-elev-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 420px;
    overflow-y: auto;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
