/* Kanvas Magic — layout fixes and mobile polish layered on the original page styles. */

/* Cart: keep the photo inside its column so it never covers the title. */
.cart-line > img, .cart-line > .km-cart-img { width: 100%; max-width: 110px; height: 90px; object-fit: contain; border-radius: 8px; display: block; background: #f1ece3; }
.cart-line > div:nth-child(2) { min-width: 0; }
.cart-line h3 { overflow-wrap: anywhere; margin-top: 0; }

/* Painting cards: title, price and details stacked (no squeezed side-by-side text). */
.km-flex .work-meta { padding: 14px 16px 16px; }
.km-flex .work-meta strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.km-flex .work-meta > span { float: none; display: block; margin: 6px 0 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.km-flex .work-meta > span .tag { display: inline-block; width: auto; margin-left: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600; }
.km-flex .work-meta p { margin: 4px 0 0; line-height: 1.45; font-size: 13.5px; }
.work-card { overflow: hidden; }

/* Artwork page: room between the label and the picture. */
#artwork > .eyebrow { margin-bottom: 14px; }
details.callout { padding-top: 16px; padding-bottom: 16px; }
details.callout > p { margin: 10px 0 0; }

/* Filters: wrap nicely. */
.km-filters select, .km-filters input { max-width: 100%; }

/* Mobile menu (shown on tablets and phones). */
.km-menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.km-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card, #fffdf8); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); z-index: 60; padding: 8px 18px 14px; }
.km-menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.km-menu a:last-child { border-bottom: 0; }
.km-menu.open { display: block; }
header.topbar, .topbar { position: relative; }

@media (max-width: 850px) {
  .km-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav a { display: none !important; }
}
@media (max-width: 480px) {
  .km-filters { gap: 8px !important; }
  .km-filters select { flex: 1 1 calc(50% - 4px); min-width: 0; font-size: 14px; padding: 9px 10px !important; }
  .km-filters > div { flex: 1 1 100%; }
  .km-filters > div input { flex: 1 1 auto; min-width: 0 !important; }
  .cart-line > img, .cart-line > .km-cart-img { max-width: 76px; height: 70px; }
  .profile-intro h1 { font-size: 34px; }
  #checkout h1, #orders h1 { font-size: 40px; }
}

/* Artist profile tabs scroll sideways on small screens instead of being cut off. */
.tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.tag { white-space: nowrap; }

/* Failed payment on My Orders */
.km-pay-failed { border-left: 4px solid #b4442c; background: #fbf0ec; }
.tag.km-tag-bad { background: #b4442c; color: #fff; }

/* My Orders: status under the details + progress tracker */
.km-order-status { margin: 10px 0 0; font-size: 14px; }
.km-order-status .tag { margin-left: 4px; }
.km-track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 16px 0 6px; padding: 0; }
.km-track li { position: relative; text-align: center; font-size: 12.5px; color: var(--muted, #8a8579); padding-top: 22px; }
.km-track li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line, #e2ddd2); }
.km-track li:first-child::before { display: none; }
.km-track-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line, #d9d3c6); z-index: 1; box-sizing: border-box; }
.km-track li.done .km-track-dot { background: #263d30; border-color: #263d30; }
.km-track li.done::before, .km-track li.current::before { background: #263d30; }
.km-track li.current .km-track-dot { border-color: #bd674a; background: #fff; box-shadow: 0 0 0 4px rgba(189,103,74,.18); }
.km-track li.done, .km-track li.current { color: #263d30; }
.km-track li.current .km-track-label { font-weight: 600; color: #bd674a; }
.km-track-label { display: block; line-height: 1.25; padding: 0 2px; }
.km-track-date { display: block; font-size: 11px; color: var(--muted, #8a8579); margin-top: 2px; }
.km-next { margin: 10px 0 0; padding: 10px 12px; background: #f6f2ea; border-radius: 8px; }
@media (max-width: 520px) {
  .km-track li { font-size: 11px; }
  .km-track-date { font-size: 10px; }
}

/* Artist photos: real photo or a neutral monogram (no stock faces) */
.km-artist-photo { position: relative; overflow: hidden; background: #e9e3d7; }
.km-artist-photo .km-artist-img, .km-profile-photo .km-artist-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.km-monogram { display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #263d30, #4c5b43 55%, #bd674a); color: #f8f3ea; font-family: "Playfair Display", Georgia, serif; font-size: 44px; letter-spacing: 1px; }
.km-profile-photo { overflow: hidden; background: none; }
.km-profile-photo .km-monogram { width: 100%; height: 100%; font-size: 84px; border-radius: 8px; }
.km-profile-photo img.km-artist-img { border-radius: 8px; }
.km-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.km-avatar.km-monogram { font-size: 22px; }
.km-avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; }
.km-avatar-lg.km-monogram { font-size: 38px; }
.km-photo-field { margin: 0 0 18px; }
.km-photo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.km-studio-avatar { flex: none; margin-right: 14px; }


/* ==========================================================================
   Design pass (Oct 2026): one type scale, consistent spacing, roomier cards.
   ========================================================================== */
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p { line-height: 1.65; }
.page { padding: 40px 0 88px; }

/* Type scale */
h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -1px; margin: 12px 0 14px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 66px); letter-spacing: -1.4px; }
h2 { font-size: clamp(24px, 2.5vw, 31px); line-height: 1.2; margin-bottom: 10px; }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.eyebrow { font-size: 12px; letter-spacing: 1.6px; }
.small { font-size: 13.5px; line-height: 1.55; }
.page > p.muted, .page > div > p.muted:first-of-type { font-size: 17px; max-width: 720px; margin-bottom: 24px; }
.muted { color: #5f6258; }

/* Top bar */
.topbar { height: 78px; }
.nav { gap: 26px; font-size: 14.5px; }
.pill { font-size: 14px; padding: 12px 20px; line-height: 1.2; }
.tag { font-size: 12px; padding: 5px 10px; }
.km-nav-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--ink); font: inherit; font-size: 14.5px; }
.km-nav-cart:hover { color: var(--terracotta); }
.km-pill-short { display: none; }
.km-nav-cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Home */
.hero-copy p { font-size: 17.5px; line-height: 1.7; max-width: 470px; }
.promo-copy { padding: 30px; }
.promo-copy h3 { font-size: 24px; }
.promo-copy p { font-size: 15.5px; line-height: 1.6; margin-bottom: 18px; }
.section-head { margin: 8px 0 22px; }
.section-head p { font-size: 15.5px; margin-top: 4px; }
.text-link { font-size: 15px; }
.artist-grid { gap: 22px; }
.artist-info { padding: 16px 18px 18px; }
.artist-info h3 { font-size: 20px; margin-bottom: 4px; }
.artist-info .small { font-size: 14px; }
.for-artists { padding: 34px 38px; }
.for-artists p { font-size: 16px; }
.callout { padding: 28px 32px; gap: 24px; }
.callout h3 { font-size: 22px; }
.callout p { font-size: 15.5px; line-height: 1.6; }

/* Artist photo / monogram */
.km-artist-photo .km-monogram { display: flex; }

/* Profile page */
.profile-intro h1 { font-size: clamp(36px, 4vw, 48px); }
.profile-intro p, .bio-layout p { font-size: 16px; line-height: 1.75; }
.location { font-size: 14.5px; }
.tabs { font-size: 14.5px; gap: 30px; }
.tabs a:first-child { padding-bottom: 16px; }

/* Cards and boxes */
.work-card { border-radius: 14px; }
.work-meta { padding: 16px 18px; }
.work-meta strong { font-size: 16px; }
.work-meta span { font-size: 15px; }
.notice-box { font-size: 15.5px; line-height: 1.65; padding: 20px 22px; }
.cart-actions { gap: 10px; margin-top: 16px; }
.dash-grid { gap: 20px; }
.dash-tile { padding: 26px 26px 24px; min-height: 0; border-radius: 16px; }
.dash-tile h3 { font-size: 22px; margin: 14px 0 6px; }
.dash-tile p { font-size: 14.5px; line-height: 1.55; }
.dash-tile .tile-icon { font-size: 24px; }
.work-grid .work-card:last-child { display: block; }

/* Forms */
label { font-size: 14.5px; font-weight: 500; }
input, select, textarea { font-size: 15.5px; }
.km-filters { gap: 12px !important; margin: 4px 0 28px; }
.km-filters select, .km-filters input { font-size: 15px !important; padding: 11px 16px !important; min-height: 46px; }

/* Classes & Custom Art cards */
.km-offer { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.km-offer .km-offer-title { margin: 0; font-size: 22px; }
.km-offer p { margin: 0; }
.km-offer-by { font-size: 14.5px; color: var(--muted); }
.km-offer-by a strong { color: var(--ink); }
.km-offer-chips { margin: 0; }
.km-offer-time { font-size: 14.5px; line-height: 1.55; color: #45483f; }
.km-offer-price { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 2px !important; }
.km-offer-desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; }
.km-offer-actions { margin-top: auto !important; padding-top: 8px; }

/* Info & legal pages: comfortable reading width and even rhythm */
.km-doc { max-width: 760px; }
.km-doc h1 { margin-bottom: 10px; }
.km-doc-meta { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; }
.km-doc-intro { font-size: 18px; line-height: 1.7; color: #45483f; margin: 0 0 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.km-doc-sec { padding-top: 26px; }
.km-doc-sec h2 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
.km-doc-sec p { font-size: 16px; line-height: 1.75; margin: 0 0 12px; color: #34372f; }
.km-doc-sec ul { margin: 0 0 12px; padding-left: 22px; }
.km-doc-sec li { font-size: 16px; line-height: 1.7; margin: 0 0 8px; color: #34372f; padding-left: 4px; }
.km-doc-sec li::marker { color: var(--terracotta); }

/* Footer */
footer { font-size: 13.5px; padding: 30px 0 36px; }
footer a:hover { color: var(--terracotta); }
.km-legal { gap: 18px !important; }

/* Tablet */
@media (max-width: 850px) {
  .page { padding: 28px 0 64px; }
  .topbar { height: 66px; }
  .nav { gap: 10px; }
  .km-nav-cart-label { display: none; }
  .callout, .for-artists { padding: 24px; }
  .dash-tile { padding: 20px; }
}
/* Phone */
@media (max-width: 600px) {
  .promo { grid-template-columns: 1fr; }
  .promo-img { height: 150px; order: -1; }
  .promo-copy { padding: 22px; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .nav .pill { white-space: nowrap; padding: 9px 13px; font-size: 12.5px; }
  .km-pill-long { display: none; }
  .km-pill-short { display: inline; }
  .brand { font-size: 21px !important; }
  .nav { gap: 6px; }
  .km-menu-btn { width: 38px; height: 38px; }
  .km-filters { display: grid !important; grid-template-columns: 1fr 1fr; }
  .km-filters > * { width: 100%; min-width: 0 !important; }
  .km-filters > div, .km-filters > input { grid-column: 1 / -1; }
  footer .wrap > span { float: none !important; display: block; margin-top: 6px; }
  h1 { font-size: 34px; letter-spacing: -.6px; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 24px; }
  .page > p.muted { font-size: 16px; }
  .nav .pill { padding: 10px 14px; font-size: 13px; }
  .brand { font-size: 23px; }
  .artist-info h3 { font-size: 17px; }
  .tags .tag { font-size: 11px; padding: 4px 8px; }
  .dash-tile h3 { font-size: 18px; }
  .dash-tile p { font-size: 13.5px; }
  .km-offer { padding: 20px; }
  .km-offer .km-offer-title { font-size: 20px; }
  .km-filters select, .km-filters input { font-size: 14.5px !important; padding: 10px 12px !important; min-height: 44px; }
  .km-doc-intro { font-size: 17px; }
  .km-doc-sec h2 { font-size: 20px; }
  .km-doc-sec p, .km-doc-sec li { font-size: 15.5px; }
  .work-meta { padding: 12px 12px 14px; }
  .km-flex .work-meta { padding: 10px 12px 12px; }
  .km-flex .work-meta strong { font-size: 14.5px; }
  .km-flex .work-meta > span { font-size: 14px; }
  .km-flex .work-meta p { font-size: 12.5px; }
}

/* Fixes after review */
html { background: var(--paper); }
.km-profile-photo .km-monogram, .km-artist-photo .km-monogram { display: flex !important; align-items: center; justify-content: center; }
.dash-row:has(> .km-studio-avatar) { justify-content: flex-start; }
.dash-row:has(> .km-studio-avatar) > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.km-studio-avatar { margin-right: 18px; }
/* Studio lists: same-size thumbnail, text takes the middle, buttons on the right */
#kmStudioArtworkList .dash-row, #kmStudioGalleryList .dash-row { flex-wrap: nowrap; gap: 14px; align-items: center; }
#kmStudioArtworkList .dash-row > div:not(.km-thumb), #kmStudioGalleryList .dash-row > div:not(.km-thumb) { flex: 1 1 auto; min-width: 0; }
.km-thumb { margin-right: 4px !important; }
.km-thumb img { width: 120px !important; height: 90px !important; max-width: none !important; object-fit: contain; background: #efe9df; padding: 4px; box-sizing: border-box; }
.km-thumb > div { width: 120px !important; height: 90px !important; }
#kmStudioArtworkList .km-edit, #kmStudioGalleryList .km-edit { margin-left: 0 !important; }
@media (max-width: 600px) {
  #kmStudioArtworkList .dash-row, #kmStudioGalleryList .dash-row { flex-wrap: wrap; }
  .km-thumb img, .km-thumb > div { width: 90px !important; height: 70px !important; }
}

/* Class & Custom Art cards: rows line up across cards (title, artist, tags, timings, price…) */
.km-offer-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.km-offer-time { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.55em); }
.km-offer-time.km-empty { display: none; }
.km-offer-chips:empty { display: none; }
.km-offer-desc:empty { display: none; }
.km-offer-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@supports (grid-template-rows: subgrid) {
  .km-offers { align-items: stretch; }
  .km-offers > .km-offer { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 10px; gap: 10px; }
  .km-offers > .km-offer > .km-offer-chips:empty, .km-offers > .km-offer > .km-offer-desc:empty, .km-offers > .km-offer > .km-offer-time.km-empty { display: block; min-height: 0; }
  .km-offers > .km-offer > .km-offer-actions { align-self: end; }
}

/* Home promo cards (Learn / Live with art): narrower photo, text in two lines, buttons aligned at the bottom */
.split-promos { align-items: stretch; }
.split-promos .promo { grid-template-columns: minmax(0, 1fr) 36%; }
.split-promos .promo-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 28px 28px 32px; }
.split-promos .promo-copy h3 { margin: 0 0 8px; }
.split-promos .promo-copy p { margin: 0 0 22px; max-width: none; }
.split-promos .promo-copy .pill { margin-top: auto !important; }
@media (max-width: 1100px) and (min-width: 851px) { .split-promos .promo { grid-template-columns: minmax(0, 1fr) 30%; } }
@media (max-width: 600px) { .split-promos .promo { grid-template-columns: 1fr; } }

/* ===================== Artist set-up (onboarding) ===================== */
.km-ob-bar { margin: 0 0 22px; }
.km-ob-bar h1 { margin: 8px 0 14px; }
.km-ob-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 6px; padding: 0; margin: 0 0 14px; }
.km-ob-steps li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; background: #efe9df; }
.km-ob-steps li.done { color: var(--olive); background: #e3ebe2; }
.km-ob-steps li.current { color: #fff; background: var(--olive); font-weight: 600; }
.km-ob-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); }
.km-ob-steps li.done .km-ob-dot { background: var(--olive); color: #fff; }
.km-ob-steps li.current .km-ob-dot { background: var(--terracotta); color: #fff; }
.km-ob-cheer { font-weight: 600; color: var(--terracotta); margin: 0 0 6px; font-size: 15.5px; }
.km-ob-sub { color: #45483f; font-size: 16px; line-height: 1.65; max-width: 720px; margin: 0; padding: 14px 16px; background: #f1ebe0; border-radius: 12px; }
.km-ob-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.km-ob-later { background: none; border: 0; cursor: pointer; margin-left: auto; color: var(--muted); font: inherit; font-size: 14px; }
.km-ob-added { margin: 14px 0; padding: 18px 20px; border-radius: 14px; background: #e9f1e7; border: 1px solid #c9dcc5; font-size: 16px; }
.km-ob-ok { margin: 14px 0 0; padding: 10px 14px; background: #e9f1e7; border-radius: 10px; color: var(--olive); font-weight: 600; }
.km-ob-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; padding: 18px 22px; border-radius: 14px; background: #fbefe9; border: 1px solid #efcdbf; }
/* Only the current step's card is shown on the Studio page during set-up */
body.km-ob-page-studio #studio > :not([data-ob-show]) { display: none !important; }
body.km-ob #editArtistProfile > .dash-row, body.km-ob #editArtistProfile > p.muted.small { display: none; }
#artistSignup > div > .eyebrow:not(#kmObBar .eyebrow), #artistSignup > div > h1, #artistSignup > div > p.muted:first-of-type { display: none; }
#artistSignup > div { max-width: 760px !important; }
/* Pop-up */
.km-ob-modal { position: fixed; inset: 0; background: rgba(23,35,29,.55); z-index: 200; display: none; align-items: center; justify-content: center; padding: 18px; }
.km-ob-modal-card { background: var(--card); border-radius: 20px; padding: 32px 30px 26px; max-width: 520px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.25); text-align: center; }
.km-ob-modal-card h2 { margin: 6px 0 10px; }
.km-ob-modal-card p { color: #45483f; }
.km-ob-modal-icon { font-size: 40px; line-height: 1; }
.km-ob-modal-list { text-align: left; margin: 14px auto 12px; padding-left: 22px; max-width: 360px; }
.km-ob-modal-list li { margin: 6px 0; }
.km-ob-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.km-ob-done { max-width: 640px; margin: 20px auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 30px; }
.km-ob-summary { list-style: none; padding: 0; margin: 10px 0 20px; font-weight: 600; }
/* Admin: new artists & paintings */
.km-mod-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.km-mod-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #efe9df; flex: none; }
.km-mod-text { flex: 1 1 220px; min-width: 0; }
@media (max-width: 480px) {
  .km-ob-steps li { font-size: 12px; padding: 4px 10px 4px 4px; }
  .km-ob-modal-card { padding: 26px 20px 20px; }
  .km-ob-later { margin-left: 0; }
}
body.km-ob #editArtistProfile > .eyebrow { display: none; }
.km-avatar-lg.km-monogram, .km-avatar.km-monogram { display: flex; align-items: center; justify-content: center; }
.km-dash-head h1 { margin-bottom: 14px; }
.km-dash-head { align-items: center; }

/* Write with AI */
.km-ai { margin: -6px 0 14px; }
.km-ai-btn { background: none; border: 1px dashed var(--terracotta); color: var(--terracotta); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.km-ai-btn:hover { background: #fbefe9; }
.km-ai-panel { margin-top: 10px; padding: 14px; border-radius: 12px; background: #f6efe6; border: 1px solid #ecdccc; }
.km-ai-panel textarea { display: block; width: 100%; padding: 10px; margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.km-ai-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
textarea { font: inherit; line-height: 1.55; }

/* Straighten & crop (painting photos) */
.km-sx { position: fixed; inset: 0; z-index: 300; background: rgba(15,20,16,.78); display: flex; align-items: center; justify-content: center; padding: 12px; }
.km-sx-card { position: relative; background: var(--card); border-radius: 18px; padding: 18px 18px 14px; width: min(1040px, 100%); max-height: 100%; overflow: auto; }
.km-sx-head h2 { margin: 0 0 4px; font-size: 24px; }
.km-sx-head p { margin: 0 0 10px; color: #45483f; }
.km-sx-stage { position: relative; display: flex; justify-content: center; background: #2b2f2a; border-radius: 12px; padding: 10px; touch-action: none; }
.km-sx-canvas { display: block; max-width: 100%; touch-action: none; cursor: crosshair; border-radius: 4px; }
.km-sx-loupe { position: absolute; display: none; width: 130px; height: 130px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.4); pointer-events: none; background: #000; }
.km-sx-tip { margin: 8px 0 4px; }
.km-sx-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.km-sx-actions .terra { margin-left: auto; }
.km-sx-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); }
.km-pick-prev { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .km-sx { padding: 0; }
  .km-sx-card { border-radius: 0; height: 100%; padding: 14px 12px; }
  .km-sx-head h2 { font-size: 20px; }
  .km-sx-actions .pill { padding: 10px 12px; font-size: 13px; }
}

/* Avatar chooser */
.km-av .km-sx-card { max-width: 760px; }
.km-av h2 { margin: 0 0 6px; }
.km-av-h { font-size: 18px; margin: 18px 0 8px; }
.km-av-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.km-av-up { cursor: pointer; }
.km-av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.km-av-fx { grid-template-columns: repeat(auto-fill, minmax(150px, 180px)); }
.km-av-opt { border: 3px solid transparent; background: none; padding: 0; border-radius: 50%; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.km-av-photo { border-radius: 16px; aspect-ratio: auto; text-align: center; font-weight: 600; font-size: 14px; color: var(--ink); }
.km-av-opt img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.km-av-photo img { border-radius: 12px; aspect-ratio: 1; margin-bottom: 4px; }
.km-av-opt.sel { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(189,103,74,.25); }
.km-av-init { display: block; margin-bottom: 4px; }
.km-sx-size { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.km-sx-size input { width: 90px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* ---- carousels: home painting slideshow + "From our students" strip ---- */
/* Home slideshow uses the same card look as the student strip: picture fills the frame, caption on white below */
.art-hero.km-hero-live{background:var(--card);border:1px solid #eee8dc;border-radius:10px;height:460px}
.art-hero.km-hero-live:before,.art-hero.km-hero-live:after{display:none}
.km-slide{position:absolute;inset:0;margin:0;display:flex;flex-direction:column;opacity:0;transition:opacity .9s ease;cursor:pointer;pointer-events:none}
.km-slide.on{opacity:1;pointer-events:auto}
.km-slide img{flex:1;min-height:0;display:block;width:100%;object-fit:cover;background:#efe8dc}
.km-slide figcaption{flex:none;height:64px;padding:12px 16px;background:var(--card);font-size:13px;line-height:1.45;overflow:hidden}
.km-slide figcaption strong,.km-slide figcaption span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-slide figcaption strong{font-weight:700;font-size:14px}
.km-car-btn{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,253,248,.9);color:var(--ink);font-size:22px;line-height:34px;padding:0;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.km-car-btn:hover{background:#fff}
.art-hero .km-car-btn{position:absolute;top:calc(50% - 32px);transform:translateY(-50%);z-index:2;opacity:.85}
.art-hero .km-car-btn.prev{left:12px}.art-hero .km-car-btn.next{right:12px}
.km-dots{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);z-index:2;display:flex;gap:6px;padding:5px 8px;border-radius:999px;background:rgba(0,0,0,.25)}
.km-dots button{width:7px;height:7px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.5);cursor:pointer}
.km-dots button.on{background:#fff;width:18px;border-radius:4px}
.km-strip{margin:34px 0 8px}
.km-strip-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.km-strip-head h2{margin:0 0 4px}.km-strip-head p{margin:0}
.km-strip-nav{display:flex;gap:8px;flex:none}
.km-strip-nav .km-car-btn{background:var(--card);border:1px solid var(--line);box-shadow:none}
.km-strip-view{overflow:hidden}
.km-strip-track{display:flex;gap:20px;transition:transform .6s ease}
.km-strip-item{flex:0 0 calc((100% - 40px)/3);margin:0;background:var(--card);border:1px solid #eee8dc;border-radius:10px;overflow:hidden;cursor:pointer}
.km-strip-img{aspect-ratio:1/1;background:#efe8dc}
.km-strip-img img{width:100%;height:100%;object-fit:cover;display:block}
.km-strip-item figcaption{padding:10px 12px;font-size:13px;line-height:1.4}
@media(max-width:900px){.km-strip-item{flex-basis:calc((100% - 20px)/2)}}
@media(max-width:600px){.km-strip-track{gap:12px}.km-strip-item{flex-basis:calc((100% - 12px)/2)}.km-strip-item figcaption{font-size:12px;padding:8px 10px}.art-hero .km-car-btn{width:30px;height:30px;font-size:18px;line-height:28px}}
@media(max-width:850px){.art-hero.km-hero-live{height:420px}}
@media(max-width:480px){.art-hero.km-hero-live{height:380px}}
@media(prefers-reduced-motion:reduce){.km-slide,.km-strip-track{transition:none}}
