/* Digital business card: the card itself (shared with the public page
   /v/<handle>) and the panel's landing + editor (owner plan 2026-10-06). */

/* ---- The card ---- */
.vc { min-height: 100%; padding: 22px 16px 28px; display: flex; flex-direction: column; gap: 12px; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.vc-top { border-radius: 16px; min-height: 96px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vc-logo { max-width: 70%; max-height: 72px; object-fit: contain; }
.vc-name-logo { font-size: 24px; font-weight: 600; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.vc-body { border-radius: 16px; padding: 18px 16px; text-align: center; }
.vc-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; margin: -2px auto 10px; }
.vc-body h1 { font-size: 22px; font-weight: 600; line-height: 1.2; margin: 0 0 4px; overflow-wrap: anywhere; }
.vc-title { font-size: 15px; margin: 0 0 8px; }
.vc-bio { font-size: 14px; line-height: 1.5; margin: 0; }
.vc-links { display: grid; gap: 8px; }
.vc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }
.vc-btn svg { width: 18px; height: 18px; flex: none; }

/* ---- Panel landing (Tailor "Meet your digital business card") ---- */
/* Spacing pass 2026-10-08 (owner: "cleaner, more premium"). */
.cl-hero { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 48px; box-shadow: var(--shadow); margin-top: 28px; }
.cl-hero h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 12px; }
.cl-hero p { color: var(--muted); margin: 0 0 24px; font-size: 16px; line-height: 1.65; }
.cl-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.cl-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.cl-feat h3 { font-size: 17px; margin: 0 0 8px; }
.cl-feat p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cl-cta { text-align: center; margin-top: 56px; }
.cl-cta h2 { font-size: 24px; letter-spacing: -0.01em; margin: 0 0 18px; }
.cl-status { margin-top: 28px; background: var(--surface); border: 1px solid var(--pink); border-radius: 16px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cl-status p { margin: 0; flex: 1 1 260px; }
.cl-status a.link { color: var(--pink); font-weight: 600; overflow-wrap: anywhere; }
.cl-note, .cl-hero p.cl-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* Phone frame used by the landing and the editor preview. */
.phone { width: 260px; height: 520px; border-radius: 36px; border: 10px solid #1C2023; background: #1C2023; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(28,32,35,0.5); margin: 0 auto; }
.phone-in { width: 100%; height: 100%; overflow-y: auto; border-radius: 26px; background: #fff; scrollbar-width: none; }
.phone-in::-webkit-scrollbar { display: none; }

/* ---- Editor (full-screen, Tailor layout: steps left, phone right) ---- */
.ce { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; }
.ce[hidden] { display: none; }
.ce-top { height: 60px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ce-top .ce-back { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 8px; border-radius: 999px; }
.ce-top .ce-state { flex: 1; text-align: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.ce-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ce-left { overflow-y: auto; padding: 28px 24px 120px; }
.ce-left-in { max-width: 460px; margin: 0 auto; }
.ce-right { background: color-mix(in srgb, var(--ink) 4%, var(--bg)); display: flex; align-items: center; justify-content: center; padding: 24px; }
.ce-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.ce-dots span { width: 36px; height: 4px; border-radius: 2px; background: var(--border); }
.ce-dots span.on { background: var(--btn); }
.ce h2 { font-size: 24px; text-align: center; margin: 0 0 4px; }
.ce .ce-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.ce-group { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; text-align: center; }
.ce-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ce-theme { border: 2px solid transparent; border-radius: 12px; background: none; padding: 4px; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); text-align: center; }
.ce-theme.on { border-color: var(--pink); }
.ce-theme i { display: block; height: 74px; border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--border); }
.ce-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.ce-row b { font-size: 14px; }
.ce-row small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.ce-switch { position: relative; width: 44px; height: 24px; flex: none; }
.ce-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.ce-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background 0.2s; }
.ce-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.ce-switch input:checked + span { background: var(--btn); }
.ce-switch input:checked + span::after { transform: translateX(20px); }
.ce-field { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; margin-bottom: 10px; }
.ce-field:focus { outline: none; border-color: var(--pink); }
textarea.ce-field { min-height: 90px; resize: vertical; }
.ce-count { text-align: right; font-size: 12px; color: var(--muted); margin: -6px 0 10px; }
.ce-photo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ce-photo i { width: 72px; height: 72px; border-radius: 50%; background: var(--border) center/cover no-repeat; flex: none; }
.ce-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ce-link { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ce-link .ico { width: 42px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); }
.ce-link .ico svg { width: 18px; height: 18px; }
.ce-link .ce-field { margin: 0; }
.ce-link .rm { width: 32px; height: 32px; flex: none; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }
.ce-add { border: 0; background: none; color: var(--pink); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.ce-nav { position: fixed; left: 0; bottom: 0; width: 50%; display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; background: var(--bg); border-top: 1px solid var(--border); }
.ce-err { color: #B3261E; font-size: 13px; text-align: center; margin: 8px 0 0; }
.ce-saved { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 6px; }

/* Publish pop-up ("Vēl viens solis..."). */
dialog.ce-dlg { border: 0; border-radius: 18px; padding: 0; width: calc(100% - 32px); max-width: 460px; background: var(--surface); color: var(--ink); }
dialog.ce-dlg::backdrop { background: rgba(28, 32, 35, 0.55); }
.ce-dlg-in { position: relative; padding: 28px 24px 22px; }
.ce-dlg-in h2 { font-size: 22px; margin: 0 0 10px; text-align: left; }
.ce-dlg-in p { color: var(--muted); margin: 0 0 16px; }

@media (max-width: 900px) {
  .ce-main { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .ce-left { overflow: visible; padding-bottom: 20px; }
  .ce-right { padding: 20px 16px 120px; }
  .ce-nav { width: 100%; }
  .cl-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 22px; }
  .cl-hero h2 { font-size: 24px; }
  .cl-cta { margin-top: 40px; }
  .cl-feats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .ce-top .ce-state { visibility: hidden; }
  .ce-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { width: 240px; height: 480px; }
}
