/* profile-pager.css — swipeable profile sections:
   1) Collections + My projects   2) Drafts + Collaboration   3) Badges & levels
   Native scroll-snap = smooth, momentum-based swiping on every device. Loaded last. */
#page-profile .profile-swipe { margin: 4px 0 18px; position: relative; }

/* ---- segmented tabs with a sliding thumb ---- */
#page-profile .pq-tabs { --pq-i: 0; background: #f1effb; border: 1px solid #e6e2f7; border-radius: 14px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 12px; padding: 4px; position: relative; }
#page-profile .pq-thumb { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(70,50,170,.16); height: calc(100% - 8px); left: 4px; position: absolute; top: 4px; transform: translateX(calc(var(--pq-i) * 100%)); transition: transform .38s cubic-bezier(.22,1,.36,1); width: calc((100% - 8px) / 3); }
#page-profile .pq-tab { background: transparent; border: 0; border-radius: 10px; color: #7b8398; cursor: pointer; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; padding: 9px 4px; position: relative; transition: color .25s; z-index: 1; -webkit-tap-highlight-color: transparent; }
#page-profile .pq-tab.is-active { color: #4b34c9; }

/* ---- the pager ---- */
#page-profile .profile-quicklinks.pq-track { -webkit-overflow-scrolling: touch; display: flex; gap: 0; margin: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 0; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
#page-profile .pq-track::-webkit-scrollbar { display: none; }
#page-profile .pq-page { box-sizing: border-box; display: grid; flex: 0 0 100%; gap: 10px; grid-auto-rows: 1fr; min-width: 100%; padding: 2px; scroll-snap-align: start; scroll-snap-stop: always; }
#page-profile .pq-page > * { opacity: .55; transform: scale(.975); transition: opacity .35s ease, transform .4s cubic-bezier(.22,1,.36,1); }
#page-profile .pq-page.is-current > * { opacity: 1; transform: none; }
#page-profile .pq-page.is-current > *:nth-child(2) { transition-delay: .05s; }

/* ---- tiles ---- */
#page-profile .pq-tile { align-items: center; background: linear-gradient(180deg, #fff, #f7f6fd); border: 1px solid #e7e4f7; border-radius: 18px; box-shadow: 0 1px 2px rgba(28,35,61,.04), 0 10px 24px -14px rgba(80,60,200,.25); color: inherit; cursor: pointer; display: flex; gap: 14px; min-height: 68px; padding: 14px 16px; text-align: left; width: 100%; -webkit-tap-highlight-color: transparent; }
#page-profile .pq-tile:active { transform: scale(.985); }
#page-profile .pq-icon { align-items: center; border-radius: 14px; display: flex; flex: 0 0 auto; height: 44px; justify-content: center; position: relative; width: 44px; }
#page-profile .pq-icon svg { fill: none; height: 21px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 21px; }
#page-profile .pq-purple .pq-icon { background: rgba(118,73,247,.13); color: #7649f7; }
#page-profile .pq-blue .pq-icon { background: rgba(44,107,214,.13); color: #2c6bd6; }
#page-profile .pq-teal .pq-icon { background: rgba(13,148,136,.13); color: #0d9488; }
#page-profile .pq-indigo .pq-icon { background: rgba(92,80,230,.14); color: #5c50e6; }
#page-profile .pq-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
#page-profile .pq-copy strong { color: #222839; font-size: 15px; font-weight: 800; letter-spacing: -.015em; }
#page-profile .pq-copy small { color: #8c95a8; font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#page-profile .pq-tile .ql-arrow, #page-profile .pq-hero .ql-arrow { display: block; fill: none; flex: 0 0 auto; height: 16px; stroke: #b6bbca; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; transition: transform .2s, stroke .2s; width: 16px; }
#page-profile .pq-tile:hover .ql-arrow { stroke: #7258dc; transform: translateX(3px); }
#page-profile .pq-icon .collab-quicklink-dot { background: #f43f5e; border: 2px solid #fff; border-radius: 50%; height: 12px; position: absolute; right: -3px; top: -3px; width: 12px; }

