/* FC Leads — mobile-first, no external fonts/scripts. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f2f4f7;
    color: #1c2530;
    font-size: 16px;
    line-height: 1.45;
}
a { color: #0b6e4f; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 12px 40px; }

/* Header */
.topbar {
    background: #0b3d2e;
    color: #fff;
    padding: 14px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.topbar h1 { font-size: 19px; margin: 0; }
.topbar .who { font-size: 13px; opacity: .9; text-align: right; }
.topbar a { color: #cdeeda; font-size: 14px; }
.btn-link { background: none; border: 0; color: #cdeeda; font-size: 14px; cursor: pointer; padding: 0; text-decoration: underline; }

/* Cards */
.card {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}
.card h2 { font-size: 17px; margin: 0 0 6px; }
.card h3 { font-size: 16px; margin: 0 0 4px; }
.muted { color: #5b6673; font-size: 13px; }
.small { font-size: 13px; }

/* Badges */
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e6f4ec;
    color: #0b6e4f;
    margin-right: 4px;
}
.badge.wa-first { background: #dcf8e7; color: #127a3d; }
.badge.call-first { background: #fff3d6; color: #8a5a00; }
.badge.done { background: #e8e8e8; color: #555; }

/* Buttons — big tap targets */
.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 10px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}
.btn-wa { background: #25d366; color: #062b16; }
.btn-call { background: #0b6e4f; color: #fff; }
.btn-mail { background: #2563eb; color: #fff; }
.btn-copy { background: #eef1f4; color: #1c2530; border: 1px solid #d0d7de; }
.btn-primary { background: #0b3d2e; color: #fff; }
.btn-danger { background: #b42318; color: #fff; }
.btn-ghost { background: #fff; color: #0b3d2e; border: 1px solid #0b3d2e; }
.btn[disabled], .btn.disabled {
    background: #e3e6e9 !important;
    color: #7a828c !important;
    cursor: not-allowed;
    text-decoration: none;
}
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btnrow .btn { margin-top: 0; }
.done-note { font-size: 13px; color: #555; margin-top: 6px; }

/* Forms */
label { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=file], select, textarea {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    border: 1px solid #c6cdd5;
    border-radius: 10px;
    background: #fff;
}
textarea { min-height: 90px; }
details { margin-top: 10px; }
details summary { cursor: pointer; font-weight: 700; color: #0b6e4f; padding: 6px 0; }
.msgbox {
    background: #f6f8f9;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 6px;
}

/* Flash */
.flash { padding: 12px; border-radius: 10px; margin-top: 12px; font-size: 15px; }
.flash.ok { background: #dcf8e7; color: #0b4d2e; }
.flash.err { background: #fde8e8; color: #7a1d1d; }

/* Filters */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.filters .full { grid-column: 1 / -1; }

/* Tables (admin) */
.tblwrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e5e9ed; vertical-align: top; }
th { background: #f6f8f9; }
.inline { display: inline; }
.inline .btn { width: auto; padding: 7px 12px; font-size: 14px; margin-top: 0; }

.loginbox { max-width: 420px; margin: 30px auto 0; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid #e2e7eb; margin: 18px 0; }
