*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Crossroadworks cream / olive / brown palette (light admin) */
    --bg:          #eee9df;
    --bg-card:     #f8f4eb;
    --bg-card-dim: #ddd6c8;
    --bg-sidebar:  #f4f0e6;
    --text:        #292a27;
    --text-sub:    #55554f;
    --text-dim:    #77756c;
    --text-primary: #292a27;
    --border:      #c9c0b1;
    --border-hover:#b9af9d;
    --brown:       #755037;
    --brown-dark:  #4b382b;
    --brown-light: #b49170;
    --cream:       #f8f4eb;
    --olive:       #6d725d;
    --cyan:        #6d725d;
    --success:     #3f5c3a;
    --warning:     #8a6640;
    --danger:      #8f4636;
    --sidebar-width: 260px;
    --nav-h: 68px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow: hidden;
    font-size: 14.5px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
    min-height: 0;
    display: flex;
}

header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: var(--nav-h);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.header-left { display: flex; align-items: center; gap: 14px; }
.header-right { display: flex; align-items: center; gap: 12px; }

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    height: 100%;
}

.logo-icon {
    display: block;
    width: 36px;
    height: 32px;
    object-fit: contain;
}

.brand-wordmark {
    display: block;
    width: 168px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    margin-top: 0;
}

.admin-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--brown-dark);
    color: #fff;
    padding: 1px 7px;
    border-radius: 2px;
    margin-left: 4px;
    align-self: center;
}

h1, h2, h3, .dashboard-view h2, .view-header h2 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1, .dashboard-view h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

h2 {
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.005em;
}

/* Layout */
.dashboard-layout {
    display: flex;
    flex-grow: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-nav {
    padding: 1.25rem 0;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex-grow: 1;
    padding: 2rem 2.25rem;
    overflow-y: auto;
    min-width: 0;
    background: var(--bg);
    height: 100%;
}

/* Collapsible Sidebar Styles */
.sidebar.collapsed {
    --sidebar-width: 68px;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sidebar.collapsed .sidebar-btn span {
    display: none;
}

.sidebar.collapsed .sidebar-btn {
    justify-content: center;
    padding: 10px;
    gap: 0;
}

.sidebar.collapsed .sidebar-collapse-toggle-wrapper {
    padding: 10px 0;
}

.sidebar.collapsed #collapse-icon {
    transform: rotate(180deg);
}

/* Sidebar Nav */
.nav-section { display: flex; flex-direction: column; gap: 3px; padding: 0 10px; }
.nav-label { 
    font-size: 10px; 
    font-weight: 700; 
    color: var(--text-dim); 
    margin: 10px 8px 6px; 
    letter-spacing: 0.08em; 
    text-transform: uppercase;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    text-align: left;
    border-radius: 2px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.sidebar-btn:hover { background: rgba(117,80,55,0.07); color: var(--text); }
.sidebar-btn.active { 
    background: var(--bg-card);
    color: var(--brown);
    border: 1px solid var(--border);
    box-shadow: 2px 2px 0 var(--brown-light);
}

/* Dashboard Views */
.dashboard-view { max-width: 860px; margin: 0 auto; }
.view-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.view-header h2 { font-size: 1.25rem; }

/* Cards */
.onboarding-card, .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 4px 4px 0 var(--brown-light);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.55;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-label.highlight-label {
    color: var(--brown);
}

.input-action-group {
    display: flex;
    gap: 10px;
}

.input-action-group input {
    flex: 1;
}

input[type="email"],
input[type="text"],
input[type="password"],
textarea,
.form-control {
    padding: 9px 11px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: #fffdf7;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 2px rgba(117, 80, 55, 0.12);
}

.input-readonly {
    background: #f4f0e6 !important;
    color: var(--text-dim) !important;
    cursor: not-allowed;
    border-style: dashed !important;
}

textarea { resize: vertical; line-height: 1.45; min-height: 80px; }

/* Draft / panels */
.draft-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.panel-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brown);
    margin: 0 0 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.copy-url-container {
    background: #f4f0e6;
    border: 1px dashed var(--border);
    padding: 14px;
    border-radius: 2px;
}

.actions-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.feedback-message {
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 18px;
}

.feedback-message.success { color: var(--success); }
.feedback-message.error { color: var(--danger); }

/* Buttons - match public cream theme */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    background: var(--brown-dark);
    border: 1px solid var(--brown-dark);
    color: #fff;
    box-shadow: 3px 3px 0 var(--brown-light);
    transition: transform .15s, box-shadow .15s, background .15s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--brown);
    box-shadow: 1px 1px 0 var(--brown-light);
    transform: translate(1px, 1px);
}

