/* AAKAAR v2.1 · refined components: buttons, compact search, experts/compare, locality picker,
   account menu, project workspace, upload zones, settings. Loaded after app.css. */

/* ---------- Buttons: one modern system everywhere ---------- */
.btn {
  --bs-btn-border-radius: var(--ak-radius-btn); --bs-btn-font-weight: 600; --bs-btn-font-size: .9375rem;
  gap: 8px; letter-spacing: -.005em; line-height: 1.2; font-family: var(--ak-font-title);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn-sm { --bs-btn-border-radius: var(--ak-radius-sm); --bs-btn-font-size: .8125rem; --bs-btn-padding-x: .9rem; min-height: 36px; }
.btn-lg { --bs-btn-border-radius: var(--ak-radius-btn); }
.btn-primary, .btn-primary:hover { box-shadow: none; }
.btn-outline-primary { --bs-btn-border-color: var(--ak-green); --bs-btn-hover-border-color: var(--ak-green); }
.btn-light-outline { --bs-btn-bg: #fff; --bs-btn-border-color: var(--ak-border-input); --bs-btn-hover-bg: var(--ak-warm); }
.btn-outline-danger { --bs-btn-border-color: rgba(166,58,43,.4); }
.btn-link { min-height: 0; padding-inline: .25rem; text-decoration: none; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled, .btn.disabled { opacity: .5; box-shadow: none; }
.btn .bi { font-size: 1.05em; line-height: 1; }
.btn-close { border-radius: var(--ak-radius-sm); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none !important; } }

/* ---------- Compact search bar ---------- */
.ak-search-card { padding: 14px 14px 12px; border-radius: var(--ak-radius-card); box-shadow: 0 18px 44px -18px rgba(23,33,29,.22); }
.ak-search-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ak-stabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--ak-warm); border-radius: var(--ak-radius-sm); }
.ak-stab { border: 0; background: transparent; color: var(--ak-body); font: 600 .8125rem/1 var(--ak-font-body); padding: 8px 14px; border-radius: var(--ak-radius-sm); white-space: nowrap; transition: background .18s, color .18s; }
.ak-stab[aria-selected="true"] { background: #fff; color: var(--ak-green); box-shadow: 0 1px 3px rgba(23,33,29,.12); }
.ak-stab:focus-visible { outline: 2px solid var(--ak-green); outline-offset: 1px; }
.ak-loc-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ak-border); background: #fff; border-radius: var(--ak-radius-sm); padding: 6px 12px; font: 600 .8125rem/1 var(--ak-font-body); color: var(--ak-ink); white-space: nowrap; }
.ak-loc-pill .bi-geo-alt-fill { color: var(--ak-green); }
.ak-loc-pill:hover { border-color: var(--ak-green); }
.ak-sbar { display: flex; align-items: stretch; border: 1px solid var(--ak-border-input); border-radius: var(--ak-radius-card); background: #fff; padding: 4px; }
.ak-sbar[hidden] { display: none !important; }
.ak-sfield { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: var(--ak-radius-card); position: relative; transition: background .15s; }
.ak-sfield + .ak-sfield::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--ak-border); }
.ak-sfield:hover, .ak-sfield:focus-within { background: var(--ak-warm); }
.ak-sfield:focus-within::before, .ak-sfield:focus-within + .ak-sfield::before, .ak-sfield:hover::before, .ak-sfield:hover + .ak-sfield::before { opacity: 0; }
.ak-sfield > .bi { color: var(--ak-green); font-size: 1rem; flex: none; }
.ak-sfield > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ak-sfield label { font: 600 .6875rem/1.2 var(--ak-font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ak-body); margin: 0; cursor: pointer; }
.ak-sfield select, .ak-sfield input { border: 0; background: transparent; padding: 2px 18px 0 0; font: 500 .9375rem/1.4 var(--ak-font-body); color: var(--ak-ink); width: 100%; min-width: 0; outline: none; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.ak-sfield select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235F6863' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") right 2px center/10px no-repeat; cursor: pointer; }
.ak-sfield select:invalid, .ak-sfield select option[value=""] { color: #8A918D; }
.ak-sfield input::placeholder { color: #8A918D; }
.ak-sfield:has(.is-invalid) { background: var(--ak-danger-bg); }
.ak-sfield:has(.is-invalid) label { color: var(--ak-danger); }
.ak-sgo { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--ak-radius-card); background: var(--ak-green); color: #fff; font: 600 .9375rem/1 var(--ak-font-body); padding: 0 20px; min-height: 52px; transition: background .18s, transform .12s; box-shadow: 0 8px 18px -8px rgba(18,63,50,.6); }
.ak-sgo:hover { background: var(--ak-green-2); }
.ak-sgo:focus-visible { outline: 3px solid rgba(18,63,50,.35); outline-offset: 2px; }
.ak-popular { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ak-popular .ak-chip { min-height: 30px; padding: 4px 11px; border-radius: var(--ak-radius-sm); font-size: .8125rem; background: #fff; }
@media (max-width: 767.98px) {
  .ak-search-card { padding: 12px; border-radius: var(--ak-radius-card); }
  .ak-stab { padding: 7px 11px; font-size: .78rem; }
  .ak-loc-pill span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .ak-sbar { flex-wrap: wrap; border-radius: var(--ak-radius-card); padding: 4px; gap: 0; }
  .ak-sfield { flex: 1 1 100%; padding: 8px 12px; min-height: 50px; }
  .ak-sfield + .ak-sfield::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 1px; }
  .ak-sgo { flex: 1 1 100%; margin-top: 4px; min-height: 48px; }
  .ak-popular { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
  .ak-popular::-webkit-scrollbar { display: none; }
  .ak-popular .ak-chip { flex: none; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .ak-sgo span { display: none; }
  .ak-sgo { width: 52px; padding: 0; }
}

/* ---------- Experts / compare ---------- */
.ak-experts { position: relative; }
.ak-experts-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ak-experts-head .ak-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ak-loc-link { border: 0; background: none; padding: 0; font-weight: 700; color: var(--ak-green); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.ak-chip.on, .ak-chip[aria-pressed="true"] { background: var(--ak-green); border-color: var(--ak-green); color: #fff; }
#experts-filter .ak-chip, .ak-pill-chip { border-radius: var(--ak-radius-sm); min-height: 34px; padding: 5px 14px; font-weight: 600; font-size: .8125rem; }
.ak-cmp-check { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--ak-body); cursor: pointer; user-select: none; }
.ak-cmp-check input { width: 18px; height: 18px; accent-color: var(--ak-green); }
.ak-cmp-tray { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1040; display: flex; align-items: center; gap: 12px; background: var(--ak-ink); color: #fff; padding: 8px 8px 8px 12px; border-radius: var(--ak-radius-sm); box-shadow: 0 16px 40px -10px rgba(0,0,0,.45); animation: ak-tray-in .3s var(--ak-ease, ease) both; font-size: .875rem; white-space: nowrap; }
.ak-cmp-tray[hidden] { display: none; }
.ak-cmp-tray .btn { min-height: 36px; border-radius: var(--ak-radius-sm); }
.ak-cmp-tray .btn-light { --bs-btn-color: var(--ak-green); }
.ak-cmp-faces { display: flex; }
.ak-cmp-faces .ak-logo-badge { width: 32px; height: 32px; font-size: .75rem; border: 2px solid var(--ak-ink); margin-left: -8px; }
.ak-cmp-faces .ak-logo-badge:first-child { margin-left: 0; }
@keyframes ak-tray-in { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
body.has-tabbar .ak-cmp-tray { bottom: calc(84px + env(safe-area-inset-bottom)); }
.ak-cmp-table th[scope="row"] { color: var(--ak-body); font-weight: 600; font-size: .8125rem; white-space: nowrap; width: 140px; background: var(--ak-warm); }
.ak-cmp-table td, .ak-cmp-table thead th { min-width: 200px; }
.ak-svc-count { display: inline-flex; align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--ak-green); background: var(--ak-muted-green); padding: 3px 8px; border-radius: var(--ak-radius-xs); }

/* ---------- Locality picker ---------- */
.ak-loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ak-loc-opt { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--ak-border); background: #fff; border-radius: var(--ak-radius-card); padding: 10px 12px; transition: border-color .15s, background .15s; }
.ak-loc-opt:hover { border-color: var(--ak-green); }
.ak-loc-opt.on { border-color: var(--ak-green); background: var(--ak-muted-green); }
.ak-loc-opt .bi { color: var(--ak-green); }
.ak-loc-opt b { display: block; font-size: .875rem; }
.ak-loc-opt small { color: var(--ak-body); font-size: .72rem; }
@media (max-width: 575.98px) {
  .ak-loc-modal .modal-dialog { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; min-height: 0; }
  .ak-loc-modal .modal-content { border-radius: var(--ak-radius-lg) var(--ak-radius-lg) 0 0; max-height: 82vh; }
  .ak-loc-modal.fade .modal-dialog { transform: translateY(40px); }
  .ak-loc-modal.show .modal-dialog { transform: none; }
}

/* ---------- Avatar-only account menu ---------- */
.ak-acct-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; padding: 0; background: var(--ak-beige); color: var(--ak-green); font: 700 .8125rem/1 var(--ak-font-title); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--ak-border), 0 2px 6px rgba(23,33,29,.08); transition: box-shadow .18s; }
.ak-acct-btn:hover, .ak-acct-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--ak-green), 0 2px 6px rgba(23,33,29,.12); }
.ak-acct-menu { min-width: 240px; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 6px; box-shadow: 0 18px 40px -12px rgba(23,33,29,.28); }
.ak-acct-menu .dropdown-item { border-radius: var(--ak-radius-sm); padding: 9px 12px; display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; }
.ak-acct-menu .dropdown-item .bi { color: var(--ak-body); width: 18px; }
.ak-acct-menu .dropdown-item:active { background: var(--ak-green); color: #fff; }
.ak-acct-menu .dropdown-item:active .bi { color: #fff; }
.ak-acct-menu .ak-acct-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--ak-border); margin-bottom: 6px; }
.ak-acct-menu .ak-acct-head b { display: block; font-size: .9rem; }
.ak-acct-menu .ak-acct-head span { font-size: .75rem; color: var(--ak-body); }
.dropdown-menu.show { animation: ak-dd-in .16s ease-out both; }
@keyframes ak-dd-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
  .ak-search-top { gap: 6px; }
  .ak-stabs { flex: 1 1 auto; min-width: 0; }
  .ak-stab { flex: 1 1 auto; padding: 7px 8px; }
  .ak-loc-pill { flex: 0 1 auto; min-width: 0; padding: 6px 9px; }
  .ak-loc-pill .bi-chevron-down { display: none; }
  .ak-loc-pill span { max-width: 64px; }
}
@media (min-width: 992px) { #home-pros { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#home-pros .ak-card { border-radius: var(--ak-radius-card); }
#home-pros .ak-cmp-check { padding: 6px 10px; border: 1px dashed var(--ak-border-input); border-radius: var(--ak-radius-sm); align-self: flex-start; }
#home-pros .ak-cmp-check:has(input:checked) { border-style: solid; border-color: var(--ak-green); background: var(--ak-muted-green); color: var(--ak-green); }

/* ---------- Professional profile (vendor-profile.html) ---------- */
.ak-vp {
  background: #ffffff;
}

.ak-vp .ak-container {
  max-width: var(--ak-container, 1280px);
  padding-left: 24px;
  padding-right: 24px;
}

.ak-vp-topbar {
  padding: 8px 0 16px;
}
.ak-vp-topbar .breadcrumb {
  font-size: 12px;
  background: transparent;
  padding: 0;
  margin: 0;
}
.ak-vp-topbar .breadcrumb-item {
  color: #6B7280;
  font-size: 12px;
}
.ak-vp-topbar .breadcrumb-item a {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ak-vp-topbar .breadcrumb-item a:hover {
  color: #143E33;
}
.ak-vp-topbar .breadcrumb-item.active {
  color: #111827;
  font-weight: 600;
}
.ak-vp-topbar .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #9CA3AF;
  padding: 0 6px;
}

.ak-vp-cover {
  position: relative;
  height: clamp(226px, 18vw, 250px);
  border-radius: 14px;
  overflow: hidden;
  background: #EAE6DF;
}
.ak-vp-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ak-vp-head {
  position: relative;
  margin-top: -46px; /* Overlaps bottom of cover banner by 46px */
  padding-bottom: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.ak-vp-head-inner {
  display: flex;
  align-items: flex-start;
  gap: 29px;
  padding-left: 7px;
  padding-right: 7px;
}
.ak-vp-avatar-wrap {
  flex-shrink: 0;
}
.ak-vp-logo {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #3C291B;
  margin: 0;
  flex-shrink: 0;
}
.ak-vp-logo svg {
  display: block;
}
.ak-vp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ak-vp-details-grid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 66px; /* Aligns title top (y=289) relative to avatar top (y=223) */
}

/* Col 1: Identity */
.ak-vp-id {
  flex: 0 0 254px;
  width: 254px;
  display: flex;
  flex-direction: column;
}
.ak-vp-name {
  font: 700 27px/1.22 var(--ak-font-display);
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}
.ak-vp-loc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4B5563;
  font-weight: 500;
  margin: 0 0 8px 0;
}
.ak-vp-flag {
  font-size: 14px;
  line-height: 1;
}
.ak-vp-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}
.ak-vp-stars {
  color: #EAB308;
  display: inline-flex;
  gap: 2px;
  font-size: 11px;
}
.ak-vp-score-num {
  font-weight: 700;
  color: #111827;
  font-size: 13px;
}
.ak-vp-rating-text {
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
}

/* Col 2: Key Specifications */
.ak-vp-specs-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid #E5E7EB;
  padding-left: 26px;
  margin-left: 36px;
  margin-top: 16px;
}
.ak-vp-spec-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}
.ak-vp-spec-item .bi {
  color: #6B7280;
  font-size: 13.5px;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Col 3: Badges & CTAs */
.ak-vp-actions-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
  margin-left: auto;
  margin-top: 18px;
}
.ak-vp-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ak-vp-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #E8F5EE;
  color: #143E33;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  height: 24px;
}
.ak-vp-verified-pill .bi {
  color: #143E33;
  font-size: 11.5px;
}
.ak-vp-cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E8F5EE;
  color: #143E33;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  height: 24px;
}
.ak-vp-cert-pill .bi {
  color: #143E33;
  font-size: 11px;
}
.ak-vp-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  height: 24px;
}

