/* A contact card as a QR code (public/vcard.js): the dialog in the app and the body of the public page /kartu/. Tokens only; the code itself is
   drawn in the colour picked (dark on white, what a phone camera reads), so the preview sits on white whatever the theme. */
.vc-modal { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.vc-wrap { display: flex; flex-direction: column; max-height: calc(100dvh - 28px); }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 6px; }
.vc-head h2 { font-size: 22px; }
.vc-x { font-size: 22px; line-height: 1; padding: 6px 12px; }
.vc-hacts { display: inline-flex; align-items: center; gap: 12px; }
.vc-other { all: unset; cursor: pointer; font-size: 13.5px; text-decoration: underline; color: var(--ink); }
.vc-other:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* the link maker (qrlink.js) shares this layout */
.ql textarea, .ql select, .ql .vc-f input { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 9px 10px; }
.ql textarea { resize: vertical; min-height: 64px; word-break: break-all; }
.ql textarea:focus, .ql select:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: transparent; }
.ql-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.ql-note:empty { display: none; }
.vc-body { overflow: auto; padding: 6px 24px 18px; }
.vc-say { min-height: 1.5em; padding: 0 24px 14px; font-size: 13px; color: var(--ink-2, var(--mute)); }
.vc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 28px; align-items: start; }
.vc-form { display: grid; gap: 12px; min-width: 0; }
.vc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.vc-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink-2, var(--mute)); }
.vc-f.wide { grid-column: 1 / -1; }
.vc-f input { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 9px 10px; }
.vc-f input:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: transparent; }
.vc-kept { font-size: 12.5px; }
.vc-saved { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vc-sl { font-size: 13px; color: var(--ink-2, var(--mute)); margin-right: 2px; }
.vc-card { all: unset; box-sizing: border-box; cursor: pointer; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper); }
.vc-card:hover { border-color: var(--ink); }
.vc-card.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.vc-card.add { border-style: dashed; }
.vc-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vc-cacts { display: inline-flex; gap: 14px; margin-left: auto; font-size: 13px; }
.vc-keepbtns { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-top: -4px; }
.vc-in { cursor: pointer; }
.vc-in:focus-within { outline: 2px solid var(--gold); }
.vc .linkish { all: unset; cursor: pointer; text-decoration: underline; color: var(--ink); }
.vc .linkish:focus-visible { outline: 2px solid var(--gold); }
.vc-side { display: grid; gap: 12px; position: sticky; top: 0; min-width: 0; }
.vc-pv { background: #ffffff; border: 1px solid var(--line); display: grid; place-items: center; min-height: 220px; padding: 8px; }
.vc-pv svg { width: 100%; height: auto; max-width: 320px; display: block; }
.vc-pv.clear { background: repeating-conic-gradient(#e9e9e9 0 25%, #ffffff 0 50%) 0 0 / 16px 16px; } /* see-through shows as the checkerboard */
.vc-none { color: #555555; font-size: 14px; text-align: center; padding: 30px 14px; }
.vc-info { font-size: 12.5px; }
.vc-opts { display: grid; gap: 6px; }
.vc-chk { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13.5px; cursor: pointer; }
.vc-chk input { margin-top: 3px; flex: none; accent-color: var(--ink); }
.vc-inks { display: flex; gap: 8px; padding-top: 4px; }
.vc-inks button { all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px var(--paper); border: 2px solid transparent; }
.vc-inks button[aria-checked="true"] { border-color: var(--ink); }
.vc-inks button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-btns .btn { flex: 1 1 auto; }
.vc-empty .vc-btns .btn { opacity: .55; }
@media (max-width: 760px) {
  .vc-head { padding: 14px 16px 4px; }
  .vc-body { padding: 4px 16px 14px; }
  .vc-say { padding: 0 16px 12px; }
  .vc { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .vc-side { position: static; order: -1; } /* the code first: it is what the person came for */
  .vc-pv { min-height: 0; }
  .vc-pv svg { max-width: 220px; }
  .vc-grid, .ql-row { grid-template-columns: minmax(0, 1fr); }
  .ql textarea, .ql select, .ql .vc-f input { font-size: 16px; }
  .vc-head { flex-wrap: wrap; }
  .vc-f input { font-size: 16px; } /* iOS zooms into smaller boxes */
  .vc-saved { order: -2; } /* which card first, then its code */
  .vc-cacts { margin-left: 0; width: 100%; }
  .vc-card { max-width: 160px; }
}
@media (max-width: 760px) { .vc-empty .vc-side { order: 0; } }
@media (max-width: 760px) { .ql .vc-side { order: 0; } } /* a link: the box to paste in comes first, its code right under it */ /* nothing typed yet: the form first, the code under it */