.btn-primary:active { transform: translate(0,0); }

.btn-primary:disabled {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-dim);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brown-dark);
    border: 1px solid var(--brown-dark);
    background: transparent;
    transition: all .15s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--brown-dark);
    color: var(--cream);
    border-color: var(--brown-dark);
}

.btn-secondary.copied {
    background: rgba(63,92,58,0.1);
    color: var(--success);
    border-color: var(--success);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.btn-text:hover { color: var(--brown); }

.btn-icon { background: none; border: none; color: var(--text-sub); cursor: pointer; padding: 6px; }

.empty-state { text-align: center; color: var(--text-dim); padding: 2rem; font-size: 13px; }

/* Responsive */
.mobile-only { display: none; }

@media (max-width: 900px) {
    :root {
        --nav-h: 74px;
    }
    body {
        height: auto;
        min-height: 100dvh;
        overflow-y: auto;
    }
    #main-content { display: block; flex: none; }
    .sidebar {
        display: none; /* completely remove left sidebar on mobile; use hamburger menu instead */
    }
    .dashboard-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100dvh - var(--nav-h));
        overflow: visible;
    }
    .content-area {
        padding: 1.25rem 1rem;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .mobile-only { display: flex; }
    .header-right .btn-text { display: none; } /* logout lives in the mobile menu now */

    /* Brand lockup: hide small icon, tighten wordmark like main site */
    .logo-wrapper .logo-icon { display: none; }
    .logo-wrapper .brand-wordmark { width: 148px; }
}

/* Login Modal (light theme) */
#admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(41, 42, 39, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 26px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 6px 6px 0 var(--brown-light);
}

.admin-modal-box h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#admin-pw-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: #fffdf7;
  color: var(--text);
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
}

#admin-pw-input:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 2px rgba(117,80,55,0.14);
}

#admin-pw-error {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 18px;
  text-align: center;
  font-weight: 600;
}

#admin-login-btn {
  background: var(--brown-dark);
  color: #fff;
  border: 1px solid var(--brown-dark);
  padding: 10px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--brown-light);
  transition: transform .1s, box-shadow .15s;
}

#admin-login-btn:hover {
  background: var(--brown);
  box-shadow: 1px 1px 0 var(--brown-light);
}

@media (max-width: 1024px) {
    .input-action-group { flex-direction: column; }
}

/* Leads & Cold Call */
.view-header-actions { display: flex; gap: 10px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.form-select {
    padding: 9px 11px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: #fffdf7;
    color: var(--text);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}
.form-select:focus { border-color: var(--brown); box-shadow: 0 0 0 2px rgba(117,80,55,0.12); }

.panel-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* Drag & Drop */
.drag-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 4px;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card-dim);
    color: var(--text-sub);
    text-align: center;
    margin-top: 8px;
    transition: all .2s;
}
.drag-drop-zone.dragover {
    border-color: var(--brown);
    background: rgba(117,80,55,0.06);
    color: var(--text);
}
.drag-drop-zone .upload-icon { color: var(--brown); }

/* Table filters */
.table-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.table-filters-row .search-box { flex: 1; max-width: 320px; }
.table-filters-row .search-box input { width: 100%; box-sizing: border-box; }

/* Table */
.table-scroll-container {
    overflow-x: auto;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}
.leads-table th, .leads-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.leads-table th {
    background: var(--bg-card-dim);
    color: var(--text-sub);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.06em;
}
.leads-table tbody tr { transition: background .1s; }
.leads-table tbody tr:hover { background: rgba(117,80,55,0.04); }
.leads-table tbody tr:last-child td { border-bottom: none; }

