:root {
    --mailflow-yellow-50: #fffbea;
    --mailflow-yellow-100: #fff3bf;
    --mailflow-yellow-200: #ffe58a;
    --mailflow-yellow-300: #f8d56b;
    --mailflow-yellow-500: #e8bd4d;
    --mailflow-yellow-600: #c99a2e;
    --mailflow-yellow-700: #8a651d;
    --mailflow-yellow-800: #664914;
}

.campaign-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px; margin-bottom: 24px; border-radius: 20px; background: #0f172a; color: white; }
.campaign-hero > div { max-width: 590px; }
.campaign-hero .campaign-eyebrow { color: #f8d56b; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.campaign-hero p { color: #cbd5e1; line-height: 1.6; }
.campaign-hero > a { flex-shrink: 0; }
.campaign-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.campaign-directory-heading p { margin-top: 4px; }
.campaign-directory table { min-width: 760px; }
.campaign-directory th { font-size: 10px; padding-top: 14px; padding-bottom: 14px; }
.campaign-directory td { padding-top: 22px; padding-bottom: 22px; }
.campaign-directory td:first-child { max-width: 340px; overflow-wrap: anywhere; }
.campaign-directory td:first-child strong { font-size: 15px; margin-bottom: 6px; }
.campaign-directory tr[data-status="completed"] td:nth-child(2) span { background: #ecfdf5; color: #047857; }
.campaign-directory tr[data-status="completed_with_errors"] td:nth-child(2) span { background: #fef2f2; color: #dc2626; }
.campaign-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
.campaign-layout > * { min-width: 0; }
.campaign-layout aside { display: grid; gap: 20px; }
.campaign-layout aside > * { margin: 0 !important; }
.campaign-editor-heading { display: flex; align-items: center; gap: 14px; padding: 24px; border-bottom: 1px solid #e2e8f0; background: #fffdf4; border-radius: 16px 16px 0 0; }
.campaign-workspace input, .campaign-workspace textarea { min-width: 0; width: 100%; font-size: 14px; }
.campaign-workspace textarea { line-height: 1.8; background: #fdfdfc; min-height: 320px; resize: vertical; }
.campaign-workspace label { min-width: 0; }
.campaign-workspace .mt-3 { margin-top: 12px; }
.campaign-workspace .p-3 { padding: 12px; }
.campaign-workspace .h-8 { height: 32px; }
.campaign-workspace .w-8 { width: 32px; }
.campaign-workspace .bg-slate-950 .border-slate-200 { border-color: #ffffff26; }
.campaign-workspace button:disabled { background: #cbd5e1 !important; color: #64748b !important; cursor: not-allowed; }
.campaign-workspace [data-copy-token] { gap: 8px; flex-wrap: wrap; cursor: pointer; min-height: 42px; }
.campaign-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.campaign-metrics > div { border-top: 3px solid #e8bd4d; }
.campaign-metrics > div:nth-child(2) { border-top-color: #34d399; }
.campaign-metrics > div:nth-child(3) { border-top-color: #f87171; }
.campaign-metrics .text-3xl { font-size: 30px; line-height: 1.2; }
.campaign-report table { min-width: 620px; }
.campaign-report td:first-child { max-width: 310px; overflow-wrap: anywhere; }
.campaign-workspace h2, .campaign-message { overflow-wrap: anywhere; }
.campaign-message { white-space: pre-wrap; max-height: 400px; overflow-y: auto; line-height: 1.7; }
.campaign-report summary { cursor: pointer; }
#sending-progress .h-2 { height: 8px; background: #fff3bf; }
#sending-bar { height: 100%; width: 0; background: #c99a2e; transition: width .2s; }
@media (min-width: 80rem) {
    .campaign-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .campaign-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 39.999rem) {
    .campaign-hero { flex-direction: column; align-items: stretch; padding: 22px; }
    .campaign-hero > a { text-align: center; }
    .campaign-editor-heading, .campaign-workspace form.p-6 { padding: 20px; }
    .campaign-directory-heading { padding: 18px; flex-wrap: wrap; }
    .campaign-metrics > div { padding: 16px; }
}

.mailflow-auth-card {
    width: 100%;
    max-width: 360px;
}

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-layout > *, .profile-fields input, .profile-fields label { min-width: 0; }
.profile-layout aside { width: auto; overflow-wrap: anywhere; }
.profile-fields input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; }
.profile-fields input[type="checkbox"] { accent-color: #c99a2e; flex-shrink: 0; width: 18px; height: 18px; }
.contact-directory article { overflow-wrap: anywhere; transition: border-color .15s, box-shadow .15s; }
.contact-directory article:hover { border-color: #e8bd4d; box-shadow: 0 3px 12px #0f172a08; }
.contact-directory article form { flex-shrink: 0; }
.contact-directory > section:first-child .border-slate-200 { border-color: #ffffff24; }
.contact-directory > section:first-child a { flex-shrink: 0; }
.contact-tools { grid-template-columns: minmax(0, 1fr); }
.contact-tools > * { min-width: 0; padding: 16px; }
.contact-tools input[type="file"] { width: 100%; }
.contact-tools button { min-height: 42px; }
.profile-fields .h-8 { height: 32px; }
.profile-fields .w-8 { width: 32px; }
.contact-directory .h-10 { height: 40px; }
.contact-directory .w-10 { width: 40px; }
.profile-layout .mt-3 { margin-top: 12px; }
.profile-layout .mt-7 { margin-top: 28px; }
.profile-layout .pt-4 { padding-top: 16px; }
.profile-layout .pt-5 { padding-top: 20px; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.settings-state { padding: 8px 12px; border: 1px solid #eadba7; border-radius: 999px; background: #fffbea; color: #664914; font-size: 12px; white-space: nowrap; }
.settings-panel { background: white; border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 6px #0f172a05; }
.settings-section { padding: 24px; border-bottom: 1px solid #e2e8f0; }
.settings-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.settings-section-heading p { margin-top: 4px; }
.settings-step { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #fff3bf; color: #664914; font-size: 12px; font-weight: 700; }
.settings-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-field { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 500; }
.settings-field input, .settings-field select { width: 100%; min-width: 0; border: 1px solid #cbd5e1; border-radius: 10px; background: white; padding: 11px 12px; font-size: 14px; font-weight: 400; }
.settings-field input:focus, .settings-field select:focus { outline: 3px solid #fff3bf; border-color: #c99a2e; }
.settings-field small { font-weight: 400; font-size: 12px; color: #64748b; }
.settings-field small.text-red-600 { color: #dc2626; }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #fafbfc; }
.settings-guide { padding: 24px; border: 1px solid #eadba7; border-radius: 18px; background: #fffdf4; }
.settings-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eadba7; font-size: 13px; }
.settings-note p { margin-top: 8px; color: #64748b; line-height: 1.6; }
@media (min-width: 40rem) {
    .settings-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-section:first-of-type .settings-field:first-child { grid-column: 1 / -1; }
}
@media (min-width: 80rem) {
    .profile-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 39.999rem) {
    .settings-heading, .settings-footer { flex-direction: column; align-items: stretch; }
    .settings-state { align-self: flex-start; }
    .settings-section, .settings-guide { padding: 20px; }
    .contact-tools > div > form { flex-wrap: wrap; }
    .contact-tools input[type="file"] { flex-basis: 100%; }
    .contact-tools > div > form button { width: 100%; }
}

.truncate {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bg-violet-50 { background-color: var(--mailflow-yellow-50) !important; }
.bg-violet-500 { background-color: var(--mailflow-yellow-500) !important; color: #33270b !important; }
.bg-violet-600 { background-color: var(--mailflow-yellow-500) !important; color: #33270b !important; }
.text-violet-200 { color: var(--mailflow-yellow-200) !important; }
.text-violet-300 { color: var(--mailflow-yellow-300) !important; }
.text-violet-600 { color: var(--mailflow-yellow-600) !important; }
.text-violet-700 { color: var(--mailflow-yellow-700) !important; }
.text-violet-800 { color: var(--mailflow-yellow-800) !important; }

.focus\:border-violet-500:focus { border-color: var(--mailflow-yellow-500) !important; }
.focus\:ring-violet-100:focus { --tw-ring-color: var(--mailflow-yellow-100) !important; }

/* Utilities used by the responsive contact dashboard without requiring a new asset build. */
.self-end { align-self: flex-end; }
.leading-6 { line-height: 1.5rem; }
.text-emerald-400 { color: #34d399; }
.text-red-400 { color: #f87171; }

@media (min-width: 40rem) {
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:border-b-0 { border-bottom-width: 0; }
    .sm\:border-r { border-right-width: 1px; }
    .sm\:p-4 { padding: 1rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:justify-end { justify-content: flex-end; }
}

@media (min-width: 64rem) {
    .lg\:w-72 { width: 18rem; }
    .lg\:items-center { align-items: center; }
    .lg\:justify-between { justify-content: space-between; }
    .lg\:justify-end { justify-content: flex-end; }
}

@media (hover: hover) {
    .hover\:bg-violet-700:hover { background-color: var(--mailflow-yellow-600) !important; }
    .hover\:text-violet-200:hover { color: var(--mailflow-yellow-200) !important; }
    .hover\:text-violet-800:hover { color: var(--mailflow-yellow-800) !important; }
}
