:root {
  --mk-dark:  #1f2a24;   /* deep charcoal-green */
  --mk-mid:   #3d5a4a;
  --mk-light: #e3ece6;
  --accent:   #c8893a;   /* warm oak */
  --wa:       #25d366;
}
body { background: #f2f3f1; font-size: .92rem; padding-bottom: 84px; }

.navbar { flex-wrap: nowrap; background: var(--mk-dark) !important; position: sticky; top: 0; z-index: 1050;
  padding-top: calc(env(safe-area-inset-top) + .4rem); }
.navbar-brand { font-weight: 700; letter-spacing: 1px; color: #fff !important; font-size: 1rem; }
.navbar-brand span { color: var(--accent); }
.nav-link { color: rgba(255,255,255,.85) !important; }
.nav-link:hover { color: #fff !important; }

.track-pill { background: rgba(37,211,102,.18); color: #7ef0a8; border-radius: 999px;
  padding: .12rem .55rem; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.track-pill.warn { background: rgba(240,165,0,.2); color: #ffd27a; }
.track-pill i { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.banner { background: linear-gradient(135deg, var(--mk-dark), var(--mk-mid)); color: #fff; border-radius: 12px; }
.stat-card { background: rgba(255,255,255,.14); border-radius: 8px; padding: .55rem .3rem; text-align: center; }
.stat-card .label { font-size: .62rem; opacity: .85; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .value { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }

.card { border: none; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.btn-mk { background: var(--mk-dark); color: #fff; border-color: var(--mk-dark); }
.btn-mk:hover, .btn-mk:focus { background: var(--mk-mid); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #b0762d; color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: #1eb457; color: #fff; }
.btn-big { padding: .9rem; font-size: 1.05rem; font-weight: 700; border-radius: 12px; }

.table thead th { background: var(--mk-dark); color: #fff; font-weight: 600; border: none;
  font-size: .78rem; white-space: nowrap; }
.table td { vertical-align: middle; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 6px; }
.photo-grid a img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.meta { font-size: .78rem; color: #6c757d; }
.site-title { font-weight: 700; font-size: 1rem; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050; background: #fff;
  border-top: 1px solid #dee2e6; display: flex; justify-content: space-around; align-items: center;
  padding: .35rem 0 calc(env(safe-area-inset-bottom) + .35rem); }
.bottom-nav a { text-align: center; color: #6c757d; text-decoration: none; font-size: .62rem; flex: 1; }
.bottom-nav a i { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--mk-dark); font-weight: 700; }
.bottom-nav a.add-btn i { background: var(--accent); color: #fff; width: 46px; height: 46px; line-height: 46px;
  border-radius: 50%; margin: -18px auto 2px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

.client-card { cursor: pointer; transition: transform .08s; }
.client-card:active { transform: scale(.99); }
.strip-new { border-left: 4px solid #6c757d; } .strip-followup { border-left: 4px solid #3d5a4a; }
.strip-hot { border-left: 4px solid #dc3545; } .strip-converted { border-left: 4px solid #198754; }
.strip-lost { border-left: 4px solid #212529; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #fff; font-size: 1.05rem; }
.av-new { background: #6c757d; } .av-followup { background: #3d5a4a; } .av-hot { background: #dc3545; }
.av-converted { background: #198754; } .av-lost { background: #212529; }
.qa-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: .85rem; background: #eef1ee; color: var(--mk-dark); text-decoration: none; }
.qa-wa { background: #e7f8ec; color: #128c4b; } .qa-nav { background: #fbf0e1; color: #9a6421; }

.chip { display: inline-block; padding: .28rem .7rem; border-radius: 999px; background: #fff;
  border: 1px solid #d6dbd6; color: #495057; font-size: .78rem; text-decoration: none; }
.chip-on { background: var(--mk-dark); border-color: var(--mk-dark); color: #fff; font-weight: 600; }

.sec-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; flex: 0 0 34px;
  align-items: center; justify-content: center; background: var(--mk-light); color: var(--mk-dark); }
textarea { min-height: 70px; }
.mat-chips .btn { border-radius: 999px; }
.btn-check:checked + .btn-outline-mk { background: var(--mk-dark); color: #fff; border-color: var(--mk-dark); }
.btn-outline-mk { color: var(--mk-dark); border-color: #b8c4bc; background: #fff; }

.timeline-item { border-left: 3px solid var(--mk-mid); padding-left: .9rem; padding-bottom: .9rem; margin-left: .35rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 3px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--mk-mid); }
.timeline-item.office::before { background: var(--accent); }
.leg { font-size: .75rem; color: #6c757d; margin: -.4rem 0 .5rem .35rem; padding-left: .9rem;
  border-left: 3px dashed #c9d3cc; }

.toast-wrap { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 2000;
  width: min(92vw, 420px); }
.app-toast { background: #212529; color: #fff; border-radius: 10px; padding: .7rem .9rem; margin-top: .4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); font-size: .88rem; }
.app-toast.err { background: #b02a37; }
.app-toast.ok { background: #1e6b43; }

.emp-row { cursor: pointer; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@media (min-width: 992px) { body.wide .container-fluid { max-width: 1200px !important; } }

@media (max-width: 420px) { .navbar-brand { font-size: .85rem; letter-spacing: .5px; margin-right: .4rem; } .track-pill { font-size: .62rem; } }