/* Status badges (warm earth tones) */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--border);
}
.badge-new { background: #f4f0e6; color: var(--brown); border-color: var(--brown-light); }
.badge-sent { background: #f0e9df; color: #6b5c4b; }
.badge-in_progress { background: #fdf5e6; color: #b25e00; border-color: #f5deb3; }
.badge-replied { background: #e8f0e3; color: var(--olive); border-color: #9aa38a; }
.badge-interested { background: #e6f0e6; color: var(--success); border-color: #8fa88a; }
.badge-not_interested { background: #f5e8e4; color: #8f4636; border-color: #c9a89f; }
.badge-onboarded { background: #e8f0e3; color: var(--olive); border-color: #9aa38a; }
.badge-archived { background: #ebe7df; color: #7a6b59; border-color: #c8bcae; }

/* Row actions */
.actions-cell { display: flex; gap: 6px; }
.btn-table-action {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sub);
    padding: 3px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all .15s;
}
.btn-table-action:hover { border-color: var(--brown); color: var(--brown); background: rgba(117,80,55,0.06); }
.btn-table-action.btn-pitch { border-color: rgba(117,80,55,0.35); color: var(--brown); }
.btn-table-action.btn-pitch:hover { background: rgba(117,80,55,0.12); border-color: var(--brown); }
.btn-table-action.btn-delete:hover { color: var(--danger); border-color: rgba(143,70,54,0.4); background: rgba(143,70,54,0.06); }

.email-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.target-company { font-size: 12px; font-weight: 600; color: var(--brown); }

/* Mobile refinements */
@media (max-width: 768px) {
    .onboarding-card { padding: 18px; }
    .view-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .view-header h2 { font-size: 1.1rem; }
    .view-header-actions { width: 100%; }
    .view-header-actions button { flex: 1; }
    .actions-footer { flex-direction: column-reverse; align-items: stretch; }
    .actions-footer .button-group { width: 100%; display: flex; gap: 8px; }
    .actions-footer .button-group button { flex: 1; }
    .email-panel-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .table-filters-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .table-filters-row .search-box { max-width: none; }
    .panel-actions-row { flex-direction: column-reverse; }
    .panel-actions-row button { width: 100%; }
}

/* Extra mobile optimizations for the leads table and UI */
@media (max-width: 640px) {
    /* Stack header actions vertically for better mobile */
    .view-header-actions {
        flex-direction: column;
        gap: 8px;
    }
    .view-header-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Filters stack and full width */
    .table-filters-row {
        flex-direction: column;
        gap: 8px;
    }
    .table-filters-row .search-box {
        max-width: 100%;
    }
    .table-filters-row .filter-box {
        width: 100%;
    }

    /* Compact the leads table */
    .leads-table th,
    .leads-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    .leads-table th {
        font-size: 10px;
    }

    /* Hide less critical column (Phone) on small mobile screens */
    .leads-table th:nth-child(4),
    .leads-table td:nth-child(4) {
        display: none;
    }

    /* Make action buttons more compact and touch friendly */
    .actions-cell {
        gap: 4px;
        flex-wrap: wrap;
    }
    .btn-table-action {
        padding: 4px 6px;
        font-size: 10px;
        min-height: 28px;
    }

    /* Badges a bit smaller */
    .badge {
        font-size: 9px;
        padding: 1px 5px;
    }

    /* Reduce card margins */
    .card.onboarding-card[style*="margin-top"] {
        margin-top: 12px !important;
    }
}

@media (max-width: 480px) {
    header { padding: 0 12px; }
    .logo-wrapper .brand-wordmark { width: 130px; }
    .admin-badge { display: none; }

    .content-area {
        padding: 1rem 0.75rem;
    }

    .leads-table th,
    .leads-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
}

/* Dashboard footer lockup */
.dash-footer {
    border-top: 1px solid var(--border);
    padding: 18px 0 22px;
    background: var(--cream);
    color: var(--text);
    font-size: 12px;
}
.dash-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dash-footer .footer-meta {
    width: 100%;
    text-align: center;
}

/* Mobile hamburger button (matches main site tap target + treatment) */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.mobile-menu-btn:hover {
    color: var(--text);
    background: rgba(117, 80, 55, 0.08);
}
.mobile-menu-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}
.mobile-menu-btn.open {
    color: var(--brown);
}

/* ── Mobile Menu Panel (matches main site structure + admin palette) ── */
.mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: none;
}
.mobile-menu.open {
    pointer-events: auto;
    opacity: 1;
    display: block !important;
}
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(41, 42, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mobile-menu-panel {
    position: relative;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px;
    transform: translateY(-8px);
    transition: transform 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mobile-menu.open .mobile-menu-panel {
    transform: translateY(0);
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-sub);
    background: none;
    border: none;
    text-align: left;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 2px;
}
.mobile-menu-link:hover,
.mobile-menu-link:focus {
    color: var(--text);
    background: rgba(117, 80, 55, 0.06);
}
.mobile-menu-link.active {
    background: var(--bg-card);
    color: var(--brown);
    border: 1px solid var(--border);
    box-shadow: 2px 2px 0 var(--brown-light);
    font-weight: 700;
}
.mobile-menu-actions {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.mobile-logout-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 14px;
}

/* --- Lead Scraper Premium Styles --- */
.premium-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid var(--border);
    border-top: 3.5px solid var(--brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-item {
    transition: all 0.3s ease;
    color: var(--text-dim);
    border: 1px solid var(--border);
    background: transparent;
}
.step-item.active {
    color: var(--brown);
    font-weight: 600;
    border-color: var(--brown) !important;
    background-color: var(--bg-card) !important;
    box-shadow: 2px 2px 0 var(--brown-light);
}
.step-item.success {
    color: var(--success);
    background-color: rgba(63, 92, 58, 0.05) !important;
    border-color: var(--success) !important;
}
.step-item.error {
    color: var(--danger);
    background-color: rgba(143, 70, 54, 0.05) !important;
    border-color: var(--danger) !important;
}

.score-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
}
.score-badge.high {
    background: rgba(63, 92, 58, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}
.score-badge.low {
    background: rgba(143, 70, 54, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.quota-badge-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    background: var(--bg-card);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Footer logo styles (matches main site layout) */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Outreach Candidate Cards - Expanded Full-Width Mobile & Desktop */
#outreach-candidates-panel {
    width: 100%;
    box-sizing: border-box;
}

#outreach-candidates-list {
    display: grid;
    gap: 16px;
    width: 100%;
}

.outreach-candidate-card {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.outreach-candidate-card:hover {
    border-color: var(--brown-light);
    box-shadow: 0 4px 12px rgba(117, 80, 55, 0.08);
}

.outreach-candidate-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.outreach-candidate-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.outreach-select-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    min-width: 200px;
}

.outreach-select-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brown);
    cursor: pointer;
}

.outreach-badges-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outreach-candidate-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outreach-category-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--brown);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.outreach-contact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--text-sub);
}

.outreach-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(117, 80, 55, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(117, 80, 55, 0.12);
}

.outreach-contact-pill a {
    color: var(--brown);
    text-decoration: underline;
    word-break: break-all;
}

.outreach-bottleneck-box {
    font-size: 13px;
    line-height: 1.5;
    background: rgba(180, 145, 112, 0.1);
    border-left: 3px solid var(--brown);
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    color: var(--text);
}

.outreach-actions-bar {
    margin-top: 4px;
}

.outreach-live-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: var(--brown);
    color: #fff;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.outreach-live-preview-btn:hover {
    background: var(--brown-dark);
}

.outreach-drafts-section {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.outreach-drafts-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.outreach-drafts-grid {
    display: grid;
    gap: 10px;
    width: 100%;
}

.outreach-draft-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.outreach-draft-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
}

.outreach-draft-wrapper input,
.outreach-draft-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    line-height: 1.45;
    box-sizing: border-box;
}

.outreach-draft-wrapper textarea {
    resize: vertical;
}

/* Mobile full-width expansion */
@media (max-width: 768px) {
    #outreach-candidates-panel {
        padding: 14px 10px !important;
        margin-left: -6px;
        margin-right: -6px;
        width: calc(100% + 12px);
    }

    .outreach-candidate-card {
        padding: 14px 12px;
    }

    .outreach-candidate-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .outreach-live-preview-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .outreach-contact-items {
        flex-direction: column;
        gap: 6px;
    }

    .outreach-draft-wrapper input,
    .outreach-draft-wrapper textarea {
        font-size: 15px;
    }
}