/* ---- Badges & levels hero button ---- */
#page-profile .pq-hero { align-items: center; background: linear-gradient(125deg, #6d4cf5 0%, #5b6df0 55%, #3c8cf0 100%); border: 0; border-radius: 22px; box-shadow: 0 18px 36px -16px rgba(91,80,240,.7); color: #fff; cursor: pointer; display: flex; gap: 15px; grid-row: 1 / -1; min-height: 132px; overflow: hidden; padding: 20px 18px; position: relative; text-align: left; width: 100%; -webkit-tap-highlight-color: transparent; }
#page-profile .pq-hero:active { transform: scale(.985); }
#page-profile .pq-hero-glow { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%); inset: 0; pointer-events: none; position: absolute; }
#page-profile .pq-hero-icon { align-items: center; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); border-radius: 18px; display: flex; flex: 0 0 auto; height: 58px; justify-content: center; position: relative; width: 58px; backdrop-filter: blur(6px); }
#page-profile .pq-hero-icon svg { fill: none; height: 28px; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; width: 28px; }
#page-profile .pq-hero-copy { display: grid; flex: 1; gap: 3px; min-width: 0; position: relative; }
#page-profile .pq-hero-copy strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
#page-profile .pq-hero-copy small { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 600; }
#page-profile .pq-hero-go { align-items: center; background: rgba(255,255,255,.2); border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 800; gap: 4px; padding: 8px 12px; position: relative; }
#page-profile .pq-hero-go .ql-arrow { stroke: #fff; height: 14px; width: 14px; }
#page-profile .pq-page.is-current .pq-hero { animation: pq-hero-in .55s cubic-bezier(.22,1,.36,1); }
@keyframes pq-hero-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- dots ---- */
#page-profile .pq-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
#page-profile .pq-dots i { background: #d5d1ea; border-radius: 99px; height: 6px; transition: width .35s cubic-bezier(.22,1,.36,1), background .25s; width: 6px; }
#page-profile .pq-dots i.is-active { background: #6d4cf5; width: 20px; }

/* ---- dark mode ---- */
body[data-theme="dark"] #page-profile .pq-tabs { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
body[data-theme="dark"] #page-profile .pq-thumb { background: #232733; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
body[data-theme="dark"] #page-profile .pq-tab { color: #8b949e; }
body[data-theme="dark"] #page-profile .pq-tab.is-active { color: #c4b5fd; }
body[data-theme="dark"] #page-profile .pq-tile { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035)); border-color: rgba(255,255,255,.1); box-shadow: none; }
body[data-theme="dark"] #page-profile .pq-copy strong { color: #e6edf3; }
body[data-theme="dark"] #page-profile .pq-copy small { color: #8b949e; }
body[data-theme="dark"] #page-profile .pq-tile .ql-arrow { stroke: #6e7681; }
body[data-theme="dark"] #page-profile .pq-tile:hover .ql-arrow { stroke: #a78bfa; }
body[data-theme="dark"] #page-profile .pq-purple .pq-icon { color: #b49cff; }
body[data-theme="dark"] #page-profile .pq-blue .pq-icon { color: #7db0ff; }
body[data-theme="dark"] #page-profile .pq-teal .pq-icon { color: #4fd1c5; }
body[data-theme="dark"] #page-profile .pq-indigo .pq-icon { color: #a9a2ff; }
body[data-theme="dark"] #page-profile .pq-icon .collab-quicklink-dot { border-color: #161b22; }
body[data-theme="dark"] #page-profile .pq-hero { box-shadow: 0 18px 36px -18px rgba(120,100,255,.55); }
body[data-theme="dark"] #page-profile .pq-dots i { background: rgba(255,255,255,.16); }
body[data-theme="dark"] #page-profile .pq-dots i.is-active { background: #a78bfa; }