.ak-vp-cta-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ak-vp-btn-quote {
  background: #143E33 !important;
  color: #ffffff !important;
  border: 1px solid #143E33 !important;
  font-weight: 600;
  font-size: 11px !important;
  padding: 0 12px !important;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  height: 28px !important;
  line-height: 26px !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
}
.ak-vp-btn-quote:hover {
  background: #0E2C24 !important;
  border-color: #0E2C24 !important;
}
.ak-vp-btn-products {
  background: #ffffff !important;
  color: #143E33 !important;
  border: 1px solid #143E33 !important;
  font-weight: 600;
  font-size: 11px !important;
  padding: 0 12px !important;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  height: 28px !important;
  line-height: 26px !important;
  transition: all 0.2s ease;
}
.ak-vp-btn-products:hover {
  background: #F4F7F5 !important;
  border-color: #0E2C24 !important;
  color: #0E2C24 !important;
}

/* Tab Navigation Bar */
.ak-vp-nav {
  position: sticky;
  top: calc(var(--ak-header-h) - 1px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 16px 0 28px;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.ak-vp-nav::-webkit-scrollbar {
  display: none;
}
.ak-vp-nav a {
  flex: none;
  padding: 14px 0 12px;
  border-radius: 0;
  font-family: var(--ak-font-title);
  font-weight: 500;
  font-size: 0.88rem;
  color: #4B5563;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ak-vp-nav a:hover {
  color: #143E33;
}
.ak-vp-nav a.on {
  background: transparent;
  color: #143E33;
  font-weight: 700;
  border-bottom: 2px solid #143E33;
  box-shadow: none;
}
.ak-vp-main { gap: 20px; }
.ak-vp-sec { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 28px; scroll-margin-top: calc(var(--ak-header-h) + 76px); }
.ak-vp-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ak-vp-h { font: 700 1.4rem/1.25 var(--ak-font-display); margin-bottom: 14px; color: var(--ak-ink); }
.ak-vp-h3 { font: 700 .95rem/1.3 var(--ak-font-title); margin: 24px 0 12px; }
.ak-vp-about { font-size: 1rem; line-height: 1.7; max-width: 64ch; }
.ak-vp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 0; }
.ak-vp-facts > div { background: var(--ak-warm); border-radius: var(--ak-radius-card); padding: 14px; display: grid; gap: 2px; }
.ak-vp-facts .bi { color: var(--ak-green); font-size: 1.1rem; margin-bottom: 6px; }
.ak-vp-facts dt { font-size: .75rem; font-weight: 500; color: var(--ak-body); }
.ak-vp-facts dd { margin: 0; font-weight: 700; font-size: .95rem; }
.ak-vp-hl, .ak-vp-svc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.ak-vp-hl li, .ak-vp-svc li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.ak-vp-hl .bi { color: var(--ak-green); font-size: 1.05rem; }
.ak-vp-svc li { background: var(--ak-warm); border-radius: var(--ak-radius-card); padding: 12px 14px; font-weight: 600; }
.ak-vp-svc .bi { color: #fff; background: var(--ak-green); border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; flex: none; margin-top: 1px; }
.ak-pill-chip .bi { color: var(--ak-green); }
.ak-vp-pf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ak-vp-pf .ak-card { border-radius: var(--ak-radius-card); }
.ak-vp-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; gap: 10px; }
.ak-vp-gal.n1 { grid-template-columns: 1fr; grid-auto-rows: 320px; }
.ak-vp-gal.n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
.ak-vp-gal.n3 .ak-vp-gi:first-child, .ak-vp-gal.n4 .ak-vp-gi:first-child, .ak-vp-gal.n5 .ak-vp-gi:first-child { grid-column: span 2; grid-row: span 2; }
.ak-vp-gal.n3 { grid-template-columns: 2fr 1fr 1fr; } .ak-vp-gal.n3 .ak-vp-gi:first-child { grid-column: span 1; }
.ak-vp-gal.n3 .ak-vp-gi:nth-child(2), .ak-vp-gal.n3 .ak-vp-gi:nth-child(3) { grid-row: span 2; }
.ak-vp-gal.n4 .ak-vp-gi:nth-child(4) { grid-column: span 2; }
.ak-vp-gi { border: 0; padding: 0; border-radius: var(--ak-radius-card); overflow: hidden; background: var(--ak-beige); cursor: zoom-in; }
.ak-vp-gi img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ak-ease, ease); }
.ak-vp-gi:hover img { transform: scale(1.04); }
.ak-vp-rating { display: flex; gap: 28px; align-items: center; background: var(--ak-warm); border-radius: var(--ak-radius-card); padding: 18px 22px; margin-bottom: 18px; flex-wrap: wrap; }
.ak-vp-score { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.ak-vp-score b { font: 700 2.8rem/1 var(--ak-font-display); }
.ak-vp-bars { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.ak-vp-bars > div { display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; }
.ak-vp-bar { height: 8px; background: #E4DFD4; border-radius: 99px; overflow: hidden; }
.ak-vp-bar i { display: block; height: 100%; background: var(--ak-green); border-radius: 99px; transition: width .8s var(--ak-ease, ease); }
.ak-slider { position: relative; }
.ak-slider-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; outline: none; }
.ak-slider-track::-webkit-scrollbar { display: none; }
.ak-slider-track:focus-visible { box-shadow: 0 0 0 3px rgba(18,63,50,.25); border-radius: var(--ak-radius-card); }
.ak-rv { flex: 0 0 calc(50% - 8px); scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
.ak-rv.is-pending { border-style: dashed; border-color: var(--ak-sample-line); background: var(--ak-sample-bg); }
.ak-rv blockquote { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ak-ink); flex: 1; }
.ak-rv figcaption { display: flex; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--ak-border); }
.ak-rv figcaption b { display: block; font-size: .875rem; }
.ak-rv-empty { flex-basis: 100%; align-items: center; justify-content: center; text-align: center; color: var(--ak-body); }
.ak-rv-empty .bi { font-size: 2rem; color: var(--ak-green); }
.ak-slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.ak-slider-nav .ak-round-btn { width: 38px; height: 38px; border: 1px solid var(--ak-border); box-shadow: none; }
.ak-slider-nav .ak-round-btn[hidden] { display: none; }
#vp-rdots { display: flex; gap: 6px; position: static; }
#vp-rdots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: #D3CEC3; transition: width .25s, background .25s; }
#vp-rdots button.on { width: 22px; background: var(--ak-green); }
.ak-vp-side { position: sticky; top: calc(var(--ak-header-h) + 84px); display: flex; flex-direction: column; gap: 14px; }
.ak-vp-quote { border-radius: var(--ak-radius-card); box-shadow: 0 18px 40px -24px rgba(23,33,29,.35); }
.ak-vp-note { display: flex; gap: 12px; background: var(--ak-muted-green); border-radius: var(--ak-radius-card); padding: 16px; color: #2E3B35; }
.ak-vp-note > .bi { color: var(--ak-green); font-size: 1.2rem; }
.ak-vp-similar { background: var(--ak-warm); border-top: 1px solid var(--ak-border); }
.ak-rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.ak-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ak-rate label { font-size: 1.9rem; color: #D6D0C3; cursor: pointer; transition: color .12s, transform .12s; line-height: 1; padding: 2px; }
.ak-rate label:hover, .ak-rate label:hover ~ label, .ak-rate input:checked ~ label { color: #B7791F; }
.ak-rate label:active { transform: scale(.88); }
.ak-rate input:focus-visible + label { outline: 2px solid var(--ak-green); border-radius: 6px; }
.ak-shake { animation: ak-shake .35s ease; }

/* Guide Cards (Image-Overlay Style) */
.ak-guide-card,
.ak-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 220px;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #111827;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.ak-guide-card:hover,
.ak-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}
.ak-guide-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 12px;
}
.ak-guide-card-bg img,
.ak-article-card .ak-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.ak-guide-card:hover .ak-guide-card-bg img,
.ak-article-card:hover .ak-card-img {
  transform: scale(1.06);
}
.ak-guide-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.04) 30%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.92) 100%);
  transition: background 0.3s ease;
}
.ak-guide-card:hover .ak-guide-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 25%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.96) 100%);
}
.ak-guide-card-badge,
.ak-article-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #ffffff;
  color: #111827;
  font-family: var(--ak-font-title);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  line-height: 1;
}
.ak-guide-card-content,
.ak-article-card .ak-card-body {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent !important;
}
.ak-guide-card-title,
.ak-article-card .ak-article-title {
  font-family: var(--ak-font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: auto;
}
.ak-guide-card-meta,
.ak-article-card .ak-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.ak-guide-card-meta i,
.ak-article-card .ak-article-meta i {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}
.ak-guide-meta-dot,
.ak-meta-dot {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 1199.98px) {
  .ak-vp-facts { grid-template-columns: repeat(2, 1fr); }
  .ak-vp-pf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-vp-details-grid { gap: 16px; }
  .ak-vp-specs-col { padding-left: 20px; }
}
@media (max-width: 991.98px) {
  .ak-vp-details-grid {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 50px;
  }
  .ak-vp-actions-col {
    margin-left: 0;
    width: 100%;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
  .ak-vp-side { position: static; }
}
@media (max-width: 767.98px) {
  .ak-vp-cover { height: 190px; border-radius: 12px; }
  .ak-vp-head { margin-top: -38px; }
  .ak-vp-head-inner { flex-direction: column; gap: 10px; }
  .ak-vp-logo { width: 76px; height: 76px; border-radius: 12px; }
  .ak-vp-logo svg { width: 42px; height: 42px; }
  .ak-vp-details-grid { padding-top: 0; flex-direction: column; align-items: stretch; gap: 14px; }
  .ak-vp-specs-col { border-left: none; border-top: 1px solid #E5E7EB; padding-left: 0; padding-top: 12px; margin-left: 0; }
  .ak-vp-actions-col { flex-direction: column; align-items: stretch; }
  .ak-vp-badges-row { justify-content: flex-start; }
  .ak-vp-cta-row { width: 100%; }
  .ak-vp-cta-row .btn { flex: 1; }
  .ak-vp-nav { gap: 20px; padding: 0 4px; }
  .ak-vp-sec { padding: 20px 18px; border-radius: var(--ak-radius-card); }
  .ak-vp-hl, .ak-vp-svc { grid-template-columns: 1fr; }
  .ak-vp-pf { display: flex; }
  .ak-vp-gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .ak-vp-gal .ak-vp-gi:first-child { grid-column: span 2 !important; grid-row: span 2; }
  .ak-vp-gal.n3 .ak-vp-gi:nth-child(n+2) { grid-row: span 1; }
  .ak-vp-gal.n4 .ak-vp-gi:nth-child(4) { grid-column: span 2; }
  .ak-rv { flex-basis: 88%; }
}

/* ---------- Project workspace ---------- */
.ak-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; color: var(--ak-body); text-decoration: none; margin-bottom: 12px; }
.ak-back:hover { color: var(--ak-green); }
.ak-wk-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 24px; align-items: center; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 22px 24px; margin-bottom: 20px; }
.ak-wk-id h1 { font: 700 clamp(1.25rem, 2.2vw, 1.6rem)/1.25 var(--ak-font-display); margin: 6px 0 8px; }
.ak-wk-parties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; }
.ak-wk-parties > span { display: inline-flex; align-items: center; gap: 8px; }
.ak-wk-parties > .bi { color: var(--ak-body); }
.ak-logo-badge.sm, .ak-avatar.sm { width: 30px; height: 30px; font-size: .72rem; border-radius: 8px; flex: none; }
.ak-avatar.sm { border-radius: 50%; }
.ak-wk-kv { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 26px; margin: 0; }
.ak-wk-kv dt { font-size: .72rem; font-weight: 500; color: var(--ak-body); }
.ak-wk-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ak-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--ak-green) calc(var(--p) * 1%), #E7E2D8 0); display: grid; place-content: center; text-align: center; position: relative; }
.ak-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ak-ring b, .ak-ring span { position: relative; line-height: 1.1; }
.ak-ring b { font: 700 1.3rem var(--ak-font-title); }
.ak-ring span { font-size: .68rem; color: var(--ak-body); }
.ak-wk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ak-wk-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.ak-wk-tabs { display: flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ak-wk-tabs::-webkit-scrollbar { display: none; }
.ak-wk-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--ak-radius-sm); font-weight: 600; font-size: .85rem; color: var(--ak-body); text-decoration: none; transition: background .15s, color .15s; }
.ak-wk-tabs a.on { background: var(--ak-green); color: #fff; }
.ak-wk-tabs em { font-style: normal; font-size: .68rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--ak-danger); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ak-wk-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ak-wk-phase { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); margin-bottom: 14px; overflow: hidden; }
.ak-wk-phase > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ak-border); background: #FCFBF8; }
.ak-wk-phase > header .bi { color: var(--ak-green); }
.ak-wk-phase h3 { font: 700 .95rem var(--ak-font-title); margin: 0; flex: 1; }
.ak-wk-mini { width: 70px; height: 6px; border-radius: 99px; background: #E7E2D8; overflow: hidden; }
.ak-wk-mini i, .ak-wk-bar i { display: block; height: 100%; background: var(--ak-green); border-radius: 99px; transition: width .6s var(--ak-ease, ease); }
.ak-wk-phase ul { list-style: none; margin: 0; padding: 0; }
.ak-wk-it { display: flex; gap: 12px; align-items: flex-start; padding: 13px 18px; border-top: 1px solid #F0EDE6; }
.ak-wk-it:first-child { border-top: 0; }
.ak-wk-it.is-done .ak-wk-it-main b { color: var(--ak-body); }
.ak-wk-it.is-late { background: linear-gradient(90deg, rgba(166,58,43,.06), transparent 60%); box-shadow: inset 3px 0 0 var(--ak-danger); }
.ak-wk-st { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #CFC9BD; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; margin-top: 1px; }
.ak-wk-st.ok { background: var(--ak-green); border-color: var(--ak-green); color: #fff; animation: ak-pop .35s var(--ak-ease, ease); }
.ak-wk-st.half { border-color: #B7791F; color: #B7791F; background: #FBF0D9; }
.ak-wk-st.sm { width: 16px; height: 16px; font-size: .6rem; border-width: 1.5px; vertical-align: -3px; }
.ak-wk-it-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ak-wk-it-main b { font-size: .9rem; font-weight: 600; }
.ak-wk-it-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ak-wk-note { font-size: .8rem; background: var(--ak-warm); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.ak-own { font-weight: 700; }
.ak-own.vendor { color: var(--ak-info); } .ak-own.customer { color: #8A5A12; } .ak-own.both { color: var(--ak-green); }
.ak-icon-btn.sm { width: 32px; height: 32px; }
.ak-wk-setup { display: flex; flex-direction: column; gap: 14px; }
.ak-wk-step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 20px; }
.ak-wk-step h2 { font: 700 1.05rem var(--ak-font-title); margin: 2px 0 4px; }
.ak-wk-num { width: 30px; height: 30px; border-radius: 50%; background: var(--ak-green); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ak-wk-svcs { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-wk-svc { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ak-border-input); border-radius: var(--ak-radius-sm); padding: 7px 14px; font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.ak-wk-svc input { accent-color: var(--ak-green); }
.ak-wk-svc:has(input:checked) { background: var(--ak-muted-green); border-color: var(--ak-green); color: var(--ak-green); font-weight: 600; }
.ak-wk-plans { display: grid; gap: 10px; }
.ak-wk-plans.two { grid-template-columns: 1fr 1fr; }
.ak-wk-plan { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--ak-border-input); border-radius: var(--ak-radius-card); padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.ak-wk-plan input { margin-top: 3px; accent-color: var(--ak-green); }
.ak-wk-plan b { display: block; font-size: .9rem; }
.ak-wk-plan small { color: var(--ak-body); font-size: .8rem; }
.ak-wk-plan:has(input:checked) { border-color: var(--ak-green); background: var(--ak-muted-green); box-shadow: 0 0 0 1px var(--ak-green); }
.ak-wk-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 12px; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 12px 16px; box-shadow: 0 10px 30px -14px rgba(23,33,29,.3); }
.ak-wk-wait { display: flex; gap: 14px; align-items: flex-start; }
.ak-wk-wait > .bi { font-size: 1.6rem; color: #B7791F; }
.ak-wk-paysum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ak-wk-paysum > div { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.ak-wk-paysum span { font-size: .75rem; color: var(--ak-body); }
.ak-wk-paysum b { font: 700 1.15rem var(--ak-font-title); font-variant-numeric: tabular-nums; }
.ak-wk-pays { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); }
.ak-wk-pays li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid #F0EDE6; flex-wrap: wrap; }
.ak-wk-pays li:first-child { border-top: 0; }
.ak-wk-pnum { width: 28px; height: 28px; border-radius: 50%; background: var(--ak-warm); font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ak-wk-pamt { font-variant-numeric: tabular-nums; }
.ak-wk-pact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ak-contract { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 28px; font-size: .92rem; line-height: 1.65; }
.ak-contract header { border-bottom: 1px solid var(--ak-border); padding-bottom: 14px; margin-bottom: 14px; }
.ak-contract h2 { font: 700 1.35rem var(--ak-font-display); margin: 4px 0; }
.ak-contract ol { padding-left: 1.2rem; display: grid; gap: 8px; }
.ak-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.ak-sig { border: 1px dashed var(--ak-border-input); border-radius: var(--ak-radius-card); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 92px; }
.ak-sig.is-signed { border-style: solid; border-color: var(--ak-green); background: var(--ak-muted-green); }
.ak-sig-name, .ak-sig-input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.5rem; font-weight: 400; color: var(--ak-green); }
.ak-wk-sign { margin-bottom: 14px; border-color: var(--ak-green); }
.ak-wk-pen { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ak-muted-green); border-radius: var(--ak-radius-card); padding: 16px 18px; margin-bottom: 12px; }
.ak-wk-pen b { display: block; font: 700 1.4rem var(--ak-font-title); }
.ak-wk-pen.on { background: var(--ak-danger-bg); } .ak-wk-pen.on b { color: var(--ak-danger); }
.ak-wk-ext { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ak-wk-ext li { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 10px 14px; font-size: .875rem; }
.ak-wk-post { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.ak-wk-feed { display: flex; flex-direction: column; gap: 12px; }
.ak-wk-postcard { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 16px 18px; }
.ak-wk-postcard.mine { border-color: rgba(18,63,50,.25); }
.ak-wk-postcard header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ak-wk-postcard header b { display: block; font-size: .875rem; }
.ak-wk-postcard p { margin: 0 0 10px; font-size: .92rem; }
.ak-wk-photos { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; border-radius: var(--ak-radius-card); overflow: hidden; }
.ak-wk-photos.n1 { grid-template-columns: 1fr; grid-auto-rows: 260px; }
.ak-wk-photos.n3 button:first-child { grid-row: span 2; }
.ak-wk-photos button { border: 0; padding: 0; background: var(--ak-beige); cursor: zoom-in; overflow: hidden; }
.ak-wk-photos img { width: 100%; height: 100%; object-fit: cover; }
.ak-wk-next { border-left: 4px solid var(--ak-green); }
.ak-wk-next b { display: block; margin: 2px 0; }
.ak-wk-alert { display: flex; gap: 10px; background: var(--ak-danger-bg); border: 0; color: var(--ak-danger); }
.ak-wk-assure { background: linear-gradient(135deg, #E2EEF5, #EAF0EA); border: 0; }
.ak-wk-assure.off { background: #fff; border: 1px dashed var(--ak-border-input); }
.ak-wk-assure b .bi { color: var(--ak-info); }
.ak-wk-contact { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ak-wk-contact b { font-size: .875rem; }
.ak-wk-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .8rem; max-height: 320px; overflow: auto; }
.ak-wk-log li { border-left: 2px solid var(--ak-border); padding-left: 10px; }
.ak-wk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ak-wk-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 18px; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.ak-wk-card:hover { border-color: rgba(18,63,50,.3); box-shadow: 0 14px 30px -18px rgba(23,33,29,.35); transform: translateY(-2px); color: inherit; }
.ak-wk-bar { height: 8px; border-radius: 99px; background: #E7E2D8; overflow: hidden; }
.ak-wk-bar.sm { height: 6px; display: inline-block; vertical-align: middle; margin-right: 6px; }
@media (max-width: 1199.98px) { .ak-wk-grid { grid-template-columns: 1fr; } .ak-wk-side { position: static; } }
@media (max-width: 767.98px) {
  .ak-wk-head { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; border-radius: var(--ak-radius-card); }
  .ak-ring { width: 72px; height: 72px; } .ak-ring b { font-size: 1.05rem; }
  .ak-wk-kv { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); background: var(--ak-warm); border-radius: var(--ak-radius-card); padding: 12px; }
  .ak-wk-it { flex-wrap: wrap; padding: 12px 14px; }
  .ak-wk-it-act { width: 100%; justify-content: flex-start; padding-left: 36px; }
  .ak-wk-it-act:empty { display: none; }
  .ak-wk-step { padding: 16px; gap: 12px; } .ak-wk-num { width: 26px; height: 26px; font-size: .8rem; }
  .ak-wk-plans.two { grid-template-columns: 1fr; }
  .ak-sigs { grid-template-columns: 1fr; }
  .ak-contract { padding: 18px; }
  .ak-wk-foot { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ak-wk-list { grid-template-columns: 1fr; }
  .ak-wk-pact { width: 100%; padding-left: 42px; }
}
@media print {
  .ak-side, .ak-topbar, .ak-tabbar, .ak-wk-side, .ak-wk-tabs, .ak-back, .ak-wk-sign, .ak-wk-pen, .ak-wk-ext, .ak-wk-head, .ak-demo-banner, .ak-wk-body > .ak-panel, .ak-wk-body > .d-flex { display: none !important; }
  .ak-wk-grid { display: block; } .ak-contract { border: 0; padding: 0; }
}

/* ---------- Upload zones ---------- */
.ak-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 2px dashed var(--ak-border-input); border-radius: var(--ak-radius-card); background: #FCFBF8; padding: 22px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; color: var(--ak-body); }
.ak-drop:hover, .ak-drop:focus-visible { border-color: var(--ak-green); background: var(--ak-muted-green); outline: none; }
.ak-drop.is-over { border-color: var(--ak-green); background: var(--ak-muted-green); transform: scale(1.01); }
.ak-drop.is-busy { opacity: .6; pointer-events: none; }
.ak-drop > .bi { font-size: 1.6rem; color: var(--ak-green); }
.ak-drop b { color: var(--ak-ink); }
.ak-drop.sm { flex-direction: row; padding: 12px 14px; justify-content: flex-start; text-align: left; font-size: .85rem; border-width: 1.5px; }
.ak-drop.sm > .bi { font-size: 1.2rem; }
.ak-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-thumbs:empty { display: none; }
.ak-thumb { position: relative; width: 76px; height: 76px; border-radius: var(--ak-radius-card); overflow: hidden; background: var(--ak-beige); }
.ak-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ak-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; font-size: .9rem; }

/* ---------- Razorpay-style checkout ---------- */
.ak-rzp .modal-dialog { max-width: 400px; }
.ak-rzp .modal-content { border: 0; border-radius: var(--ak-radius-card); overflow: hidden; }
.ak-rzp-head { background: linear-gradient(135deg, #0C2A4D, #1B4F8C); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; position: relative; }
.ak-rzp-head .btn-close { position: absolute; top: 12px; right: 12px; }
.ak-rzp-merchant { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.ak-rzp-merchant b { display: block; } .ak-rzp-merchant span { font-size: .78rem; opacity: .85; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.ak-rzp-logo { width: 40px; height: 40px; border-radius: var(--ak-radius-sm); background: #fff; color: var(--ak-green); font: 700 1.2rem var(--ak-font-display); display: inline-flex; align-items: center; justify-content: center; }
.ak-rzp-amt { text-align: right; padding-right: 24px; } .ak-rzp-amt span { font-size: .7rem; opacity: .8; display: block; } .ak-rzp-amt b { font-size: 1.15rem; }
.ak-rzp-test { background: #FFF6DD; color: #7A4F00; font-size: .75rem; font-weight: 600; padding: 6px 20px; }
.ak-rzp-body { padding: 18px 20px; }
.ak-rzp-methods { display: grid; gap: 8px; }
.ak-rzp-m { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 11px 14px; cursor: pointer; }
.ak-rzp-m input { position: absolute; opacity: 0; }
.ak-rzp-m > .bi:first-of-type { color: #1B4F8C; font-size: 1.15rem; }
.ak-rzp-m b { display: block; font-size: .875rem; } .ak-rzp-m small { color: var(--ak-body); font-size: .72rem; }
.ak-rzp-m:has(input:checked) { border-color: #1B4F8C; box-shadow: 0 0 0 1px #1B4F8C; background: #F3F7FC; }
.ak-rzp-m:has(input:focus-visible) { outline: 2px solid #1B4F8C; outline-offset: 2px; }
.ak-rzp .btn-primary { --bs-btn-bg: #1B4F8C; --bs-btn-border-color: #1B4F8C; --bs-btn-hover-bg: #0C2A4D; --bs-btn-hover-border-color: #0C2A4D; box-shadow: none; }
.ak-rzp-foot { border-top: 1px solid var(--ak-border); padding: 10px 20px; font-size: .75rem; color: var(--ak-body); text-align: center; }
.ak-rzp-spin { width: 46px; height: 46px; margin: 18px auto 0; border-radius: 50%; border: 4px solid #DCE6F2; border-top-color: #1B4F8C; animation: ak-spin .8s linear infinite; }
.ak-rzp-ok { width: 60px; height: 60px; margin: 10px auto 0; border-radius: 50%; background: var(--ak-success); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; animation: ak-pop .4s var(--ak-ease, ease); }
.ak-logo-badge { overflow: hidden; } .ak-logo-badge img { width: 100%; height: 100%; object-fit: cover; } .ak-logo-badge.md { width: 44px; height: 44px; }

/* ---------- Sectioned forms (vendor/admin) ---------- */
.ak-form-sections { display: flex; flex-direction: column; gap: 16px; }
.ak-fsec { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 24px; }
.ak-fsec > header { margin-bottom: 16px; }
.ak-fsec > header h2 { font: 700 1.05rem/1.3 var(--ak-font-title); margin: 0; display: flex; align-items: center; gap: 10px; }
.ak-fsec > header p { margin: 4px 0 0; color: var(--ak-body); font-size: .85rem; }
.ak-fnum { width: 26px; height: 26px; border-radius: 50%; background: var(--ak-muted-green); color: var(--ak-green); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.ak-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 10px 14px; box-shadow: 0 10px 30px -14px rgba(23,33,29,.3); }
.ak-savebar > .ak-caption { margin-right: auto; }
.ak-pill-option { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ak-border-input); border-radius: var(--ak-radius-sm); padding: 6px 13px; font-size: .84rem; cursor: pointer; transition: all .15s; }
.ak-pill-option input { accent-color: var(--ak-green); }
.ak-pill-option:has(input:checked) { background: var(--ak-muted-green); border-color: var(--ak-green); color: var(--ak-green); font-weight: 600; }

/* Brand image preview */
.ak-brand-prev { position: relative; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); overflow: hidden; background: #fff; }
.ak-bp-cover { position: relative; aspect-ratio: 4 / 1; min-height: 140px; background: repeating-linear-gradient(45deg, #F5F2EC 0 12px, #EFEBE3 12px 24px); cursor: pointer; display: flex; align-items: center; justify-content: center; border: 2px dashed transparent; transition: border-color .15s; outline: none; }
.ak-bp-cover:hover, .ak-bp-cover:focus-visible, .ak-bp-cover.is-over { border-color: var(--ak-green); }
.ak-bp-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-bp-empty { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px; color: var(--ak-body); font-size: .8rem; }
.ak-bp-empty .bi { font-size: 1.8rem; color: var(--ak-green); } .ak-bp-empty b { color: var(--ak-ink); font-size: .9rem; }
.ak-bp-cover.has-img .ak-bp-empty { display: none; }
.ak-bp-tools { position: absolute; right: 12px; bottom: 12px; display: none; gap: 6px; }
.ak-bp-cover.has-img .ak-bp-tools { display: flex; }
.ak-bp-tools .btn { min-height: 32px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ak-brand-prev { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
.ak-bp-cover { grid-column: 1 / -1; }
.ak-bp-logo { position: relative; left: auto; top: auto; margin: -44px 0 16px 24px; width: 96px; height: 96px; border-radius: var(--ak-radius-card); border: 4px solid #fff; background: var(--ak-beige-soft); box-shadow: 0 6px 18px rgba(23,33,29,.16); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; outline: none; }
.ak-bp-logo:focus-visible, .ak-bp-logo.is-over { box-shadow: 0 0 0 3px var(--ak-green); }
.ak-bp-logo img { width: 100%; height: 100%; object-fit: cover; }
.ak-bp-ini { font: 700 1.8rem var(--ak-font-display); color: var(--ak-green); }
.ak-bp-cam { position: absolute; inset: 0; background: rgba(18,63,50,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; opacity: 0; transition: opacity .15s; }
.ak-bp-logo:hover .ak-bp-cam, .ak-bp-logo:focus-visible .ak-bp-cam { opacity: 1; }
.ak-bp-meta { padding: 12px 20px 16px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ak-bp-meta b { font: 700 1.15rem var(--ak-font-display); }
@media (max-width: 575.98px) { .ak-brand-prev { grid-template-columns: 1fr; } .ak-bp-logo { width: 76px; height: 76px; margin: -38px 0 0 16px; } .ak-bp-meta { padding: 8px 16px 16px; } .ak-fsec { padding: 18px; } }

/* Portfolio grid */
.ak-pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ak-pf-card { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); overflow: hidden; display: flex; flex-direction: column; }
.ak-pf-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ak-beige); overflow: hidden; }
.ak-pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ak-pf-img:hover img { transform: scale(1.04); }
.ak-pf-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ak-pf-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.ak-pf-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.ak-pf-body h2 { font: 700 1rem var(--ak-font-title); margin: 0; }
.ak-pf-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 260px; border: 2px dashed var(--ak-border-input); border-radius: var(--ak-radius-card); text-decoration: none; color: var(--ak-ink); transition: border-color .15s, background .15s; }
.ak-pf-add:hover { border-color: var(--ak-green); background: var(--ak-muted-green); color: var(--ak-ink); }
.ak-pf-add .bi { font-size: 1.8rem; color: var(--ak-green); }
.ak-pf-add.big { grid-column: 1 / -1; min-height: 300px; }

/* Add project */
.ak-ap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ak-ap-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.ak-ap-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.ak-ap-ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--ak-radius-card); overflow: hidden; margin: 0; background: var(--ak-beige); animation: ak-pop .3s ease; }
.ak-ap-ph img { width: 100%; height: 100%; object-fit: cover; }
.ak-ap-ph.is-cover { grid-column: span 2; grid-row: span 2; box-shadow: 0 0 0 3px var(--ak-green); }
.ak-ap-cover { position: absolute; top: 8px; left: 8px; background: var(--ak-green); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: var(--ak-radius-xs); }
.ak-ap-ph-tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.ak-ap-ph:hover .ak-ap-ph-tools, .ak-ap-ph:focus-within .ak-ap-ph-tools { opacity: 1; }
@media (hover: none) { .ak-ap-ph-tools { opacity: 1; } }
.ak-ap-ph-tools button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255,255,255,.95); color: var(--ak-ink); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ak-ba-pair { border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 12px; background: #FCFBF8; }
.ak-ba-slots { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.ak-ba-arrow { color: var(--ak-body); }
.ak-ba-slot { position: relative; aspect-ratio: 4 / 3; border: 2px dashed var(--ak-border-input); border-radius: var(--ak-radius-card); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; background: #fff; color: var(--ak-green); font-size: 1.4rem; transition: border-color .15s, background .15s; outline: none; }
.ak-ba-slot:hover, .ak-ba-slot:focus-visible, .ak-ba-slot.is-over { border-color: var(--ak-green); background: var(--ak-muted-green); }
.ak-ba-slot.has-img { border-style: solid; border-color: transparent; }
.ak-ba-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-ba-tag { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: var(--ak-radius-xs); background: rgba(0,0,0,.65); color: #fff; }
.ak-ba-tag.after { background: var(--ak-green); }
.ak-ready { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .82rem; }
.ak-ready li { display: flex; gap: 8px; color: var(--ak-body); }
.ak-ready li.ok { color: var(--ak-ink); } .ak-ready li.ok .bi { color: var(--ak-success); }
.ak-ready li.opt .bi { color: #C9C3B6; }
@media (max-width: 1199.98px) { .ak-ap { grid-template-columns: 1fr; } .ak-ap-sticky { position: static; } }
@media (max-width: 575.98px) { .ak-ap-ph.is-cover { grid-column: 1 / -1; } .ak-ba-slots { grid-template-columns: 1fr 1fr; } .ak-ba-arrow { display: none; } }

/* Public before/after comparer */
.ak-ba-view { --pos: 50%; position: relative; aspect-ratio: 16 / 10; border-radius: var(--ak-radius-card); overflow: hidden; background: var(--ak-beige); user-select: none; }
.ak-ba-view > img, .ak-ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ak-ba-view .ak-ba-tag.after { left: auto; right: 10px; }
.ak-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.35); pointer-events: none; }
.ak-ba-handle .bi { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: var(--ak-green); display: flex; align-items: center; justify-content: center; transform: rotate(90deg); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ak-ba-view input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ak-ba-view input[type=range]:focus-visible ~ .ak-ba-handle .bi, .ak-ba-view:has(input:focus-visible) .ak-ba-handle .bi { box-shadow: 0 0 0 3px var(--ak-green); }

/* ---------- Vendor lead inbox ---------- */
.ak-seg-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: rgba(23,33,29,.08); font-size: .72rem; margin-left: 2px; }
.ak-seg [aria-pressed="true"] .ak-seg-n { background: rgba(255,255,255,.25); }
.ak-leads { display: flex; flex-direction: column; gap: 12px; }
article.ak-lead { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 18px 20px; position: relative; transition: box-shadow .2s, border-color .2s; }
article.ak-lead:hover { border-color: rgba(18,63,50,.25); box-shadow: 0 14px 30px -20px rgba(23,33,29,.35); }
article.ak-lead.is-new::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ak-green); }
article.ak-lead.is-closed { opacity: .78; }
.ak-lead-ico { width: 46px; height: 46px; border-radius: var(--ak-radius-card); background: var(--ak-muted-green); color: var(--ak-green); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.ak-lead-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ak-lead-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
article.ak-lead h2 { font: 700 1.05rem/1.3 var(--ak-font-title); margin: 0; }
article.ak-lead h2 a { color: inherit; text-decoration: none; } article.ak-lead h2 a:hover { color: var(--ak-green); }
.ak-lead-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ak-lead-chips span { display: inline-flex; align-items: center; gap: 5px; background: var(--ak-warm); border-radius: 8px; padding: 4px 9px; font-size: .78rem; font-weight: 500; }
.ak-lead-chips .bi { color: var(--ak-green); }
.ak-lead-who { display: flex; align-items: center; gap: 8px; font-size: .85rem; flex-wrap: wrap; }
.ak-lead-win { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; color: var(--ak-body); }
.ak-lead-win.hot { color: var(--ak-danger); }
.ak-lead-winbar { flex: 1; max-width: 220px; height: 5px; border-radius: 99px; background: #E7E2D8; overflow: hidden; }
.ak-lead-winbar i { display: block; height: 100%; background: var(--ak-green); }
.ak-lead-win.hot .ak-lead-winbar i { background: var(--ak-danger); }
.ak-lead-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ak-lead-score { width: 62px; height: 62px; border-radius: var(--ak-radius-card); background: var(--ak-neutral-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ak-lead-score b { font: 700 1.3rem var(--ak-font-title); }
.ak-lead-score span { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ak-lead-score.success { background: var(--ak-success-bg); color: var(--ak-success); }
.ak-lead-score.warning { background: var(--ak-warning-bg); color: var(--ak-warning); }
.ak-lead-score.danger { background: var(--ak-danger-bg); color: var(--ak-danger); }
.ak-lead-score.info { background: var(--ak-info-bg); color: var(--ak-info); }
.ak-lead-score.big { width: 84px; height: 84px; border-radius: var(--ak-radius-card); } .ak-lead-score.big b { font-size: 1.8rem; }
.ak-lead-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 767.98px) {
  article.ak-lead { grid-template-columns: auto 1fr; padding: 16px; gap: 12px; }
  .ak-lead-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .ak-lead-score { width: 52px; height: 52px; }
  .ak-lead-acts { flex: 1; }
  .ak-lead-acts .btn:not(.btn-link) { flex: 1; }
  .ak-lead-filter .ms-auto { margin-left: 0 !important; width: 100%; }
  .ak-lead-filter input { flex: 1 1 100%; width: auto !important; }
}

/* ---------- Vendor lead details ---------- */
.ak-ld-head { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 24px; margin: 12px 0 16px; }
.ak-ld-title h1 { font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.25 var(--ak-font-display); margin: 0 0 4px; }
.ak-ld-chips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ak-ld-chips span { background: var(--ak-warm); border-radius: var(--ak-radius-card); padding: 12px 14px; font-weight: 700; font-size: .92rem; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.ak-ld-chips .bi { grid-row: span 2; color: var(--ak-green); font-size: 1.15rem; }
.ak-ld-chips small { font-weight: 500; color: var(--ak-body); font-size: .72rem; }
.ak-ld-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ak-border); }
.ak-ld-acts:empty { display: none; }
.ak-ld-steps { display: flex; gap: 0; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 14px 18px; margin-bottom: 16px; overflow-x: auto; }
.ak-ld-steps > span { flex: 1; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--ak-body); position: relative; text-align: center; }
.ak-ld-steps > span::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--ak-border); z-index: 0; }
.ak-ld-steps > span:first-child::before { display: none; }
.ak-ld-steps > span > i { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--ak-border-input); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .78rem; }
.ak-ld-steps > span.done::before, .ak-ld-steps > span.on::before { background: var(--ak-green); }
.ak-ld-steps > span.done > i { background: var(--ak-green); border-color: var(--ak-green); color: #fff; }
.ak-ld-steps > span.on { color: var(--ak-green); } .ak-ld-steps > span.on > i { border-color: var(--ak-green); color: var(--ak-green); box-shadow: 0 0 0 4px var(--ak-muted-green); }
.ak-ld-steps > span.lost { color: var(--ak-danger); } .ak-ld-steps > span.lost > i { border-color: var(--ak-danger); background: var(--ak-danger); color: #fff; }
.ak-ld-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ak-ld-sec, .ak-ld-contact { padding: 22px; border-radius: var(--ak-radius-card); }
.ak-ld-dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 14px 0 0; }
.ak-ld-dl dt { font-size: .75rem; font-weight: 500; color: var(--ak-body); }
.ak-ld-dl dd { margin: 2px 0 0; font-weight: 600; }
.ak-ld-h3 { font: 700 .9rem var(--ak-font-title); margin: 22px 0 8px; }
.ak-ld-quote { margin: 0; background: var(--ak-warm); border-left: 3px solid var(--ak-beige); border-radius: 0 12px 12px 0; padding: 14px 16px; line-height: 1.6; }
.ak-ld-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ak-ld-notes li { display: flex; gap: 10px; font-size: .88rem; }
.ak-ld-notes .bi { color: #B7791F; }
.ak-ld-contact.open { border-color: rgba(18,63,50,.35); background: linear-gradient(180deg, var(--ak-muted-green), #fff 60%); }
.ak-ld-person { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.ak-ld-cdl { display: grid; gap: 10px; margin: 0; }
.ak-ld-cdl dt { font-size: .75rem; font-weight: 500; color: var(--ak-body); display: flex; gap: 6px; }
.ak-ld-cdl dd { margin: 0; font-weight: 600; }
@media (max-width: 1199.98px) { .ak-ld-grid { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .ak-ld-head { padding: 18px; grid-template-columns: 1fr auto; }
  .ak-ld-chips { grid-template-columns: 1fr 1fr; }
  .ak-ld-dl { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ak-ld-acts .btn { flex: 1 1 auto; }
}

/* ---------- Quotation builder ---------- */
.ak-q-building .ak-content > .ak-page-head { display: none; }
.ak-qb-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.ak-qb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.ak-qb-sticky { position: sticky; top: 84px; }
.ak-qb-paper { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 22px; box-shadow: 0 20px 40px -24px rgba(23,33,29,.35); font-size: .82rem; max-height: calc(100vh - 160px); overflow: auto; }
.ak-qb-paper table { width: 100%; }
.ak-qb-paper th, .ak-qb-paper td { padding: 6px 4px; border-bottom: 1px solid #F0EDE6; }
.ak-qd-sec td { background: var(--ak-warm); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ak-qb-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.ak-qb-presets .ak-chip { min-height: 30px; padding: 3px 11px; font-size: .78rem; }
.ak-qb-presets .ak-chip.on { background: var(--ak-green); color: #fff; }
.ak-qb-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0 6px; }
.ak-qb-table th { font-size: .72rem; font-weight: 600; color: var(--ak-body); text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; }
.ak-qb-table td { padding: 0 4px; vertical-align: middle; }
.ak-qb-table tr.ak-qb-sec input { font-weight: 700; background: var(--ak-warm); border-color: transparent; }
.ak-qb-totals { background: var(--ak-warm); border-radius: var(--ak-radius-card); padding: 12px 14px; }
.ak-qb-lead { display: flex; gap: 12px; align-items: center; background: var(--ak-warm); border-radius: var(--ak-radius-card); padding: 12px 14px; }
@media (max-width: 1199.98px) { .ak-qb-grid { grid-template-columns: 1fr; } .ak-qb-sticky { position: static; } .ak-qb-paper { max-height: none; } }

/* ---------- Security & members ---------- */
.ak-fsec > header h2 .bi { color: var(--ak-green); }
.ak-pw { position: relative; } .ak-pw .form-control { padding-right: 44px; }
.ak-pw .ak-pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.ak-2fa-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ak-2fa-opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--ak-border-input); background: #fff; border-radius: var(--ak-radius-card); padding: 14px 16px; transition: border-color .15s, background .15s; }
.ak-2fa-opt:hover { border-color: var(--ak-green); background: var(--ak-muted-green); }
.ak-2fa-opt > .bi:first-child { font-size: 1.4rem; color: var(--ak-green); }
.ak-2fa-opt b { display: block; } .ak-2fa-opt small { color: var(--ak-body); font-size: .78rem; }
.ak-2fa-on { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--ak-success-bg); border-radius: var(--ak-radius-card); padding: 14px 16px; }
.ak-2fa-on > .bi { font-size: 1.5rem; color: var(--ak-success); }
.ak-2fa-steps { padding-left: 1.1rem; display: grid; gap: 10px; font-size: .9rem; }
.ak-2fa-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.ak-2fa-qr svg { border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 6px; background: #fff; }
.ak-2fa-key { display: block; font-size: .95rem; letter-spacing: .06em; background: var(--ak-warm); padding: 8px 10px; border-radius: 8px; color: var(--ak-ink); margin: 4px 0; word-break: break-all; }
.ak-code-input { font: 600 1.4rem/1 var(--ak-font-title); letter-spacing: .5em; text-align: center; max-width: 240px; }
.ak-codes { columns: 2; list-style: none; padding: 14px; margin: 0; background: var(--ak-warm); border-radius: var(--ak-radius-card); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }
.ak-codes li { padding: 4px 0; } .ak-codes li.used { text-decoration: line-through; color: var(--ak-body); }
.ak-sess { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ak-sess li { display: flex; gap: 12px; align-items: center; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 12px 14px; }
.ak-sess li > .bi { font-size: 1.3rem; color: var(--ak-body); }
.ak-mem-list { display: grid; gap: 10px; }
.ak-mem { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 14px 16px; }
.ak-mem.is-off { opacity: .6; }
.ak-mem-main { flex: 1; min-width: 0; }
.ak-mem-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.ak-perm { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .85rem; }
.ak-perm th, .ak-perm td { padding: 10px 12px; border-bottom: 1px solid var(--ak-border); text-align: center; }
.ak-perm th[scope="row"], .ak-perm thead th:first-child { text-align: left; }
.ak-perm thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ak-body); font-weight: 600; }
@media (max-width: 767.98px) { .ak-2fa-pick { grid-template-columns: 1fr; } .ak-mem { flex-wrap: wrap; } .ak-codes { columns: 1; } }

/* ---------- Admin ---------- */
.ak-logo-badge.sm { width: 30px; height: 30px; font-size: .7rem; border-radius: 8px; }
.ak-viewswitch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-bottom: 1px solid var(--ak-border); margin-bottom: 16px; }
.ak-viewswitch [role="tab"] { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 10px 14px; font-weight: 600; font-size: .9rem; color: var(--ak-body); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ak-viewswitch [role="tab"][aria-selected="true"] { color: var(--ak-green); border-bottom-color: var(--ak-green); }
.ak-viewswitch .btn { margin-bottom: 6px; }
.ak-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 10px 0 18px; }
.ak-plan { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ak-plan[data-pick] { cursor: pointer; }
.ak-plan[data-pick]:hover { border-color: rgba(18,63,50,.35); transform: translateY(-2px); }
.ak-plan.on { border-color: var(--ak-green); box-shadow: 0 0 0 2px var(--ak-green); }
.ak-plan.is-off { opacity: .6; }
.ak-plan h3 { font: 700 1.1rem var(--ak-font-title); margin: 2px 0 0; }
.ak-plan-price { font: 700 1.6rem var(--ak-font-title); font-variant-numeric: tabular-nums; }
.ak-plan-price small { font-size: .8rem; font-weight: 500; color: var(--ak-body); }
.ak-plan-subs { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ak-border); font-size: .9rem; }
.ak-plan-faces { display: flex; margin-left: auto; }
.ak-plan-faces .ak-logo-badge { margin-left: -8px; border: 2px solid #fff; } .ak-plan-faces .ak-logo-badge:first-child { margin-left: 0; }
.ak-gw { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: linear-gradient(135deg, #F3F7FC, #fff); border: 1px solid #D5E2F1; border-radius: var(--ak-radius-card); padding: 16px 18px; margin-bottom: 16px; }
.ak-gw-logo { width: 46px; height: 46px; border-radius: var(--ak-radius-card); background: #0C2A4D; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.ak-rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ak-rep-grid > .ak-panel { border-radius: var(--ak-radius-card); }
.ak-rep-wide { grid-column: span 2; }
.ak-rep-grid > .ak-rep-wide:nth-of-type(6) { grid-column: span 3; }
.ak-chart-box.sm { height: 240px; }
.ak-funnel { display: grid; gap: 10px; }
.ak-fun-row { display: grid; grid-template-columns: 110px 1fr 36px 40px; gap: 10px; align-items: center; font-size: .82rem; }
.ak-fun-bar { height: 22px; background: var(--ak-warm); border-radius: 6px; overflow: hidden; }
.ak-fun-bar i { display: block; height: 100%; background: var(--ak-green); border-radius: 6px; transition: width .7s var(--ak-ease, ease); }
.ak-hbars { display: grid; gap: 10px; }
.ak-hbars > div { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; font-size: .84rem; }
.ak-hbars i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--ak-green), #4C8A6F); }
@media (max-width: 1199.98px) { .ak-rep-grid { grid-template-columns: 1fr 1fr; } .ak-rep-wide, .ak-rep-grid > .ak-rep-wide:nth-of-type(6) { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .ak-rep-grid { grid-template-columns: 1fr; } }
.ak-set { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.ak-set-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 6px; }
.ak-set-nav button { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: var(--ak-radius-sm); font-weight: 600; font-size: .875rem; color: var(--ak-body); }
.ak-set-nav button:hover { background: var(--ak-warm); color: var(--ak-ink); }
.ak-set-nav button[aria-selected="true"] { background: var(--ak-muted-green); color: var(--ak-green); }
.ak-set-body { max-width: 900px; }
@media (max-width: 991.98px) { .ak-set { grid-template-columns: 1fr; } .ak-set-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; } .ak-set-nav button { flex: none; } }
.ak-notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--ak-radius-card); font-size: .875rem; font-weight: 500; background: var(--ak-info-bg); color: var(--ak-info); }
.ak-notice.success { background: var(--ak-success-bg); color: var(--ak-success); }
.ak-notice.warning { background: var(--ak-warning-bg); color: var(--ak-warning); }
.ak-notice.danger { background: var(--ak-danger-bg); color: var(--ak-danger); }
.ak-notice a { color: inherit; font-weight: 700; }
.ak-notice-bar { border-radius: 0; justify-content: center; text-decoration: none; }
.ak-content > .ak-notice-bar { border-radius: var(--ak-radius-card); margin-bottom: 14px; justify-content: flex-start; }
.ak-maint-on { overflow: hidden; }
.ak-maint { position: fixed; inset: 0; z-index: 3000; background: radial-gradient(circle at 30% 20%, #EAF0EA, var(--ak-warm) 60%); display: flex; align-items: center; justify-content: center; padding: 24px; }
.ak-maint-card { max-width: 520px; text-align: center; background: #fff; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-card); padding: 40px 32px; box-shadow: 0 30px 60px -30px rgba(23,33,29,.35); animation: ak-pop .5s var(--ak-ease, ease); }
.ak-maint-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: var(--ak-radius-card); background: var(--ak-green); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.ak-maint h1 { font: 700 1.8rem var(--ak-font-display); }
@media (max-width: 575.98px) { .ak-topbar .ak-search-input { display: none; } .ak-topbar { flex-wrap: nowrap; } .ak-credit-pill { padding: 4px 8px; font-size: .75rem; } }
