/* DesignHaus: full-page app layout (kitchen-designer.html). Builds on the .cd designer styles in site.css. */
html.kda-page, html.kda-page body { height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--ground); }
html.kda-page body::before { display: none; }
.kda-boot { position: fixed; inset: 0; display: grid; place-items: center; font: 600 1rem var(--font-body); color: var(--ink-soft); }

.cd.cd--app { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: var(--ground); }

/* ---------- top bar ---------- */
.kda-top { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--navy); color: #fff; min-height: 60px; }
.kda-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding-right: 10px; border-right: 1px solid rgba(255,255,255,.14); margin-right: 2px; }
.kda-brand img { width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 4px; }
.kda-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.kda-brand b { font: 800 .98rem var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.kda-brand small { font-size: .72rem; color: rgba(255,255,255,.66); }
.kda-top__name input { width: clamp(120px, 18vw, 240px); background: rgba(255,255,255,.08); border: 1px solid transparent; color: #fff; font: 700 .95rem var(--font-body); padding: 8px 10px; border-radius: 8px; }
.kda-top__name input:hover { border-color: rgba(255,255,255,.2); }
.kda-top__name input:focus { outline: none; border-color: var(--ember); background: rgba(255,255,255,.12); }
.kda-top__name input::placeholder { color: rgba(255,255,255,.5); }
.kda-top__hist { display: flex; gap: 2px; }
.kda-top__sp { flex: 1; }
.kda-saved { font-size: .78rem; color: rgba(255,255,255,.6); display: inline-flex; align-items: center; gap: 6px; }
.kda-saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fbf8a; }
.kda-saved.is-busy::before { background: var(--ember); }
.kda-ico { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; padding: 0; text-decoration: none; }
.kda-ico svg { width: 21px; height: 21px; }
.kda-top .kda-ico:hover { background: rgba(255,255,255,.1); }
.kda-top .kda-ico:disabled { opacity: .35; cursor: default; background: none; }
.kda-pill { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; border: 0; background: var(--ember); color: var(--navy); border-radius: 12px; padding: 7px 14px; cursor: pointer; font: inherit; min-height: 44px; justify-content: center; }
.kda-pill small { font-size: .68rem; font-weight: 600; opacity: .8; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kda-pill b { font: 800 1.02rem var(--font-display); }
.kda-pill:hover { background: #e39a48; }

/* ---------- body: rail | panel | stage ---------- */
.cd--app .cd__main { display: grid; grid-template-columns: 84px auto minmax(0, 1fr); min-height: 0; height: 100%; }
.kda-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; }
.kda-rail button { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; border-radius: 12px; padding: 10px 2px; font: 700 .7rem/1.1 var(--font-body); color: var(--ink-soft); cursor: pointer; text-align: center; }
.kda-rail button svg { width: 24px; height: 24px; }
.kda-rail button:hover { background: var(--ground); color: var(--ink); }
.kda-rail button.is-on { background: var(--sky); color: var(--blue); }
.kda-rail button[data-open="price"] { margin-top: auto; }
.kda-rail button[data-open="price"].is-on { background: #fbe9d4; color: var(--ember-dark); }

.kda-panel { width: 0; overflow: hidden; background: var(--paper); border-right: 1px solid var(--line); min-height: 0; }
.kda--panel .kda-panel { width: 348px; overflow-y: auto; overscroll-behavior: contain; }
.kda--wide .kda-panel { width: 480px; }
.kda-sec__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.kda-sec__head h2 { margin: 0; font: 800 1.12rem var(--font-display); }
.kda-sec__x { color: var(--ink-soft); }
.kda-sec__x:hover { background: var(--ground); color: var(--ink); }
.kda-sec__body { padding: 14px 16px 28px; }
.kda-block { margin-bottom: 22px; }
.kda-block h3 { margin: 0 0 4px; font: 800 .82rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.kda-hint { margin: 0 0 10px; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }
.kda-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; cursor: pointer; }
.kda-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 10px; font-size: .88rem; }
.kda-roomdims { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; margin-bottom: 10px; }
.kda-roomdims .cd__lbl { flex-basis: 100%; font-weight: 700; font-size: .82rem; color: var(--ink-soft); }
.cd--app .kda-block input[type="number"], .cd--app .kda-block select { font: inherit; font-size: 16px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.cd--app .kda-block input[type="number"] { width: 62px; }
.cd--app .kda-block > label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.cd--app #cdCutWrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: .88rem; }
.cd--app #cdCutWrap[hidden] { display: none; }
.cd--app #cdClear { width: 100%; padding: 10px; border-radius: 10px; }
.kda-find { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; margin-bottom: 8px; background: var(--ground); }
.kda-find:focus { outline: none; border-color: var(--blue); background: #fff; }
.cd--app .cd__grp { margin-bottom: 18px; }
.cd--app .cd__grp[hidden] { display: none; }
.cd--app .cd__chips { gap: 6px; }
.cd--app .cd__chip { padding: 9px 12px; font-size: .82rem; border-radius: 10px; min-height: 38px; }
.cd--app .cd__chip[hidden] { display: none; }
.cd--app .cd__chip--tpl { padding: 12px 14px; font-size: .88rem; }
.cd--app .cd__grp--custom { border-top: 0; padding: 14px; background: var(--ground); border-radius: 12px; }
.cd--app .cd__customrow select, .cd--app .cd__customrow input { font-size: 16px; padding: 8px; border-radius: 8px; }
.cd--app .cd__customrow .cd__mini { padding: 8px 14px; border-radius: 8px; }
.cd--app .cd__list { max-height: none; }
.cd--app .cd__actions .btn { border-radius: 10px; }

/* price panel: the quote tool without its card chrome */
.cd--app .cq { border: 0; padding: 0; box-shadow: none; border-radius: 0; background: none; }
.cd--app .cq__head h2 { display: none; }
.cd--app .cq__kick { display: none; }
.cd--app .cq__head p { font-size: .85rem; margin-bottom: 12px; }
.cd--app .cq__brands { gap: 6px; }
.cd--app .cq__brand { padding: 10px; }
.cd--app .cq__brand b { font-size: .9rem; }
.cd--app .cq__brand small { font-size: .72rem; display: block; line-height: 1.3; }
.cd--app .cq__lines { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.cd--app .cq__table table { min-width: 0; font-size: .8rem; }
.cd--app .cq__table th, .cd--app .cq__table td { padding: 7px 8px; }
.cd--app .cq__btns .btn { flex: 1 1 100%; }
.cd--app .cq__browse-head input { flex: 1 1 100%; }
.cd--app .cq__toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; }

/* ---------- stage ---------- */
.cd--app .cd__stage { position: relative; display: block; padding: 0; min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
.cd--app #cdCanvas { display: block; border: 0; border-radius: 0; box-shadow: none; max-width: none; }
.cd--app .cd__views { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 6; box-shadow: 0 4px 16px -6px rgba(16,34,47,.35); }
.cd--app .cd__views button { padding: 9px 18px; white-space: nowrap; }
.cd--app .cd__alt { position: absolute; inset: 64px 14px 12px; z-index: 4; }
.cd--app .cd__alt[hidden] { display: none; }
.cd--app .k3__cv { box-shadow: none; border: 1px solid var(--line-soft); }
.cd--app .cd__hint { position: absolute; left: 14px; bottom: 12px; z-index: 3; text-align: left; max-width: 34ch; font-size: .72rem; background: rgba(255,255,255,.85); padding: 6px 9px; border-radius: 8px; pointer-events: none; }
.cd--app .cd__sel { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; width: auto; max-width: calc(100% - 150px); border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px -10px rgba(16,34,47,.45); border-color: var(--line-soft); }
.cd--app .cd__sel .cd__mini { padding: 8px 12px; border-radius: 8px; }
.cd--app .cd__sel input { font-size: 16px; width: 60px; border-radius: 6px; }
.cd--app .cd__stage:has(.cd__sel:not([hidden])) .cd__hint { display: none; }
.kda-zoom { position: absolute; right: 14px; bottom: 16px; z-index: 5; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px -8px rgba(16,34,47,.4); overflow: hidden; }
.kda-zoom .kda-ico { border-radius: 0; color: var(--ink); width: 44px; height: 44px; }
.kda-zoom .kda-ico + .kda-ico { border-top: 1px solid var(--line-soft); }
.kda-zoom .kda-ico:hover { background: var(--ground); }
.cd--app .cd__stage:has(.cd__alt:not([hidden])) .kda-zoom, .cd--app .cd__stage:has(.cd__alt:not([hidden])) .kda-hello { display: none; }

/* welcome card */
.kda-hello { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 20px; background: rgba(243,241,236,.78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow-y: auto; }
.kda-hello[hidden] { display: none; }
.kda-hello__card { background: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 34px); max-width: 680px; width: 100%; box-shadow: 0 30px 60px -30px rgba(16,34,47,.5); text-align: center; }
.kda-hello__kick { margin: 0 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-dark); }
.kda-hello__card h2 { margin: 0 0 6px; font: 800 clamp(1.4rem, 3vw, 1.9rem) var(--font-display); }
.kda-hello__card > p { margin: 0 auto 18px; color: var(--ink-soft); max-width: 44ch; }
.kda-hello__tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kda-hello__tpls button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.kda-hello__tpls button:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,102,140,.15); }
.kda-hello__tpls b { font-size: .92rem; }
.kda-hello__tpls small { font-size: .74rem; color: var(--ink-soft); }
.kda-hello__foot { margin: 16px 0 0 !important; font-size: .78rem; color: var(--ink-soft); }
/* little plan icons for each starter layout */
.kda-shape { position: relative; width: 64px; height: 48px; border: 2px solid var(--ink); border-radius: 3px; margin-bottom: 6px; background: var(--ground); }
.kda-shape::before, .kda-shape::after { content: ""; position: absolute; background: #cdb58f; }
.kda-shape--one-wall::before { left: 4px; right: 4px; top: 3px; height: 9px; }
.kda-shape--galley::before { left: 4px; right: 4px; top: 3px; height: 9px; }
.kda-shape--galley::after { left: 4px; right: 4px; bottom: 3px; height: 9px; }
.kda-shape--l-island::before { left: 3px; top: 3px; bottom: 3px; width: 9px; box-shadow: 0 0 0 0 transparent; }
.kda-shape--l-island::after { left: 3px; right: 3px; bottom: 3px; height: 9px; }
.kda-shape--l-island { background: linear-gradient(#cdb58f, #cdb58f) 60% 42% / 24px 10px no-repeat, var(--ground); }
.kda-shape--blank { border-style: dashed; }
.kda-shape--open-plan::before { left: 4px; right: 20px; top: 3px; height: 9px; }
.kda-shape--suite::before { right: 3px; top: 3px; bottom: 3px; width: 2px; background: var(--ink); }

/* ---------- phones and small tablets: bottom tabs + sheet ---------- */
@media (max-width: 899px) {
  .kda-top { gap: 6px; padding-left: 8px; padding-right: 8px; min-height: 54px; }
  .kda-brand { border: 0; padding: 0; margin: 0; }
  .kda-brand span, .kda-saved, .kda-top [data-full] { display: none; }
  .kda-brand img { width: 32px; height: 32px; }
  .kda-top__name { flex: 1; min-width: 0; }
  .kda-top__name input { width: 100%; font-size: 16px; padding: 7px 8px; }
  .kda-top__sp { display: none; }
  .kda-pill { padding: 5px 10px; min-height: 40px; }
  .kda-pill small { display: none; }
  .kda-pill b { font-size: .92rem; }
  .kda-top .kda-ico { width: 38px; height: 38px; }
  .cd--app .cd__main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .cd--app .cd__stage { grid-row: 1; grid-column: 1; }
  .kda-rail { grid-row: 2; flex-direction: row; justify-content: space-around; gap: 0; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow: visible; z-index: 20; }
  .kda-rail button { flex: 1; height: 50px; justify-content: center; padding: 0; font-size: .6rem; letter-spacing: -.01em; gap: 3px; min-width: 0; }
  .kda-rail button svg { width: 22px; height: 22px; }
  .kda-rail button[data-open="price"] { margin-top: 0; }
  .kda-panel, .kda--panel .kda-panel, .kda--wide .kda-panel { position: absolute; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); width: auto; max-height: 62%; z-index: 15; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px -20px rgba(16,34,47,.45); transform: translateY(105%); transition: transform .22s ease; overflow-y: auto; }
  .kda--panel .kda-panel { transform: none; }
  .kda--wide .kda-panel { max-height: 80%; }
  .cd--app .cd__main { position: relative; }
  .kda-sec__head { padding-top: 16px; }
  .kda-sec__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line); }
  .cd--app .cd__hint { display: none; }
  .cd--app .cd__views { top: 8px; }
  .cd--app .cd__views button { padding: 8px 12px; font-size: .8rem; }
  .cd--app .cd__alt { inset: 56px 6px 6px; }
  .cd--app .cd__sel { left: 8px; right: 64px; bottom: 10px; transform: none; max-width: none; padding: 8px 10px; gap: 6px; font-size: .8rem; }
  .cd--app .cd__seldist { display: none; }
  .kda-zoom { right: 8px; bottom: 10px; }
  .kda-hello__tpls { grid-template-columns: repeat(2, 1fr); }
  .kda-hello { align-items: start; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { .kda-panel { transition: none; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- our products ---------- */
.kda-pb__cats { display: flex; gap: 6px; margin: 0 -16px 10px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.kda-pb__cats::-webkit-scrollbar { display: none; }
.kda-pb__cats button { flex: 0 0 auto; white-space: nowrap; }
.kda-pb__cats button, .kda-pb__w button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font: 700 .78rem var(--font-body); color: var(--ink-soft); cursor: pointer; min-height: 36px; }
.kda-pb__cats button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.kda-pb__w { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.kda-pb__w button { padding: 6px 10px; min-height: 32px; }
.kda-pb__w button.is-on { background: var(--sky); border-color: var(--blue); color: var(--blue); }
.kda-pb__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kda-pc { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 8px; background: #fff; min-width: 0; }
.kda-pc__img { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.kda-pc__img img { width: 100%; height: 100%; object-fit: contain; }
.kda-pc__img i { position: absolute; left: 6px; top: 6px; font: 800 .68rem var(--font-body); font-style: normal; background: var(--navy); color: #fff; padding: 3px 7px; border-radius: 6px; }
.kda-pc small { font-size: .68rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.kda-pc__t { font-size: .78rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.kda-pc__row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.kda-pc__row b { font: 800 .95rem var(--font-display); }
.kda-pc__row em { font-style: normal; font-size: .66rem; color: var(--ember-dark); font-weight: 700; }
.kda-pc__go { margin-top: auto; border: 0; background: var(--blue); color: #fff; border-radius: 9px; padding: 9px 6px; font: 700 .78rem var(--font-body); cursor: pointer; min-height: 38px; }
.kda-pc__go:hover { background: var(--blue-700, #2d5373); }
.kda-pc__qty { margin-top: auto; display: flex; align-items: center; justify-content: space-between; background: var(--sky); border-radius: 9px; min-height: 38px; }
.kda-pc__qty button { width: 36px; height: 38px; border: 0; background: none; font: 800 1.1rem var(--font-body); color: var(--blue); cursor: pointer; }
.kda-pc__qty span { font-size: .74rem; font-weight: 700; color: var(--blue); }
.kda-generic { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.kda-generic summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink-soft); padding: 6px 0; }
.kda-generic .cd__grp { margin-top: 10px; }
.kda-toast { position: absolute; left: 50%; top: 76px; transform: translate(-50%, -12px); z-index: 30; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .86rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(92vw, 440px); text-align: center; }
.kda-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.kda-toast .kda-link { color: #ffcf96; }

/* products in the plan list and the selection card */
.cd__prods ul { list-style: none; padding: 0; }
.cd__prods li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "img t t" "img q p"; gap: 2px 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.cd__prods li img { grid-area: img; width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line-soft); }
.cd__prods li a { grid-area: t; font-size: .78rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd__prods li b { grid-area: p; font-size: .82rem; }
.cd__pq { grid-area: q; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--ink-soft); }
.cd__pq button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; font-weight: 800; }
.cd__ptot { display: flex; justify-content: space-between; margin: 10px 0; font-size: .9rem; }
.cd__selprod { display: inline-flex; align-items: center; gap: 8px; max-width: 320px; text-decoration: none; color: var(--ink); background: var(--ground); border-radius: 10px; padding: 4px 10px 4px 4px; }
.cd__selprod img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 7px; }
.cd__selprod span { font-size: .74rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd__selprod b { font-size: .8rem; white-space: nowrap; }
@media (max-width: 899px) { .cd__selprod span { display: none; } .kda-toast { top: 62px; } }

/* chosen cabinet line on top of the Cabinets panel */
.cd--app .cq--browse { border: 0; padding: 0; box-shadow: none; background: none; }
.cq__now { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ground); border-radius: 12px; margin-bottom: 12px; }
.cq__now > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cq__now small { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.cq__now b { font: 800 .95rem var(--font-display); }
.cq__now em { font-style: normal; font-size: .74rem; color: var(--ink-soft); }
.cq__chip { width: 40px; height: 48px; border-radius: 6px; background: var(--c); flex: 0 0 auto; box-shadow: inset 0 0 0 4px var(--c), inset 0 0 0 5px rgba(0,0,0,.14), inset 0 0 0 1px rgba(0,0,0,.12); }
.cd--app .cq--browse .cq__browse { margin: 0; padding: 0; border: 0; }
.cd--app .cq--browse .cq__browse-head h3 { display: none; }
.cd--app .cq--browse .cq__skus { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
.cd--app .cq--browse .cq__tabs { gap: 5px; }
.cd--app .cq--browse .cq__tabs button { min-height: 34px; }
.k3p__line { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin: 0 0 10px; }
.k3p__line span { width: 22px; height: 22px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* store header only hosts the cart; the cart button lives in the top bar */
.kda-sfhost { display: none !important; }
.kda-cart { position: relative; color: #fff; background: transparent; border: 0; }
.kda-cart svg { width: 22px; height: 22px; }
.kda-cart .sf-cart-btn__count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ember); color: var(--navy); font: 800 .68rem/17px var(--font-body); text-align: center; padding: 0 4px; }
.kda-top .kda-cart:hover { background: rgba(255,255,255,.1); }
@media (max-width: 899px) {
  .cd--app .k3__bar, .cd--app .k3__actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cd--app .k3__bar::-webkit-scrollbar, .cd--app .k3__actions::-webkit-scrollbar { display: none; }
  .cd--app .k3__bar .cd__mini, .cd--app .k3__actions .cd__mini { flex: 0 0 auto; }
  .cd--app .k3__tip { display: none; }
}
.kda-pb__cats button small { font-weight: 600; opacity: .6; margin-left: 2px; }
/* studio backdrop behind the transparent 3D render */
.k3__gl { background: radial-gradient(ellipse at 50% 42%, #fbfaf8 0%, #ece9e3 62%, #e1ddd6 100%) !important; }

.kda-present { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; border-radius: 12px; font: 700 .86rem var(--font-body); cursor: pointer; }
.kda-present svg { width: 20px; height: 20px; }
.kda-present:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.kda-present:disabled { opacity: .6; cursor: progress; }
@media (max-width: 899px) { .kda-present { padding: 0 9px; min-height: 40px; } .kda-present span { display: none; } }

/* ---------- premium finish ---------- */
.kda-top { background: linear-gradient(180deg, #14303f 0%, #0f212d 100%); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 6px 18px -12px rgba(0,0,0,.6); position: relative; z-index: 12; }
.kda-brand b { letter-spacing: -.005em; }
.kda-brand small { letter-spacing: .04em; }
.kda-rail { background: #fbfaf8; }
.kda-rail button { position: relative; transition: background .15s, color .15s; }
.kda-rail button.is-on::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.kda-rail button[data-open="price"].is-on::before { background: var(--ember); }
.kda-panel { box-shadow: 8px 0 24px -20px rgba(16,34,47,.45); position: relative; z-index: 2; }
.kda-sec__head h2 { font-size: 1.2rem; letter-spacing: -.01em; }
.cd--app .cd__views { background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(22,33,44,.1); }
.cd--app .cd__mini { border-radius: 10px; min-height: 36px; padding: 0 13px; font-weight: 700; border-color: rgba(22,33,44,.14); background: #fff; transition: border-color .15s, color .15s, box-shadow .15s; }
.cd--app .cd__mini:hover { box-shadow: 0 4px 12px -8px rgba(16,34,47,.5); }
.cd--app .k3__bar, .cd--app .k3__actions { gap: 6px; }
.kda-pc { transition: transform .15s, box-shadow .15s, border-color .15s; }
.kda-pc:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(16,34,47,.45); border-color: var(--line); }
.cd--app .cq__sku { transition: transform .15s, box-shadow .15s; }
.cd--app .cq__sku:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(16,34,47,.45); }
.kda-zoom { backdrop-filter: blur(8px); }
.kda-pill { box-shadow: 0 6px 16px -8px rgba(213,133,46,.7); }

/* ---------- feel: drag ghost, drop target, pick card, help, skeletons, motion ---------- */
.kda-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(16,34,47,.55); border: 2px solid transparent; max-width: 280px; transition: border-color .12s, box-shadow .12s; }
.kda-ghost img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.kda-ghost b { display: block; font-size: .84rem; line-height: 1.25; }
.kda-ghost small { display: block; font-size: .72rem; color: var(--ink-soft); }
.kda-ghost.is-over { border-color: var(--blue); box-shadow: 0 18px 40px -14px rgba(58,102,140,.6); }
.kda-ghost.is-over small::before { content: "Release to place \2022  "; color: var(--blue); font-weight: 700; }
.kda--dragging, .kda--dragging * { cursor: grabbing !important; user-select: none; }
.cd--app .cd__stage.kda-drop::after { content: ""; position: absolute; inset: 8px; border: 2px dashed var(--blue); border-radius: 14px; pointer-events: none; background: rgba(58,102,140,.04); }
.cd--app .kda-pc, .cd--app .cd__chip[data-cat] { cursor: grab; }
.kda-pick { position: absolute; z-index: 9; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; width: 290px; box-shadow: 0 18px 40px -16px rgba(16,34,47,.55); animation: kda-pop .16s ease-out; }
.kda-pick[hidden] { display: none; }
.kda-pick img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; flex: 0 0 auto; }
.kda-pick b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; line-height: 1.3; }
.kda-pick small { display: block; color: var(--ink-soft); font-size: .74rem; margin: 2px 0 4px; }
.kda-pick span { font-size: .8rem; }
.kda-help { position: absolute; inset: 0; z-index: 60; background: rgba(16,34,47,.42); display: grid; place-items: center; padding: 20px; animation: kda-fade .15s ease-out; }
.kda-help[hidden] { display: none; }
.kda-help__card { background: #fff; border-radius: 18px; width: min(720px, 100%); max-height: 90%; overflow: auto; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); animation: kda-pop .18s ease-out; }
.kda-help__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; padding: 16px 20px 22px; }
.kda-help__grid div { display: flex; gap: 12px; align-items: baseline; font-size: .86rem; }
.kda-help__grid kbd { flex: 0 0 150px; font: 700 .76rem var(--font-body); background: var(--ground); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: 4px 8px; text-align: center; }
.kda-helpbtn { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; border-radius: 12px; padding: 10px 2px; font: 700 .7rem/1.1 var(--font-body); color: var(--ink-soft); cursor: pointer; }
.kda-helpbtn svg { width: 22px; height: 22px; }
.kda-helpbtn:hover { background: var(--ground); color: var(--ink); }
.kda-pc--skel { pointer-events: none; }
.kda-pc--skel i, .kda-pc--skel b, .kda-pc--skel em { display: block; border-radius: 8px; background: linear-gradient(90deg, #efede8 0%, #f8f7f4 50%, #efede8 100%); background-size: 200% 100%; animation: kda-shimmer 1.1s linear infinite; }
.kda-pc--skel i { aspect-ratio: 1; }
.kda-pc--skel b { height: 11px; margin-top: 8px; }
.kda-pc--skel b + b { width: 70%; }
.kda-pc--skel em { height: 36px; margin-top: 10px; }
.cd--app .cq__toast { display: none !important; }
.kda-toast .kda-link { margin-left: 6px; }
@keyframes kda-shimmer { to { background-position: -200% 0; } }
@keyframes kda-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes kda-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 900px) {
  .kda-sec:not([hidden]) { animation: kda-fade .18s ease-out; }
}
@media (max-width: 899px) {
  .kda-help__grid { grid-template-columns: 1fr; }
  .kda-help__grid kbd { flex-basis: 120px; }
  .kda-helpbtn { display: none; }
  .kda-pick { width: auto; left: 8px !important; right: 8px; top: auto !important; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .kda-pc--skel i, .kda-pc--skel b, .kda-pc--skel em, .kda-pick, .kda-help__card, .kda-sec { animation: none !important; } }

/* fill a wall */
.kda-fill { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.kda-fill button { min-height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: 700 .82rem var(--font-body); color: var(--ink); cursor: pointer; }
.kda-fill button:hover { border-color: var(--blue); color: var(--blue); }
.kda-check { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.kda-check input { width: 18px; height: 18px; }
/* my designs */
.kda-libbtn { color: #fff; }
.kda-lib__card { width: min(920px, 100%); }
.kda-lib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 16px 20px; }
.kda-lib__new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; border: 2px dashed var(--line); border-radius: 14px; background: var(--ground); color: var(--ink); cursor: pointer; font: inherit; }
.kda-lib__new svg { width: 30px; height: 30px; color: var(--blue); }
.kda-lib__new:hover { border-color: var(--blue); }
.kda-lib__new small { color: var(--ink-soft); }
.kda-lib__item { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.kda-lib__item:hover { box-shadow: 0 14px 30px -18px rgba(16,34,47,.5); transform: translateY(-2px); }
.kda-lib__item.is-cur { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(58,102,140,.2); }
.kda-lib__open { border: 0; padding: 0; background: #f6f5f2; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.kda-lib__open img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kda-lib__blank { display: block; width: 100%; height: 100%; }
.kda-lib__meta { padding: 10px 12px 4px; }
.kda-lib__meta b { display: block; font-size: .92rem; }
.kda-lib__meta small { color: var(--ink-soft); font-size: .74rem; }
.kda-lib__act { display: flex; gap: 4px; padding: 6px 8px 10px; flex-wrap: wrap; }
.kda-lib__act button { border: 0; background: none; color: var(--blue); font: 700 .76rem var(--font-body); padding: 6px; border-radius: 6px; cursor: pointer; }
.kda-lib__act button:hover { background: var(--sky); }
.kda-lib__act button[data-lib-del] { color: #a4372c; }
@media (max-width: 899px) { .kda-lib__grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; } .kda-lib__new { min-height: 150px; } }
/* top bar shrinks gracefully on laptops and tablets */
.kda-top { min-width: 0; }
.kda-top > * { flex-shrink: 0; }
.kda-top__name { flex-shrink: 1; min-width: 90px; }
.kda-top__name input { width: clamp(90px, 16vw, 240px); }
@media (max-width: 1180px) { .kda-saved { display: none; } .kda-brand small { display: none; } }
@media (max-width: 1040px) { .kda-present span { display: none; } .kda-present { padding: 0 10px; } .kda-brand b { font-size: .88rem; } }
@media (min-width: 900px) and (max-width: 960px) { .kda-brand span { display: none; } }

/* overlays cover the whole app, top bar included */
.kda-help { position: fixed; z-index: 80; }
.k3__mood { background: #1c2b36 !important; color: #ffe2b0 !important; border-color: #1c2b36 !important; }
@media (max-width: 899px) { .kda-rail button { font-size: .69rem; letter-spacing: -.02em; } .kda-pc small { font-size: .72rem; } }

/* finish your kitchen */
.kda-finish { margin-bottom: 18px; }
.kda-finish:empty { display: none; }
.kda-finish__head { display: flex; justify-content: space-between; align-items: baseline; }
.kda-finish__head b { font: 800 1rem var(--font-display); }
.kda-finish__head span { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.kda-finish__bar { height: 6px; border-radius: 3px; background: var(--ground); margin: 8px 0 10px; overflow: hidden; }
.kda-finish__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #5b8db5); border-radius: 3px; transition: width .4s ease; }
.kda-finish ul { list-style: none; margin: 0; padding: 0; }
.kda-finish li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.kda-finish li > div { flex: 1; min-width: 0; }
.kda-finish li b { display: block; font-size: .86rem; }
.kda-finish li em { font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: .72rem; }
.kda-finish li small { display: block; font-size: .74rem; color: var(--ink-soft); }
.kda-finish__tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.kda-finish li.is-done .kda-finish__tick { background: var(--ok, #1E7B4D); border-color: var(--ok, #1E7B4D); }
.kda-finish li.is-done b { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.kda-finish li button { border: 0; background: var(--sky); color: var(--blue); font: 700 .78rem var(--font-body); padding: 8px 12px; border-radius: 9px; cursor: pointer; min-height: 34px; }
.kda-finish li button:hover { background: var(--blue); color: #fff; }
.kda-badge { position: absolute; top: 4px; right: 12px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ember); color: var(--navy); font: 800 .66rem/18px var(--font-body); font-style: normal; text-align: center; padding: 0 4px; }
.kda-badge[hidden] { display: none; }
.kda-rail button { position: relative; }
.kda-measure.is-on { background: var(--ember) !important; color: var(--navy) !important; }
.kda-sharebtn { color: #fff; }
@media (max-width: 899px) { .kda-badge { top: 2px; right: 6px; } .kda-sharebtn { display: none; } }

/* right-click menu */
.kda-ctx { position: fixed; z-index: 120; min-width: 230px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 20px 44px -16px rgba(16,34,47,.55), 0 0 0 1px rgba(22,33,44,.06); animation: kda-pop .12s ease-out; }
.kda-ctx[hidden] { display: none; }
.kda-ctx p { margin: 0; padding: 6px 10px 8px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.kda-ctx button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: 600 .86rem var(--font-body); color: var(--ink); cursor: pointer; text-align: left; }
.kda-ctx button:hover, .kda-ctx button:focus-visible { background: var(--sky); color: var(--blue); outline: none; }
.kda-ctx button.is-del { color: #a4372c; }
.kda-ctx button.is-del:hover { background: #fbeceb; }
.kda-ctx kbd { font: 600 .7rem var(--font-body); color: var(--ink-soft); background: var(--ground); border-radius: 5px; padding: 2px 6px; }

/* design it for me */
.kda-dfm__card { width: min(620px, 100%); }
.kda-dfm__form { padding: 14px 20px 20px; display: grid; gap: 14px; }
.kda-dfm__form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.kda-dfm__form legend { font: 800 .78rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; padding: 0; }
.kda-dfm__form label { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.kda-dfm__form input[type=number], .kda-dfm__form select { font: inherit; font-size: 16px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; width: 74px; }
.kda-dfm__form select { width: 100%; }
.kda-dfm__opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; }
.kda-dfm__opts--3 { grid-template-columns: repeat(3, 1fr); }
.kda-dfm__opt { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 4px !important; padding: 12px 6px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; }
.kda-dfm__opt input { position: absolute; opacity: 0; pointer-events: none; }
.kda-dfm__opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,102,140,.15); background: var(--sky); }
.kda-dfm__opt b { font-size: .84rem; }
.kda-dfm__opt small { font-size: .72rem; color: var(--ink-soft); font-weight: 500; }
.kda-dfm__opt .kda-shape { width: 48px; height: 36px; margin: 0; }
.kda-dfm__cta { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px; margin-bottom: 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #10222F, #25475f); color: #fff; text-align: left; cursor: pointer; font: inherit; box-shadow: 0 12px 26px -16px rgba(16,34,47,.8); }
.kda-dfm__cta svg { width: 26px; height: 26px; color: #F5C27E; flex: 0 0 auto; }
.kda-dfm__cta b { display: block; font: 800 1rem var(--font-display); }
.kda-dfm__cta small { color: rgba(255,255,255,.72); font-size: .78rem; }
.kda-dfm__cta:hover { filter: brightness(1.08); }
.kda-hello__dfm { margin: 14px auto 0; display: inline-flex; align-items: center; gap: 8px; border: 0; background: #10222F; color: #fff; font: 700 .9rem var(--font-body); padding: 12px 18px; border-radius: 12px; cursor: pointer; }
.kda-hello__dfm svg { width: 18px; height: 18px; color: #F5C27E; }
/* budget dial */
.kda-dial { margin-bottom: 18px; }
.kda-dial:empty { display: none; }
.kda-dial__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.kda-dial__head b { font: 800 1rem var(--font-display); }
.kda-dial__head span { font-size: .76rem; color: var(--ink-soft); font-weight: 700; }
.kda-dial__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kda-dial__opts button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.kda-dial__opts button:hover { border-color: var(--blue); }
.kda-dial__opts b { font-size: .86rem; }
.kda-dial__opts small { font: 800 .9rem var(--font-display); color: var(--ember-dark); }
@media (max-width: 899px) { .kda-dfm__opts { grid-template-columns: repeat(3, 1fr); } }
/* tour + record */
.k3__tour { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; }
.k3__rec { color: #b3261e !important; }

.kda-drawbtn { color: #fff; }
@media (max-width: 899px) { .kda-drawbtn { display: none; } }

/* first-person walk */
.k3-walk[hidden] { display: none; }
.k3-walk__tip { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 6; margin: 0; background: rgba(16,34,47,.82); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .8rem; white-space: nowrap; backdrop-filter: blur(6px); pointer-events: none; animation: kda-fade .3s ease-out; }
.k3-walk__tip b { color: #F5C27E; margin-right: 6px; }
.k3-walk__pad { position: absolute; left: 16px; bottom: 58px; z-index: 6; display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 46px); gap: 6px; }
.k3-walk__pad button { border: 0; border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 6px 16px -8px rgba(16,34,47,.5); font-size: 1rem; color: var(--ink); cursor: pointer; touch-action: none; user-select: none; }
.k3-walk__pad button:active { background: var(--ember); }
.k3-walk__pad [data-k="w"] { grid-column: 2; grid-row: 1; }
.k3-walk__pad [data-k="a"] { grid-column: 1; grid-row: 2; }
.k3-walk__pad [data-k="s"] { grid-column: 2; grid-row: 2; }
.k3-walk__pad [data-k="d"] { grid-column: 3; grid-row: 2; }
.k3-walk__exit { position: absolute; right: 16px; top: 56px; z-index: 6; border: 0; background: #fff; border-radius: 10px; padding: 8px 14px; font: 700 .82rem var(--font-body); box-shadow: 0 6px 16px -8px rgba(16,34,47,.5); cursor: pointer; }
html.kda-walking .k3__gl { cursor: grab; }
@media (hover: hover) and (pointer: fine) { .k3-walk__pad { opacity: .75; } }
@media (max-width: 899px) { .k3-walk__tip span { display: none; } .k3-walk__tip { top: 10px; } .k3-walk__exit { top: 10px; } }

/* brand stone picker */
.kda-stone__card { width: min(980px, 100%); display: flex; flex-direction: column; max-height: 88%; }
.kda-stone__top { padding: 12px 20px 0; }
.kda-stone__top .kda-pb__cats { margin: 0 0 10px; padding: 0 0 4px; }
.kda-stone__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; padding: 6px 20px 12px; overflow-y: auto; }
.kda-stone__sw { border: 2px solid transparent; background: #fff; border-radius: 12px; padding: 5px; cursor: pointer; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 5px; }
.kda-stone__sw i { display: block; aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s; }
.kda-stone__sw:hover i { transform: scale(1.03); }
.kda-stone__sw b { font-size: .8rem; line-height: 1.25; }
.kda-stone__sw small { font-size: .7rem; color: var(--ink-soft); margin-top: -3px; }
.kda-stone__sw.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,102,140,.15); }
.kda-stone__foot { padding: 0 20px 16px; margin: 0; }
.k3p__brandstone { border: 1px dashed var(--blue); background: var(--sky); color: var(--blue); font: 700 .74rem var(--font-body); border-radius: 999px; padding: 6px 10px; cursor: pointer; margin-right: 4px; }
.k3p__brandstone:hover { background: var(--blue); color: #fff; }
@media (max-width: 899px) { .kda-stone__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 12px 12px; } }

/* 3D edit card */
.kda-pick { display: block; width: 350px; padding: 12px; }
.kda-pick__head { display: flex; gap: 10px; align-items: center; }
.kda-pick__tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 8px; }
.kda-pick__tools button { flex: 1 1 60px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--line-soft); background: #fff; border-radius: 10px; padding: 7px 4px; cursor: pointer; font: 700 .68rem var(--font-body); color: var(--ink); }
.kda-pick__tools button svg { width: 18px; height: 18px; }
.kda-pick__tools button:hover { background: var(--sky); color: var(--blue); border-color: var(--sky-line); }
.kda-pick__tools button.is-del { color: #a4372c; }
.kda-pick__tools button.is-del:hover { background: #fbeceb; }
.kda-pick__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .74rem; color: var(--ink-soft); }
.kda-pick__foot span { flex: 1; }
@media (max-width: 899px) { .kda-pick { width: auto; } .kda-pick__tools button span { font-size: .62rem; } }

/* bath */
.kda-bathcats { display: flex; flex-wrap: wrap; gap: 6px; }
.kda-bathcats button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font: 700 .78rem var(--font-body); color: var(--ink); cursor: pointer; min-height: 36px; }
.kda-bathcats button:hover { border-color: var(--blue); color: var(--blue); }
.kda-shape--primary-bath::before { left: 4px; right: 40%; top: 3px; height: 9px; }
.kda-shape--primary-bath::after { right: 4px; bottom: 3px; width: 26px; height: 18px; background: #bfe0dc; }

/* countertop take-off */
.kda-ctr { margin-bottom: 18px; }
.kda-ctr:empty { display: none; }
.kda-ctr__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.kda-ctr__head b { font: 800 1rem var(--font-display); }
.kda-ctr__head span { font: 800 .9rem var(--font-display); color: var(--ember-dark); }
.kda-ctr__pick { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--ground); border-radius: 12px; margin-bottom: 8px; }
.kda-ctr__pick i { width: 44px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.kda-ctr__pick i.kda-ctr__none { background: repeating-linear-gradient(45deg, #e8e4dc 0 6px, #f4f1ea 6px 12px); }
.kda-ctr__pick > div { flex: 1; min-width: 0; }
.kda-ctr__pick b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kda-ctr__pick small { font-size: .72rem; color: var(--ink-soft); }
.kda-ctr__rows { list-style: none; margin: 0 0 10px; padding: 0; font-size: .82rem; }
.kda-ctr__rows li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.kda-ctr__quote { border-radius: 10px; }

/* phone: eight tools now, so the bottom bar scrolls sideways with a hint of the next tab */
@media (max-width: 899px) {
  .kda-rail { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .kda-rail::-webkit-scrollbar { display: none; }
  .kda-rail button { flex: 0 0 68px; scroll-snap-align: start; font-size: .64rem; letter-spacing: 0; }
  .kda-rail button span { white-space: nowrap; }
  .kda-rail::after { content: ""; position: sticky; right: 0; flex: 0 0 18px; margin-left: -18px; background: linear-gradient(90deg, transparent, var(--paper)); pointer-events: none; }
}

/* RK Parisi family of companies in the top bar */
.kda-brand img { background: #fff; padding: 3px; }
.kda-family { display: flex; align-items: center; gap: 14px; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.14); }
.kda-family a { display: inline-flex; opacity: .72; transition: opacity .15s, transform .15s; }
.kda-family a:hover { opacity: 1; transform: scale(1.06); }
.kda-family img { height: 18px; width: auto; filter: brightness(0) invert(1); }
@media (max-width: 1360px) { .kda-family { gap: 10px; padding: 0 10px; } .kda-family img { height: 15px; } }
@media (max-width: 1180px) { .kda-family { display: none; } }

.kda-furnish { margin-top: 10px; border-radius: 10px; }

.cd--app .cq__brands { grid-template-columns: repeat(2, 1fr); }

/* family strip, take two: colour logos on a light plate */
.kda-family { background: #f1f3f5; border-radius: 12px; padding: 5px 12px 5px 10px; gap: 16px; border-left: 0; }
.kda-family span { font: 700 .62rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-right: -4px; }
.kda-family a { opacity: 1; }
.kda-family img { height: 24px; filter: none; }
.kda-brand img { background: #fff; padding: 4px; width: 38px; height: 38px; }
@media (max-width: 1360px) { .kda-family img { height: 20px; } .kda-family { gap: 12px; } }
/* product cards, take two */
.kda-pb__grid { gap: 12px; }
.kda-pc { padding: 0; overflow: hidden; border-radius: 14px; gap: 0; box-shadow: 0 1px 0 rgba(22,33,44,.04); }
.kda-pc__img { border-radius: 0; background: #fff; padding: 10px; }
.kda-pc__img img { object-fit: contain; transition: transform .25s ease; }
.kda-pc:hover .kda-pc__img img { transform: scale(1.04); }
.kda-pc__img i { left: auto; right: 8px; top: 8px; background: rgba(16,34,47,.85); }
.kda-pc__mk { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 0; min-height: 30px; }
.kda-pc__logo { height: 22px; max-width: 70%; width: auto; object-fit: contain; object-position: left; }
.kda-pc__mk small { margin: 0; }
.kda-pc__mk em { font-style: normal; font-size: .62rem; color: var(--ember-dark); font-weight: 700; white-space: nowrap; }
.kda-pc__t { padding: 4px 10px 0; font-size: .8rem; }
.kda-pc__row { padding: 6px 10px 0; }
.kda-pc__row b { font-size: 1rem; }
.kda-pc__go, .kda-pc__qty { margin: 8px 10px 10px; }
.kda-pc__go { border-radius: 10px; }
/* brand tabs with logos (stone picker) */
.kda-pb__cats--logos button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; }
.kda-pb__cats--logos button img { height: 16px; width: auto; max-width: 110px; object-fit: contain; }
.kda-pb__cats--logos button.is-on { background: var(--ink); }
.kda-pb__cats--logos button.is-on img { filter: brightness(0) invert(1); }

/* product browser: category tiles, brand chips, sort */
.kda-find--big { padding: 14px 14px; font-size: 16px; border-radius: 12px; border-color: var(--line); background: #fff; box-shadow: 0 6px 18px -14px rgba(16,34,47,.5); margin-bottom: 14px; }
.kda-pb__gh { font: 800 .78rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 14px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.kda-pb__gh .kda-link { font-size: .78rem; text-transform: none; letter-spacing: 0; }
.kda-pb__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kda-tile { border: 1px solid var(--line-soft); background: #fff; border-radius: 14px; padding: 8px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kda-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(16,34,47,.45); border-color: var(--line); }
.kda-tile i { display: block; aspect-ratio: 4 / 3; border-radius: 9px; background: #fff center / contain no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.kda-tile b { font-size: .8rem; line-height: 1.25; }
.kda-tile small { font-size: .7rem; color: var(--ink-soft); }
.kda-pb__crumb { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--ink-soft); margin-bottom: 4px; }
.kda-pb__crumb .kda-link { text-decoration: none; }
.kda-pb__crumb span::before { content: "/ "; opacity: .5; }
.kda-pb__title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; }
.kda-pb__title h3 { margin: 0; font: 800 1.15rem var(--font-display); }
.kda-pb__title span { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.kda-pb__brands { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px 4px; }
.kda-pb__brands::-webkit-scrollbar { display: none; }
.kda-pb__brands button { flex: 0 0 auto; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 .76rem var(--font-body); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; }
.kda-pb__brands button img { height: 18px; width: auto; max-width: 96px; object-fit: contain; }
.kda-pb__brands button.is-on { border-color: var(--blue); background: var(--sky); color: var(--blue); }
.kda-pb__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.kda-pb__bar .kda-pb__w { margin: 0; flex: 1; }
.kda-pb__sort { font: 700 .76rem var(--font-body); padding: 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); flex: 0 0 auto; }
.kda-pb__rgrp { margin-bottom: 8px; }
.kda-pb__results .kda-pb__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1500px) { .kda--wide .kda-panel { width: 620px; } .kda-pb__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kda-pb__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1900px) { .kda--wide .kda-panel { width: 720px; } }
@media (max-width: 899px) { .kda-pb__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kda-pb__results .kda-pb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kda-srchbtn { display: none; } }
.kda-srchbtn { color: #fff; }

/* quick view */
.kda-pc__img, .kda-pc__t { border: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.kda-pc__img { width: 100%; display: block; }
.kda-pc__t { background: none; display: block; width: 100%; }
.kda-pc__t:hover { color: var(--blue); }
.kda-qv__card { width: min(1040px, 100%); max-height: 92%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); position: relative; overflow: hidden; }
.kda-qv__x { position: absolute; top: 10px; right: 10px; z-index: 3; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.kda-qv__media { background: #fff; padding: 28px 24px 18px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line-soft); min-height: 0; }
.kda-qv__main { flex: 1; min-height: 300px; display: grid; place-items: center; }
.kda-qv__main img { max-width: 100%; max-height: 440px; object-fit: contain; }
.kda-qv__thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kda-qv__thumbs button { width: 56px; height: 56px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; padding: 3px; cursor: pointer; }
.kda-qv__thumbs button.is-on { border-color: var(--ink); }
.kda-qv__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.kda-qv__body { padding: 26px 26px 26px; overflow: auto; min-height: 0; }
.kda-qv__body .kda-pc__mk { padding: 0; min-height: 26px; }
.kda-qv__body .kda-pc__logo { height: 22px; }
.kda-qv__t { margin: 8px 0 6px; font: 800 1.15rem/1.3 var(--font-display); }
.kda-qv__price { display: flex; align-items: baseline; gap: 10px; }
.kda-qv__price b { font-size: 1.45rem; }
.kda-qv__price s { color: var(--ink-soft); }
.kda-qv__price em { font-style: normal; font-size: .72rem; color: var(--ember-dark); font-weight: 700; }
.kda-qv__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.kda-qv__facts span { font-size: .72rem; font-weight: 700; color: var(--ink-soft); background: var(--ground); border-radius: 999px; padding: 4px 10px; }
.kda-qv__vars { display: flex; flex-wrap: wrap; gap: 6px; }
.kda-qv__vars button { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px 10px; font: 700 .76rem var(--font-body); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.kda-qv__vars button small { font-weight: 600; color: var(--ink-soft); }
.kda-qv__vars button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.kda-qv__vars button.is-on small { color: rgba(255,255,255,.75); }
.kda-qv__vars button[data-out] { opacity: .55; }
.kda-qv__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; align-items: center; }
.kda-qv__acts .btn { border-radius: 10px; }
.kda-qv__acts .kda-pc__qty { margin: 0; min-width: 190px; }
.kda-qv__copy { font-size: .84rem; line-height: 1.55; color: var(--ink); max-height: 7.8em; overflow: hidden; position: relative; }
.kda-qv__copy:not(.is-open)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2.4em; background: linear-gradient(transparent, #fff); }
.kda-qv__copy.is-open { max-height: none; }
.kda-qv__copy p { margin: 0 0 .6em; } .kda-qv__copy ul { padding-left: 1.2em; margin: 0 0 .6em; } .kda-qv__copy h1, .kda-qv__copy h2, .kda-qv__copy h3, .kda-qv__copy h4 { font-size: .9rem; margin: .6em 0 .3em; } .kda-qv__copy table { font-size: .78rem; border-collapse: collapse; } .kda-qv__copy td, .kda-qv__copy th { border: 1px solid var(--line-soft); padding: 3px 6px; }
.kda-qv__row { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.kda-qv__mini { border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; padding: 6px; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.kda-qv__mini:hover { border-color: var(--line); box-shadow: 0 8px 18px -14px rgba(16,34,47,.5); }
.kda-qv__mini img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.kda-qv__mini span { font-size: .68rem; line-height: 1.3; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kda-qv__mini b { font-size: .76rem; }
@media (max-width: 899px) {
  .kda-qv__card { grid-template-columns: 1fr; overflow: auto; max-height: 94%; }
  .kda-qv__media { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 20px 16px 12px; }
  .kda-qv__main { min-height: 200px; } .kda-qv__main img { max-height: 260px; }
  .kda-qv__body { padding: 18px 16px 24px; overflow: visible; }
}