@media (min-width: 860px) { #page-profile .pq-tile { min-height: 76px; } #page-profile .pq-copy strong { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { #page-profile .pq-track { scroll-behavior: auto; } #page-profile .pq-thumb, #page-profile .pq-page > *, #page-profile .pq-dots i { transition: none; } #page-profile .pq-page.is-current .pq-hero { animation: none; } }


/* ---- 2-page pager (Drafts + My projects  <->  Drafts + Badges), no tab strip ---- */
#page-profile .pq-tabs { display: none; }
#page-profile .pq-page { grid-auto-rows: auto; }
#page-profile .pq-page > * { opacity: 1; transform: none; }
#page-profile .pq-page:not(.is-current) > * { opacity: .55; transform: scale(.975); }

/* ---- Collections, embedded in the profile ---- */
#page-profile .profile-collections { margin: 6px 0 24px; }
#page-profile .profile-collections .collections-bar { margin: 0 0 14px; }
#page-profile .profile-collections .collections-bar-title h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
body[data-theme="dark"] #page-profile .profile-collections .collections-bar-title h2 { color: #eef1f8; }
#page-profile .profile-collections.is-detail .collections-bar { display: none; }
#page-profile .profile-collections .collection-grid { display: flex; flex-direction: column; gap: 18px; }
#page-profile .profile-collections .collections-empty { padding: 28px 16px; }
#page-profile #profileLanguagesPanel:empty { display: none; }
@media (min-width: 860px) {
  #page-profile .profile-collections .collection-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}


/* ---- Collections: one per line, big YouTube-playlist style rows ---- */
#page-profile .profile-collections .collections-bar { margin: 0 0 16px; }
#page-profile .profile-collections .collections-bar-title h2 { font-size: 22px; }
#page-profile .profile-collections .collection-grid { display: flex; flex-direction: column; gap: 26px; }
#page-profile .profile-collections .pl-row { background: transparent; border: 0; border-radius: 20px; box-shadow: none; flex-direction: column; gap: 12px; padding: 0; }
#page-profile .profile-collections .pl-thumb { flex: none; padding-top: 12px; width: 100%; }
#page-profile .profile-collections .pl-stack-2 { top: 0; width: 78%; }
#page-profile .profile-collections .pl-stack-1 { top: 6px; width: 90%; }
#page-profile .profile-collections .pl-cover { border-radius: 16px; box-shadow: 0 16px 34px -18px rgba(30,20,90,.6); }
#page-profile .profile-collections .pl-count { gap: 6px; width: 34%; }
#page-profile .profile-collections .pl-count b { font-size: 24px; letter-spacing: -.02em; }
#page-profile .profile-collections .pl-count svg { height: 26px; width: 26px; }
#page-profile .profile-collections .pl-cover-fallback svg { height: 54px; width: 54px; }
#page-profile .profile-collections .pl-row:active .pl-cover { transform: scale(.985); }
#page-profile .profile-collections .pl-meta { align-self: stretch; padding: 0 4px; }
#page-profile .profile-collections .pl-meta h3 { font-size: 18px; letter-spacing: -.025em; margin-bottom: 4px; }
#page-profile .profile-collections .pl-meta p { font-size: 13px; }
#page-profile .profile-collections .pl-meta small { font-size: 12.5px; }
#page-profile .profile-collections .collections-empty, #page-profile .profile-collections .collection-grid > .collections-empty { padding: 36px 14px; }
body[data-theme="dark"] #page-profile .profile-collections .pl-row { background: transparent; border: 0; }
body[data-theme="dark"] #page-profile .profile-collections .pl-cover { box-shadow: 0 16px 34px -18px rgba(0,0,0,.8); }
@media (min-width: 760px) {
  #page-profile .profile-collections .collection-grid { gap: 14px; }
  #page-profile .profile-collections .pl-row { align-items: center; flex-direction: row; gap: 26px; padding: 14px; transition: background .2s; }
  #page-profile .profile-collections .pl-row:hover { background: rgba(106,92,240,.07); }
  #page-profile .profile-collections .pl-thumb { flex: 0 0 clamp(300px, 36%, 460px); width: auto; }
  #page-profile .profile-collections .pl-meta { align-self: center; }
  #page-profile .profile-collections .pl-meta h3 { font-size: 24px; -webkit-line-clamp: 2; }
  #page-profile .profile-collections .pl-meta p { font-size: 15px; }
  #page-profile .profile-collections .pl-meta small { font-size: 13.5px; }
}

/* Collections live at the very bottom of the profile; keep them clear of the bottom bar */
#page-profile .profile-collections { margin: 18px 0 0; padding-bottom: 110px; }


/* ===================================================================== */
/* Languages — compact one-strip summary (no boxes)                       */
/* ===================================================================== */
#page-profile #profileLanguagesPanel { margin: 4px 0 14px; padding: 0 2px; }
.lang-compact { background: none; color: inherit; margin: 0; padding: 0; width: auto; }
.lang-compact-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.lang-compact .lang-eyebrow { color: #7b8398; font: 700 10.5px "DM Mono", monospace; letter-spacing: .16em; margin: 0; }
.lang-stack { clip-path: inset(0 100% 0 0 round 99px); display: flex; gap: 2px; height: 8px; margin-bottom: 10px; overflow: hidden; transition: clip-path 1s cubic-bezier(.22,1,.36,1) .1s; }
.lang-stack i { border-radius: 99px; min-width: 4px; }
.lang-compact.is-in .lang-stack { clip-path: inset(0 0 0 0 round 99px); }
.lang-list { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.lang-item { align-items: center; color: #222839; display: inline-flex; font-size: 12px; gap: 6px; }
.lang-item b { font-weight: 700; }
.lang-item em { color: #8c95a8; font-style: normal; font-weight: 600; }
.lang-dot { background: var(--c); border-radius: 50%; flex: 0 0 auto; height: 8px; width: 8px; }
.lang-item.is-extra { display: none; }
.lang-compact.is-expanded .lang-item.is-extra { display: inline-flex; }
.lang-more { background: none; border: 0; color: #6d4cf5; cursor: pointer; font-size: 12px; font-weight: 800; padding: 2px 0; }
.lang-skel { animation: lang-shimmer 1.3s linear infinite; background: linear-gradient(90deg, rgba(120,120,160,.1) 25%, rgba(120,120,160,.22) 50%, rgba(120,120,160,.1) 75%); background-size: 200% 100%; border-radius: 99px; }
.lang-skel-bar { height: 8px; }
@keyframes lang-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
body[data-theme="dark"] .lang-item { color: #e6edf3; }
body[data-theme="dark"] .lang-item em, body[data-theme="dark"] .lang-compact .lang-eyebrow { color: #8b949e; }
body[data-theme="dark"] .lang-more { color: #a78bfa; }
@media (prefers-reduced-motion: reduce) { .lang-stack { transition: none; } .lang-skel { animation: none; } }

/* ===================================================================== */
/* One collection = one full-screen page                                  */
/* ===================================================================== */
#page-collection-view { padding: 0 !important; }
.cv-topbar { -webkit-backdrop-filter: blur(16px); align-items: center; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--page, #f7f8fc) 88%, transparent); border-bottom: 1px solid rgba(120,120,160,.18); box-sizing: border-box; display: flex; gap: 12px; margin-left: calc(50% - 50vw); padding: 10px clamp(12px, 3vw, 40px); position: sticky; top: var(--kc-top-inset, 0px); width: 100vw; z-index: 20; }
.cv-back { align-items: center; background: rgba(120,120,160,.14); border-radius: 50%; color: inherit; display: inline-flex; flex: 0 0 auto; height: 40px; justify-content: center; width: 40px; }
.cv-back svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; width: 20px; }
.cv-topbar-title { min-width: 0; }
.cv-topbar-title p { color: #7258dc; font: 700 10px "DM Mono", monospace; letter-spacing: .16em; margin: 0 0 2px; }
.cv-topbar-title h1 { color: #1c2238; font-size: 16px; letter-spacing: -.02em; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-theme="dark"] .cv-topbar-title h1 { color: #eef1f8; }
body[data-theme="dark"] .cv-topbar-title p { color: #a78bfa; }
.cv-hero { box-sizing: border-box; color: #fff; isolation: isolate; margin-left: calc(50% - 50vw); overflow: hidden; padding: clamp(22px, 4vw, 48px) clamp(16px, 5vw, 64px) clamp(24px, 4vw, 44px); position: relative; width: 100vw; }
.cv-hero-bg { background-position: center; background-size: cover; filter: blur(30px) saturate(1.3); inset: -40px; position: absolute; transform: scale(1.1); z-index: -2; }
.cv-hero-shade { background: linear-gradient(180deg, rgba(12,10,36,.35), rgba(12,10,36,.82)); inset: 0; position: absolute; z-index: -1; }
.cv-hero-inner { align-items: flex-start; display: flex; flex-direction: column; gap: 20px; margin: 0 auto; max-width: 1200px; }
.cv-cover { aspect-ratio: 16 / 9; background: #1b1f33; border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); overflow: hidden; position: relative; width: 100%; }
.cv-cover .pl-cover-image { height: 100%; object-fit: cover; width: 100%; }
.cv-cover .pl-cover-fallback { height: 100%; width: 100%; }
.cv-cover .pl-cover-fallback svg { height: 64px; width: 64px; }
.cv-hero-copy { min-width: 0; }
.cv-eyebrow { color: #c4b5fd; font: 700 11px "DM Mono", monospace; letter-spacing: .18em; margin: 0 0 8px; }
.cv-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 54px); letter-spacing: -.04em; line-height: 1.04; margin: 0; overflow-wrap: anywhere; }
.cv-sub { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.cv-content { box-sizing: border-box; margin: 0 auto; max-width: 1200px; padding: 26px clamp(8px, 3vw, 36px) 20px; }
.cv-section { margin-bottom: 34px; }
.cv-section-head { align-items: center; display: flex; gap: 10px; margin-bottom: 14px; }
.cv-section-head h2 { color: #1c2238; font-size: 20px; letter-spacing: -.03em; margin: 0; }
.cv-section-head span { background: rgba(106,92,240,.12); border-radius: 99px; color: #6a5cf0; font-size: 12px; font-weight: 800; padding: 3px 10px; }
body[data-theme="dark"] .cv-section-head h2 { color: #eef1f8; }
body[data-theme="dark"] .cv-section-head span { color: #b9a9ff; }
.cv-projects { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.cv-projects > * { margin: 0; }
.cv-content .collection-cuts-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cv-chats { border-top: 0; margin-top: 0; padding-top: 0; }
@media (min-width: 760px) {
  .cv-hero-inner { align-items: flex-end; flex-direction: row; gap: 36px; }
  .cv-cover { flex: 0 0 min(46%, 520px); width: auto; }
  .cv-hero-copy { padding-bottom: 6px; }
}

/* ---- Settings tile (2nd swipe page) ---- */
#page-profile .pq-slate .pq-icon { background: rgba(100,116,139,.14); color: #475569; }
body[data-theme="dark"] #page-profile .pq-slate .pq-icon { color: #b6c0d0; }

/* ---- Profile header: name + bio right beside the picture ---- */
#page-profile .profile-avatar-col { flex: 0 0 auto; max-width: none; width: auto; }
#page-profile .profile-header-row { gap: 12px; }
#page-profile .profile-identity { flex: 1 1 0; padding-top: 50px; }
#page-profile .profile-identity .profile-bio { margin-top: 4px; }
/* Badges: one compact line under the picture - pinned badge first, Creator level to its right */
#page-profile .profile-header-pro > .dev-level-line,
#page-user-profile .profile-header-pro > .dev-level-line { align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; margin: 10px 0 0; overflow: hidden; padding: 0 16px; }
#page-profile .profile-header-pro > .dev-level-line:empty,
#page-user-profile .profile-header-pro > .dev-level-line:empty { display: none; }
#page-profile .profile-header-pro > .dev-level-line > *,
#page-user-profile .profile-header-pro > .dev-level-line > * { flex: 0 0 auto; }
#page-profile .profile-header-pro > .dev-level-line .custom-badge,
#page-user-profile .profile-header-pro > .dev-level-line .custom-badge { flex: 0 1 auto; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#page-profile .profile-header-pro > .dev-level-line .dev-level-chip,
#page-user-profile .profile-header-pro > .dev-level-line .dev-level-chip { font-size: 10px; padding: 5px 16px 5px 8px; }
#page-profile .profile-header-pro > .dev-level-line .bdg-chips,
#page-user-profile .profile-header-pro > .dev-level-line .bdg-chips { padding: 2px 8px 2px 4px; }
@media (min-width: 860px) { #page-profile .profile-header-pro > .dev-level-line , #page-user-profile .profile-header-pro > .dev-level-line { padding: 0 24px; } }

/* ---- Collections: name only ---- */
#page-profile .profile-collections .pl-meta h3 { margin-bottom: 0; }

/* ---- collection page: rename / thumbnail button + saved code posts ---- */
.cv-edit-btn { align-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; display: inline-flex; font: 800 11.5px/1 "Manrope", system-ui, sans-serif; gap: 7px; margin: 10px 0 2px; padding: 9px 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cv-edit-btn svg { fill: none; height: 14px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 14px; }
.cv-snippet-wrap { position: relative; }
.cv-snippet-remove { align-items: center; background: transparent; border: 0; color: #8a93a8; display: inline-flex; font: 700 11px "Manrope", system-ui, sans-serif; gap: 6px; margin: 0 0 10px 16px; padding: 4px 0; }
.cv-snippet-remove span { display: inline; }

/* ---- edit collection bottom sheet ---- */
.kc-ec-layer { align-items: flex-end; background: rgba(8,10,18,.55); bottom: 0; display: flex; justify-content: center; left: 0; position: fixed; right: 0; top: 0; z-index: 4000; }
.kc-ec-sheet { background: var(--card, #fff); border-radius: 22px 22px 0 0; box-sizing: border-box; color: var(--ink, #1c2238); display: grid; gap: 12px; max-width: 520px; padding: 10px 18px calc(env(safe-area-inset-bottom, 0px) + 18px); width: 100%; }
body[data-theme="dark"] .kc-ec-sheet { background: #161b22; color: #e6edf3; }
.kc-ec-grab { background: rgba(120,120,160,.35); border-radius: 4px; height: 4px; justify-self: center; width: 40px; }
.kc-ec-sheet h2 { font-size: 17px; margin: 4px 0 0; }
.kc-ec-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #6a5cf0, #3b2fb8); border-radius: 16px; color: #fff; overflow: hidden; position: relative; }
.kc-ec-thumb img { height: 100%; object-fit: cover; width: 100%; }
.kc-ec-thumb > span { align-items: center; display: flex; height: 100%; justify-content: center; }
.kc-ec-thumb > span svg { fill: none; height: 54px; stroke: currentColor; stroke-width: 1.6; width: 54px; }
.kc-ec-pick { align-items: center; background: rgba(10,12,24,.66); border: 0; border-radius: 999px; bottom: 10px; color: #fff; display: inline-flex; font: 800 12px/1 "Manrope", system-ui, sans-serif; gap: 7px; padding: 10px 14px; position: absolute; right: 10px; }
.kc-ec-pick svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 16px; }
.kc-ec-link { background: transparent; border: 0; color: #e0455f; font: 700 12px "Manrope", system-ui, sans-serif; justify-self: start; padding: 0; }
.kc-ec-link.is-hidden { display: none; }
.kc-ec-field { display: grid; gap: 6px; }
.kc-ec-field span { font: 800 12px "Manrope", system-ui, sans-serif; }
.kc-ec-field input { background: transparent; border: 1px solid rgba(120,120,160,.4); border-radius: 12px; color: inherit; font: 600 16px "Manrope", system-ui, sans-serif; padding: 12px 13px; width: 100%; box-sizing: border-box; }
.kc-ec-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 4px; }
.kc-ec-cancel, .kc-ec-save { border: 0; border-radius: 13px; font: 800 14px "Manrope", system-ui, sans-serif; padding: 14px; }
.kc-ec-cancel { background: rgba(120,120,160,.16); color: inherit; }
.kc-ec-save { background: linear-gradient(135deg, #6a5cf0, #8b6cff); color: #fff; }
.kc-ec-save:disabled { opacity: .7; }
