/* Kharousi Cards · Template collection. Scoped to the card, never the editor. */
.template-library{padding-bottom:25px;margin-bottom:25px;border-bottom:1px solid var(--line)}
.template-library .section-title h3{margin:0}.template-library .section-title>span{font:11px var(--english);color:var(--muted)}
.template-current{display:flex;align-items:center;gap:8px;font-size:11px;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:12px;margin:16px 0;color:var(--muted);flex-wrap:wrap}
.template-current strong{color:var(--ink)}.template-current>span{display:block;width:100%;font-size:9px}
.template-filters{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 15px}
.template-filters button{border:1px solid var(--line);border-radius:20px;padding:7px 12px;background:var(--surface);font-size:11px;color:var(--muted);min-height:35px}
.template-filters button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.template-option{min-width:0;text-align:right;padding:8px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--ink);transition:border-color .18s,box-shadow .18s}
.template-option:hover{border-color:#8da6d5;box-shadow:0 5px 20px #3d5d8d12}
.template-option:focus-visible,.template-filters button:focus-visible{outline:3px solid #7394e6;outline-offset:3px}
.template-option.selected{border-color:#718dd2;box-shadow:0 0 0 2px #718dd229}
.template-option-title{display:flex;align-items:center;justify-content:space-between;margin:9px 3px 5px}.template-option-title strong{font-size:12px;font-weight:600}
.template-option-title i{font-style:normal;opacity:0;border-radius:50%;background:#627fc5;color:white;width:18px;height:18px;text-align:center;font-size:11px;line-height:18px}.selected .template-option-title i{opacity:1}
.template-option>small{display:block;font-size:9px;color:var(--muted);line-height:1.8;margin:0 3px 4px;min-height:33px}
.template-background-note{font-size:10px;color:var(--muted);line-height:2;margin:18px 0 0}
.template-mini{display:block;position:relative;overflow:hidden;border-radius:9px;height:142px;background:#fff;border:1px solid #d9e1e9;direction:rtl}
.mini-cover{display:block;position:relative;height:88px;background:var(--mini-surface);padding:10px;overflow:hidden}
.mini-brand{position:absolute;top:11px;left:10px;font:700 7px var(--english);color:var(--mini-accent);opacity:.8}
.mini-avatar{display:block;position:relative;background:color-mix(in srgb,var(--mini-accent) 30%,white);width:25px;height:25px;border:2px solid #fff9;border-radius:8px;overflow:hidden}
.mini-avatar:before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:var(--mini-accent);top:4px;left:6px;opacity:.65}
.mini-avatar:after{content:'';position:absolute;width:16px;height:12px;border-radius:50% 50% 0 0;background:var(--mini-accent);bottom:-2px;left:2px;opacity:.65}
.mini-title,.mini-subtitle,.mini-line,.mini-cta{display:block;border-radius:8px}
.mini-title{height:5px;width:55%;background:var(--mini-accent);margin-top:11px}.mini-subtitle{height:3px;width:38%;background:var(--mini-accent);opacity:.4;margin-top:6px}
.mini-body{display:block;padding:8px 10px}.mini-line{width:75%;height:3px;background:#c4ccd6;margin-bottom:6px}.mini-cta{height:11px;background:var(--mini-accent);opacity:.9}.mini-links{display:flex;gap:4px;margin-top:5px}.mini-links i{flex:1;border:1px solid #d5dce5;border-radius:2px;height:7px}
/* Cover layouts shared with their miniatures. */
.card-profile[data-template]:not([data-template=classic]){background:#fff;border-radius:23px}
.card-profile[data-template]:not([data-template=classic]) .profile-bio{color:#627187}
.card-profile[data-template]:not([data-template=classic]) .profile-name{letter-spacing:-.5px}
.card-profile[data-template]:not([data-template=classic]) .profile-cover{min-height:230px}
.card-profile[data-template]:not([data-template=classic]) .profile-body{padding-top:12px}
.card-profile[data-template]:not([data-template=classic]) .profile-footer{padding:9px 0 3px}
/* 01 / Business: an offset pinstripe and crisp square portrait. */
.card-profile[data-template=executive]{--card-accent:#243e61;--card-tint:#edf2f7}
[data-template=executive] .profile-cover:not(.has-image){background:linear-gradient(140deg,#f1f5f9,#dce6f1);border-inline-start:5px solid #243e61;border-radius:12px}
[data-template=executive] .profile-cover:not(.has-image):before{inset:0 65% 0 0;width:auto;height:auto;border:0;border-radius:0;background:repeating-linear-gradient(90deg,transparent 0 13px,#243e610a 13px 14px);box-shadow:none}
[data-template=executive] .profile-avatar{border-radius:8px}[data-template=executive] .identity-copy{margin-top:28px}
[data-template=executive] .profile-company{border:0;background:#ffffff70}
.mini-executive .mini-cover{border-right:4px solid var(--mini-accent);background:repeating-linear-gradient(90deg,#dce6f1 0 13px,#cad6e4 13px 14px)}
/* 02 / Signature: ivory stock and understated rule. */
.card-profile[data-template=signature]{--card-accent:#655448;--card-tint:#f7f3eb;background:#fffdf8!important}
[data-template=signature] .profile-cover:not(.has-image){background:#f4efe4;border:1px solid #ded4c3;border-radius:12px;color:#493d33}
[data-template=signature] .profile-cover:not(.has-image):before{width:90px;height:90px;left:23px;top:26px;border:1px solid #a9957555;box-shadow:0 0 0 12px #a9957509}
[data-template=signature] .profile-avatar{border-radius:50%}[data-template=signature] .identity-copy{border-bottom:1px solid #bbaa8c80;padding-bottom:16px}
[data-template=signature] .profile-company{border:0;padding-inline:0;background:none}
[data-template=signature] .save-contact{background:#655448;border-radius:5px}
.mini-signature .mini-cover{border:1px solid #cec0a7}.mini-signature .mini-avatar{border-radius:50%}.mini-signature .mini-title{width:70%;height:4px}
/* 03 / Minimal: open space, no decorative shapes. */
.card-profile[data-template=minimal]{--card-accent:#2d494a;--card-tint:#eff5f4}
[data-template=minimal] .profile-cover:not(.has-image){background:#fff;color:#213c3d;border-bottom:1px solid #e3ebea;border-radius:0}
[data-template=minimal] .profile-cover:not(.has-image):before,[data-template=minimal] .profile-cover:not(.has-image):after{display:none}
[data-template=minimal] .identity-mark{display:none}[data-template=minimal] .profile-avatar{border-radius:50%;background:#eef4f2;border-color:#eef4f2}
[data-template=minimal] .save-contact{background:#2d494a;box-shadow:none;border-radius:5px}[data-template=minimal] .profile-link{background:none;box-shadow:none;border:0;border-bottom:1px solid #e3ebea;border-radius:0}
.mini-minimal .mini-cover{background:#fff;border-bottom:1px solid #e3ebea}.mini-minimal .mini-brand{display:none}.mini-minimal .mini-avatar{border-radius:50%}
/* 04 / Editorial: numbered edition, bold name, warm paper. */
.card-profile[data-template=editorial]{--card-accent:#944c36;--card-tint:#faf0e8}
[data-template=editorial] .profile-cover:not(.has-image){background:#f0e2d3;color:#4b3329;border-radius:4px}
[data-template=editorial] .profile-cover:not(.has-image):before{content:'01';font:700 130px Georgia,serif;color:#944c3612;border:0;box-shadow:none;border-radius:0;left:10px;top:2px;width:auto;height:auto}
[data-template=editorial] .identity-top{flex-direction:row-reverse}[data-template=editorial] .profile-avatar{border-radius:3px}
[data-template=editorial] .identity-copy{margin-top:26px;border-top:2px solid #944c36;padding-top:13px}[data-template=editorial] .profile-name{font-weight:800}
[data-template=editorial] .save-contact{border-radius:3px;background:#944c36}
.mini-editorial .mini-cover{border-radius:0}.mini-editorial .mini-avatar{margin-right:auto;border-radius:1px}.mini-editorial .mini-title{border-radius:0;width:85%;height:7px}
/* 05 / Skyline: architectural verticals. */
.card-profile[data-template=skyline]{--card-accent:#305884;--card-tint:#edf4fa}
[data-template=skyline] .profile-cover:not(.has-image){background:linear-gradient(160deg,#edf3f8,#c8dceb);color:#254465}
[data-template=skyline] .profile-cover:not(.has-image):before{inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;background:linear-gradient(90deg,transparent 45%,#3058840a 45% 65%,transparent 65%),repeating-linear-gradient(90deg,transparent 0 32px,#fff8 32px 33px);transform:skewY(-16deg);transform-origin:bottom}
[data-template=skyline] .identity-copy{margin-top:35px}[data-template=skyline] .profile-avatar{border-radius:5px}
.mini-skyline .mini-cover{background:repeating-linear-gradient(90deg,#dce8f1 0 16px,#b9cddb 16px 17px)}
/* 06 / Portrait: centered portrait, centered copy. */
.card-profile[data-template=portrait]{--card-accent:#8a6ab8;--card-tint:#f5f0fc}
[data-template=portrait] .profile-cover:not(.has-image){background:radial-gradient(circle at 50% 20%,#fff,#eee8f8);color:#47385f}
[data-template=portrait] .profile-cover:not(.has-image):before{width:210px;height:210px;left:calc(50% - 105px);top:-90px;border-color:#d6c7e888;box-shadow:0 0 0 20px #fff4}
[data-template=portrait] .identity-top{flex-direction:column-reverse;align-items:center;gap:15px}[data-template=portrait] .profile-avatar{width:88px;height:88px;border-radius:50%}
[data-template=portrait] .identity-copy{text-align:center;margin-top:16px}[data-template=portrait] .profile-bio{text-align:center}
.mini-portrait .mini-cover{height:99px}.mini-portrait .mini-avatar{margin:0 auto;border-radius:50%;width:30px;height:30px}.mini-portrait .mini-title,.mini-portrait .mini-subtitle{margin-inline:auto}.mini-portrait .mini-brand{display:none}
/* 07 / Social: round profile and pill controls. */
.card-profile[data-template=social]{--card-accent:#496ad5;--card-tint:#edf1ff}
[data-template=social] .profile-cover:not(.has-image){background:linear-gradient(145deg,#dfe8ff,#f1eaff);color:#354482}
[data-template=social] .identity-top{flex-direction:column;align-items:center}[data-template=social] .identity-mark{display:none}
[data-template=social] .profile-avatar{width:94px;height:94px;border-radius:50%;border-width:5px}[data-template=social] .identity-copy{text-align:center;margin-top:14px}
[data-template=social] .save-contact,[data-template=social] .contact-buttons a,[data-template=social] .profile-link{border-radius:28px}
[data-template=social] .profile-bio{text-align:center}.mini-social .mini-avatar{margin:auto;border-radius:50%}.mini-social .mini-title,.mini-social .mini-subtitle{margin-inline:auto}.mini-social .mini-cta{border-radius:12px}
/* 08 / Postcard: a paper frame and stamp-like avatar. */
.card-profile[data-template=postcard]{--card-accent:#a86643;--card-tint:#fcf2e5;background:#fffcf5!important}
[data-template=postcard] .profile-cover:not(.has-image){background:repeating-linear-gradient(0deg,#f9eddc 0 28px,#eadbc3 28px 29px);color:#65472f;border:7px solid #f9f5e9;outline:1px solid #e6d8c0;border-radius:5px}
[data-template=postcard] .profile-cover:not(.has-image):before{display:none}[data-template=postcard] .profile-avatar{border-radius:2px;border:4px solid #fff;transform:rotate(-5deg)}
[data-template=postcard] .identity-copy{margin-top:30px}[data-template=postcard] .profile-name{background:#fffaf0cc;display:table;padding:0 5px}
.mini-postcard .mini-cover{border:4px solid #fff7e9;background:repeating-linear-gradient(0deg,#f9eddc 0 13px,#eadbc3 13px 14px)}.mini-postcard .mini-avatar{transform:rotate(-8deg);border-radius:0}
/* 09 / Ribbon: inset side band. */
.card-profile[data-template=ribbon]{--card-accent:#835b9e;--card-tint:#f6effb}
[data-template=ribbon] .profile-cover:not(.has-image){background:linear-gradient(90deg,#eee2f5 0 70%,#835b9e 70% 85%,#eee2f5 85%);color:#503065}
[data-template=ribbon] .profile-cover:not(.has-image):before{display:none}[data-template=ribbon] .identity-copy{margin-top:35px;background:#f9f3ffdf;padding:13px;border-radius:9px}
[data-template=ribbon] .profile-avatar{border-radius:50%;width:75px;height:75px}
.mini-ribbon .mini-cover{background:linear-gradient(90deg,#eee2f5 0 70%,#835b9e 70% 85%,#eee2f5 85%)}.mini-ribbon .mini-title{background:#fff}
/* 10 / Bloom: oversize petals. */
.card-profile[data-template=bloom]{--card-accent:#b36380;--card-tint:#fcf0f5}
[data-template=bloom] .profile-cover:not(.has-image){background:#f8e4eb;color:#653d52}
[data-template=bloom] .profile-cover:not(.has-image):before{width:180px;height:210px;border:0;border-radius:70% 0 70% 0;background:#e7b4c74d;left:-40px;top:-50px;box-shadow:50px 80px 0 #fff5;transform:rotate(-25deg)}
[data-template=bloom] .profile-avatar{border-radius:50% 50% 15px 50%}[data-template=bloom] .save-contact{background:#b36380}
.mini-bloom .mini-cover{background:radial-gradient(ellipse at 0 0,#dca3b9 0 32%,transparent 33%),#f8e4eb}.mini-bloom .mini-avatar{border-radius:50% 50% 4px 50%}
/* 11 / Dune: sand contours. */
.card-profile[data-template=dune]{--card-accent:#a17745;--card-tint:#fbf3e7}
[data-template=dune] .profile-cover:not(.has-image){background:linear-gradient(165deg,#f5ead8,#ecdbbf);color:#6e5030}
[data-template=dune] .profile-cover:not(.has-image):before{width:390px;height:190px;left:-100px;top:100px;border:1px solid #bf9c6744;border-radius:50%;box-shadow:0 0 0 15px #bf9c6712,0 0 0 32px #bf9c6710,0 0 0 49px #bf9c670c;transform:rotate(17deg)}
[data-template=dune] .profile-avatar{border-radius:40px 40px 12px 12px}.mini-dune .mini-cover{background:linear-gradient(160deg,#f5ead8 0 60%,#debf91 61% 63%,#ecdbbf 64%)}.mini-dune .mini-avatar{border-radius:12px 12px 3px 3px}
/* 12 / Ocean: translucent wave arcs. */
.card-profile[data-template=ocean]{--card-accent:#277c8b;--card-tint:#eaf7f8}
[data-template=ocean] .profile-cover:not(.has-image){background:linear-gradient(145deg,#e8f7f7,#b5dfe6);color:#235460}
[data-template=ocean] .profile-cover:not(.has-image):before{width:370px;height:180px;left:-90px;top:145px;border:0;border-radius:50%;box-shadow:0 -16px 0 #fff3,0 -34px 0 #fff2;background:#277c8b12;transform:rotate(-20deg)}
[data-template=ocean] .profile-avatar{border-radius:50%}.mini-ocean .mini-cover{background:linear-gradient(165deg,#d9eff1 0 65%,#b6dce1 66% 72%,#c6e7eb 73%)}.mini-ocean .mini-avatar{border-radius:50%}
/* 13 / Botanical: organic leaf silhouettes. */
.card-profile[data-template=botanical]{--card-accent:#48745c;--card-tint:#f0f7ed}
[data-template=botanical] .profile-cover:not(.has-image){background:linear-gradient(120deg,#f3f6e9,#d4e5ce);color:#35553c}
[data-template=botanical] .profile-cover:not(.has-image):before{width:120px;height:240px;border:1px solid #48745c22;border-radius:100% 0 100% 0;left:0;top:5px;box-shadow:25px 35px 0 #48745c0c;transform:rotate(22deg)}
[data-template=botanical] .profile-avatar{border-radius:50% 50% 12px 12px}.mini-botanical .mini-cover{background:radial-gradient(ellipse at 0 0,#a5c39c 0 30%,transparent 31%),#e5efdf}.mini-botanical .mini-avatar{border-radius:50% 50% 3px 3px}
/* 14–18 / Dark surfaces, with readable controls throughout the card. */
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]){--dark-panel:#ffffff08;--dark-line:#ffffff24;--dark-text:#f0f1f4;background:var(--dark-card)!important;color:var(--dark-text)}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) .profile-cover:not(.has-image){background:var(--dark-card);color:var(--dark-text)}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) .profile-bio{color:var(--dark-muted)}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) .profile-avatar{background:#ffffff0d;color:var(--card-accent);border-color:#ffffff3d}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) .identity-mark{color:var(--card-accent)}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) .profile-company{color:var(--dark-text);border-color:var(--dark-line);background:var(--dark-panel)}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) .save-contact{background:var(--card-accent);color:var(--dark-card);box-shadow:none;border-color:transparent;font-weight:700}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) :is(.contact-buttons a,.profile-link){background:var(--dark-panel);border-color:var(--dark-line);color:var(--dark-text);box-shadow:none}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) :is(.link-copy strong,.profile-footer strong){color:var(--dark-text)}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) :is(.link-copy small,.profile-footer,.links-heading){color:var(--dark-muted)}
.card-profile[data-template]:is([data-template=noir],[data-template=gold],[data-template=emerald],[data-template=neon],[data-template=circuit]) .link-avatar{background:#ffffff0a;border-color:var(--dark-line);color:var(--card-accent)}
.card-profile[data-template=noir]{--card-accent:#c3cbd7;--dark-card:#20242c;--dark-muted:#bac3ce}
[data-template=noir] .profile-cover:not(.has-image){border-bottom:1px solid #ffffff22;border-radius:0}
[data-template=noir] .profile-cover:not(.has-image):before{width:180px;height:180px;top:-70px;left:-50px;border-color:#fff1;box-shadow:0 0 0 25px #fff03,0 0 0 50px #fff02}
[data-template=noir] .profile-avatar{border-radius:50%}[data-template=noir] .save-contact{border-radius:6px}
.card-profile[data-template=gold]{--card-accent:#d5b477;--dark-card:#28251f;--dark-muted:#c5bba8}
[data-template=gold] .profile-cover:not(.has-image){border:1px solid #d5b47770;border-radius:12px}
[data-template=gold] .profile-cover:not(.has-image):before{inset:8px;width:auto;height:auto;border:1px solid #d5b47733;box-shadow:none;border-radius:5px}
[data-template=gold] .identity-copy{text-align:center;margin-top:24px}[data-template=gold] .identity-top{flex-direction:column-reverse;align-items:center;gap:15px}[data-template=gold] .profile-avatar{border-radius:50%;border-color:#d5b47788!important}
.card-profile[data-template=emerald]{--card-accent:#dabd87;--dark-card:#143d35;--dark-muted:#b5cfc2}
[data-template=emerald] .profile-cover:not(.has-image){background:radial-gradient(ellipse at 0 0,#2e5e49,#143d35)}
[data-template=emerald] .profile-cover:not(.has-image):before{width:160px;height:250px;border-radius:90px 90px 0 0;border-color:#dabd8733;top:10px;left:10px;box-shadow:0 0 0 15px #dabd8705}
[data-template=emerald] .profile-avatar{border-radius:50% 50% 12px 12px}[data-template=emerald] .identity-copy{margin-top:30px}
.card-profile[data-template=neon]{--card-accent:#c2a4ff;--dark-card:#231e38;--dark-muted:#c6bedb}
[data-template=neon] .profile-cover:not(.has-image){background:radial-gradient(ellipse at 0 0,#8249a955,transparent 75%),#231e38}
[data-template=neon] .profile-cover:not(.has-image):before{width:160px;height:160px;left:-70px;top:-55px;border:1px solid #c2a4ff88;box-shadow:0 0 28px #b57bff24,0 0 0 23px #c2a4ff0b}
[data-template=neon] .profile-avatar{border-radius:22px;box-shadow:0 0 20px #b57bff20}[data-template=neon] .profile-link{border-inline-start:2px solid #c2a4ff80!important}
.card-profile[data-template=circuit]{--card-accent:#70d7ed;--dark-card:#112b3b;--dark-muted:#a6c6d4}
[data-template=circuit] .profile-cover:not(.has-image){background:linear-gradient(#70d7ed0a 1px,transparent 1px),linear-gradient(90deg,#70d7ed0a 1px,transparent 1px),#112b3b;background-size:24px 24px}
[data-template=circuit] .profile-cover:not(.has-image):before{width:100px;height:100px;border-radius:0;border:1px solid #70d7ed44;left:20px;top:30px;box-shadow:12px 12px 0 #70d7ed08;transform:rotate(45deg)}
[data-template=circuit] .profile-avatar,[data-template=circuit] .save-contact,[data-template=circuit] .profile-link,[data-template=circuit] .contact-buttons a{border-radius:4px}
.template-mini:is(.mini-noir,.mini-gold,.mini-emerald,.mini-neon,.mini-circuit){background:var(--mini-surface);border-color:#ffffff16}.template-mini:is(.mini-noir,.mini-gold,.mini-emerald,.mini-neon,.mini-circuit) .mini-line{background:#fff5}.template-mini:is(.mini-noir,.mini-gold,.mini-emerald,.mini-neon,.mini-circuit) .mini-links i{border-color:#fff3}
.mini-noir .mini-avatar{border-radius:50%}.mini-gold .mini-cover{border:1px solid #d5b47770;margin:4px;height:84px}.mini-gold .mini-avatar{margin:auto;border-radius:50%}.mini-gold .mini-title,.mini-gold .mini-subtitle{margin-inline:auto}.mini-gold .mini-brand{display:none}
.mini-emerald .mini-cover{background:radial-gradient(ellipse at 0 0,#2e5e49,#143d35)}.mini-emerald .mini-avatar{border-radius:50% 50% 3px 3px}.mini-neon .mini-cover{background:radial-gradient(ellipse at 0 0,#8249a9,transparent 75%),#231e38}.mini-circuit .mini-cover{background:linear-gradient(#70d7ed15 1px,transparent 1px),linear-gradient(90deg,#70d7ed15 1px,transparent 1px),#112b3b;background-size:12px 12px}.mini-circuit .mini-avatar{border-radius:2px}
/* 19 / Mosaic: a warm graphic block composition. */
.card-profile[data-template=mosaic]{--card-accent:#9d5143;--card-tint:#fcf0e8}
[data-template=mosaic] .profile-cover:not(.has-image){background:linear-gradient(90deg,#f1c9ac 0 28%,transparent 28%),linear-gradient(0deg,#eedbca 0 35%,#f9e9d9 35%);color:#643f35;border-radius:14px}
[data-template=mosaic] .profile-cover:not(.has-image):before{width:135px;height:135px;left:-10px;top:-20px;border:0;border-radius:50%;background:#cb796559;box-shadow:none}
[data-template=mosaic] .profile-avatar{border-radius:50% 4px 50% 50%}[data-template=mosaic] .identity-copy{margin-top:30px}
.mini-mosaic .mini-cover{background:linear-gradient(90deg,#cb7965 0 28%,transparent 28%),linear-gradient(0deg,#eedbca 0 35%,#f9e9d9 35%)}.mini-mosaic .mini-avatar{border-radius:50% 2px 50% 50%}
/* User images override template cover artwork. Their readable overlay remains. */
.card-profile[data-template] .profile-cover.has-image{background-position:center;background-size:cover;color:#fff}
.card-profile[data-template] .profile-cover.has-image .identity-mark{color:#fff9}
.card-profile[data-template] .profile-cover.has-image .identity-copy{background:transparent;border-color:#ffffff55}
.card-profile[data-template] .profile-cover.has-image .profile-name{background:transparent}
/* Geometric choice is respected across every layout. */
.card-profile.geometric[data-template] :is(.profile-cover,.profile-avatar,.profile-link,.save-contact,.contact-buttons a){border-radius:7px}
@media(max-width:700px){.template-grid{gap:10px}.template-option>small{font-size:10px;min-height:36px}.template-mini{height:150px}.mini-cover{height:94px}.template-option-title strong{font-size:13px}.template-filters button{padding:8px 12px;min-height:39px}.template-current{font-size:12px}.template-current>span,.template-background-note{font-size:10px}.card-profile[data-template]:not([data-template=classic]) .profile-name{font-size:26px}.template-library{margin-bottom:22px}.template-option{padding:7px}}
@media(max-width:370px){.template-grid{gap:8px}.template-option{padding:6px}.template-option>small{font-size:9px}.template-mini{height:135px}.mini-cover{height:82px}.template-filters{gap:5px}.template-filters button{padding-inline:9px}.card-profile[data-template]:not([data-template=classic]) .profile-name{font-size:24px}}
/* Keep the chooser beside the live preview, even with all twenty designs. */
.template-grid{max-height:640px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;padding:3px;scroll-padding:5px}
@media(max-width:700px){.template-grid{max-height:560px}}
