/* ============================================================================
   AMC — sistema visivo delle app (clienti e tecnici) · v2 "Notte e ambra"
   Navy profondo, superfici in vetro, ambra solo per ciò che conta. Jost come unica famiglia.
   ============================================================================ */
:root {
  --bg: #0A1730; --bg2: #13294E; --bg3: #0F2042; --card: rgba(30, 46, 84, .72); --card-solid: #1E2E54; --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --nav: rgba(8, 18, 38, .82);
  --ink: #FFFFFF; --ink2: #EAF0FF; --muted: #B9C9E8; --muted2: #8EA3CC; --dim: #5D7199;
  --amber: #FFB020; --amber2: #FFC54D; --amber-soft: rgba(255, 176, 32, .14); --ok: #34D399; --ok-soft: rgba(52, 211, 153, .14); --ko: #F87171; --ko-soft: rgba(248, 113, 113, .16); --warn: #FFB020;
  --r: 20px; --r2: 14px; --pad: 20px; --shadow: 0 10px 30px rgba(3, 9, 24, .45); --glow: 0 0 0 1px rgba(255, 176, 32, .35), 0 8px 28px rgba(255, 176, 32, .18);
  --ease: cubic-bezier(.2, .8, .2, 1); --t: .24s;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink2); font-family: 'Jost', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.38; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; background: radial-gradient(120% 60% at 50% -10%, #1B3466 0%, var(--bg) 58%), var(--bg); background-attachment: fixed; }
a { color: var(--amber); text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }
::selection { background: var(--amber); color: var(--bg); }
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; padding-bottom: 112px; animation: entra var(--t) var(--ease) both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------------------------------------------------------------- Testata */
.head { padding: calc(env(safe-area-inset-top) + 26px) var(--pad) 14px; display: flex; flex-direction: column; gap: 14px; }
.head .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.head .row > div:first-child { min-width: 0; flex: 1 1 auto; }
.head .row > div:first-child h1 { overflow-wrap: anywhere; }
.eyebrow { font-size: 12px; color: var(--muted2); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
h1 { margin: 2px 0 0; font-size: 30px; font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
h2 { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted2); letter-spacing: .12em; text-transform: uppercase; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); font-size: 15px; font-weight: 500; min-height: 44px; background: none; border: 0; padding: 0; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--amber); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .12s var(--ease), background var(--t); }
.iconbtn:active { transform: scale(.92); }
.brand-top { display: flex; align-items: center; gap: 10px; }
.brand-top svg { flex: 0 0 auto; opacity: .9; }
.brand-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo .mark svg { flex: 0 0 auto; }
.search { display: flex; align-items: center; gap: 10px; background: rgba(19, 41, 78, .9); border: 1px solid var(--line); border-radius: var(--r2); padding: 0 14px; height: 46px; transition: border-color var(--t); }
.search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.search input { flex: 1; background: none; border: 0; color: var(--ink); outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted2); }
.search svg { color: var(--muted2); flex-shrink: 0; }

/* ---------------------------------------------------------------- Contenuto */
.content { padding: 0 var(--pad); display: flex; flex-direction: column; gap: 18px; }
.section { display: flex; flex-direction: column; gap: 10px; }
.banner { background: linear-gradient(135deg, #FFC54D, #FFA50A); color: var(--bg); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 28px rgba(255, 176, 32, .22); }
.banner.soft { background: var(--card); color: var(--ink2); border: 1px solid rgba(255, 176, 32, .55); box-shadow: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.banner .t { font-size: 15px; font-weight: 600; }
.banner .s { font-size: 13px; }
.banner.soft .s { color: var(--muted); }
.card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; color: var(--ink2); width: 100%; text-align: left; min-height: 44px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .12s var(--ease), border-color var(--t), background var(--t); }
.card:active { transform: scale(.985); }
.card.hl { border-color: rgba(255, 176, 32, .7); box-shadow: var(--glow); }
.card.amber { background: linear-gradient(135deg, #FFC54D, #FFA50A); color: var(--bg); border: 0; }
.card .ico { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--amber); }
.card.amber .ico { background: var(--bg); color: var(--amber); border: 0; }
.card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card .n { font-size: 16px; font-weight: 500; color: var(--ink); }
.card.amber .n { color: var(--bg); font-weight: 600; }
.card .m { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.amber .m { color: rgba(13, 28, 54, .8); }
.card .st { font-size: 12px; font-weight: 500; }
.chev { color: var(--dim); flex-shrink: 0; }
.ok { color: var(--ok); } .ko { color: var(--ko); } .warn { color: var(--amber); } .mutedc { color: var(--muted2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: middle; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill { display: inline-block; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; background: var(--amber); color: var(--bg); white-space: nowrap; letter-spacing: .01em; }
.pill.grey { background: rgba(255, 255, 255, .08); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(52, 211, 153, .35); }
.pill.ko { background: var(--ko-soft); color: var(--ko); border: 1px solid rgba(248, 113, 113, .35); }

/* ---------------------------------------------------------------- Dettaglio */
.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px var(--pad) 0; }
.hero .big { width: 104px; height: 104px; border-radius: 32px; background: linear-gradient(160deg, #26407A, #15284F); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; color: var(--amber); box-shadow: var(--shadow); }
.hero .big svg { width: 44px; height: 44px; }
.hero h1 { font-size: 24px; }
.hero .sub { font-size: 14px; color: var(--muted); }
.serial { display: inline-flex; align-items: center; gap: 8px; background: rgba(19, 41, 78, .9); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.serial span:first-child { font-size: 12px; color: var(--muted2); }
.serial b { font-weight: 500; letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tile.amber { background: linear-gradient(135deg, #FFC54D, #FFA50A); color: var(--bg); border: 0; }
.tile .l { font-size: 11px; color: var(--muted2); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.tile.amber .l { color: rgba(13, 28, 54, .75); }
.tile .v { font-size: 17px; font-weight: 600; color: var(--ink); }
.tile.amber .v { color: var(--bg); }
.tile .s { font-size: 12px; }
.kv { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted2); flex-shrink: 0; }
.kv span:last-child { color: var(--ink); text-align: right; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; padding: 14px; font-size: 16px; font-weight: 600; min-height: 54px; width: 100%; background: linear-gradient(135deg, #FFC54D, #FFA50A); color: var(--bg); box-shadow: 0 8px 24px rgba(255, 176, 32, .25); transition: transform .12s var(--ease), box-shadow var(--t), opacity var(--t); }
.btn:active { transform: scale(.98); box-shadow: 0 4px 12px rgba(255, 176, 32, .2); }
.btn.sec { background: var(--card); color: var(--ink); font-weight: 500; font-size: 14px; min-height: 48px; border: 1px solid var(--line2); box-shadow: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.ghost { background: none; color: var(--amber); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.list .it { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); min-height: 48px; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.list .it:last-child { border-bottom: 0; }
.list .it .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.list .it .t { font-size: 15px; font-weight: 500; }
.list .it .s { font-size: 12px; color: var(--muted); }
.list .it .r { font-size: 12px; color: var(--muted2); flex-shrink: 0; }
.list .it .sq { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--amber); }
.list .it .sq.amber { background: var(--amber); color: var(--bg); }
.list button.it { color: var(--ink); cursor: pointer; }

/* ---------------------------------------------------------------- Supporto e conversazione */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 14px; font-weight: 500; min-height: 52px; background: var(--card); color: var(--ink); text-align: left; transition: transform .12s var(--ease), background var(--t), border-color var(--t); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, #FFC54D, #FFA50A); color: var(--bg); border-color: transparent; box-shadow: 0 6px 18px rgba(255, 176, 32, .25); }
select.ta { height: 50px; -webkit-appearance: none; appearance: none; }
textarea.ta, input.ta, select.ta { width: 100%; background: rgba(19, 41, 78, .9); color: var(--ink); border: 1px solid var(--line2); border-radius: 16px; padding: 12px 14px; outline: none; transition: border-color var(--t), box-shadow var(--t); }
textarea.ta { min-height: 110px; resize: vertical; }
textarea.ta:focus, input.ta:focus, select.ta:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; border-radius: 18px; padding: 10px 14px; font-size: 15px; white-space: pre-wrap; animation: entra var(--t) var(--ease) both; }
.msg.cliente { align-self: flex-end; background: linear-gradient(135deg, #FFC54D, #FFA50A); color: var(--bg); border-bottom-right-radius: 5px; box-shadow: 0 6px 18px rgba(255, 176, 32, .18); }
.msg.amc { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg .who { display: block; font-size: 11px; opacity: .72; margin-bottom: 3px; letter-spacing: .02em; }
.sendrow { display: flex; gap: 8px; align-items: flex-end; }
.sendrow textarea { min-height: 48px; flex: 1; }
.sendrow .btn { width: auto; padding: 0 18px; min-height: 48px; }

/* ---------------------------------------------------------------- Accesso */
.login { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 40px var(--pad); }
.logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo .mark { width: 96px; height: 96px; border-radius: 30px; background: linear-gradient(160deg, #26407A, #15284F); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.logo .mark svg { width: 62px; height: auto; }
.logo .w { font-size: 13px; font-weight: 600; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input { background: rgba(19, 41, 78, .9); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 14px; color: var(--ink); outline: none; height: 52px; transition: border-color var(--t), box-shadow var(--t); }
.field input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.field input.otp { letter-spacing: .45em; font-size: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted2); text-align: center; }
.err { background: var(--ko-soft); border: 1px solid rgba(248, 113, 113, .35); color: #FECACA; border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* ---------------------------------------------------------------- Barra di navigazione (vetro, flottante) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 12px calc(env(safe-area-inset-bottom) + 10px); pointer-events: none; }
.tabbar nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--nav); border: 1px solid var(--line2); border-radius: 24px; padding: 6px; backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 16px 40px rgba(3, 9, 24, .5); pointer-events: auto; }
.tabbar.five nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; color: var(--muted2); font-size: 11px; font-weight: 500; min-height: 48px; border-radius: 18px; transition: color var(--t), background var(--t); }
.tabbar a svg { transition: transform .2s var(--ease); }
.tabbar a[aria-current="page"] { color: var(--amber); background: rgba(255, 176, 32, .12); }
.tabbar a[aria-current="page"] svg { transform: translateY(-1px); }
.tabbar a .n { display: inline-block; margin-left: 4px; min-width: 16px; padding: 0 5px; border-radius: 8px; background: var(--amber); color: var(--bg); font-size: 10px; font-weight: 700; text-align: center; line-height: 16px; }

/* ---------------------------------------------------------------- Varie */
.empty { color: var(--muted2); font-size: 14px; padding: 8px 0; }
.skel { background: linear-gradient(90deg, rgba(30, 46, 84, .55) 25%, rgba(45, 66, 115, .7) 50%, rgba(30, 46, 84, .55) 75%); background-size: 200% 100%; border-radius: var(--r); height: 84px; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 100px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: .28s var(--ease); pointer-events: none; max-width: 90%; text-align: center; box-shadow: var(--shadow); z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.profile { display: flex; flex-direction: column; gap: 10px; }
.stars { display: flex; gap: 6px; }
.star { width: 50px; height: 50px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--amber); font-size: 26px; line-height: 1; transition: transform .12s var(--ease), background var(--t); }
.star:active { transform: scale(.9); }
.star[aria-checked="true"] { background: linear-gradient(135deg, #FFC54D, #FFA50A); color: var(--bg); border-color: transparent; }
.row2 { display: flex; justify-content: space-between; align-items: center; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; width: auto; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { font-size: 28px; color: var(--amber); }
.thumb .cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(8, 18, 38, .78); color: var(--ink2); font-size: 10px; padding: 4px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: 14px; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--amber); flex-shrink: 0; }
.banner .check { color: var(--bg); }
.banner.soft .check { color: var(--ink2); }
label.btn { cursor: pointer; }

/* ---------------------------------------------------------------- Apertura: logo animato */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: radial-gradient(120% 70% at 50% 0%, #1B3466 0%, #0A1730 60%), #0A1730; transition: opacity .5s var(--ease), visibility .5s; }
.splash.via { opacity: 0; visibility: hidden; pointer-events: none; }
.splash .logo-anim { width: min(68vw, 320px); height: auto; overflow: visible; }
.splash .logo-anim .tr { stroke: #FFFFFF; stroke-width: .9; fill: #FFFFFF; fill-opacity: 0; stroke-dasharray: 420; stroke-dashoffset: 420; animation: traccia 1.5s var(--ease) forwards, riempi .6s 1.25s var(--ease) forwards; }
.splash .logo-anim .gr { fill: #FFFFFF; opacity: 0; animation: appari .7s 1.55s var(--ease) forwards; }
.splash .logo-anim .filo { fill: #FFB020; transform-origin: 72px 26px; transform: scaleX(0); animation: filo .6s 1.75s var(--ease) forwards; }
.splash .alone { position: absolute; width: 60vw; max-width: 320px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .22), rgba(255, 176, 32, 0) 65%); filter: blur(12px); animation: alone 2.4s ease-in-out infinite alternate; }
.splash .claim { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: appari .8s 2s var(--ease) forwards; }
.splash .tocca { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 48px); font-size: 14px; color: var(--muted2); opacity: 0; animation: appari .6s 2.4s var(--ease) forwards, pulsa 2.2s 3s ease-in-out infinite; }
.splash .salta { position: absolute; top: calc(env(safe-area-inset-top) + 16px); right: 16px; background: none; border: 0; color: var(--dim); font-size: 13px; padding: 10px; }
@keyframes traccia { to { stroke-dashoffset: 0; } }
@keyframes riempi { to { fill-opacity: 1; } }
@keyframes appari { to { opacity: 1; } }
@keyframes filo { to { transform: scaleX(1); } }
@keyframes alone { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.1); opacity: 1; } }
@keyframes pulsa { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash .logo-anim .tr { stroke-dashoffset: 0; fill-opacity: 1; animation: none; } .splash .logo-anim .gr, .splash .claim, .splash .tocca { opacity: 1; animation: none; } .splash .logo-anim .filo { transform: none; animation: none; } }

/* ---------------------------------------------------------------- Interruttore */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-height: 52px; }
.switch .l { font-size: 15px; color: var(--ink); }
.switch .s { font-size: 12px; color: var(--muted2); }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .12); position: relative; margin: 0; flex-shrink: 0; transition: background var(--t); cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: transform var(--t) var(--ease); }
.switch input:checked { background: var(--amber); }
.switch input:checked::after { transform: translateX(20px); }

/* Persone con accesso */
.persona { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.persona .ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.persona .nm { font-size: 16px; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.persona .nm small { color: var(--muted); font-weight: 400; }
.persona .pl { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--ink2); min-width: 0; }
.persona .pl span:last-child { min-width: 0; overflow-wrap: anywhere; }
.persona .pl svg { flex-shrink: 0; color: var(--muted2); width: 16px; height: 16px; }
.persona .pl.muted { color: var(--muted); font-size: 12px; }
.persona .pa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.persona .pa .btn { min-height: 44px; font-size: 13px; padding: 8px 6px; }
.persona .pinv:empty { display: none; }
.kv div { flex-wrap: wrap; }
.kv span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* Scanner QR */
.scanbox { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; border: 1px solid var(--line); margin-top: 12px; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox .mira { position: absolute; inset: 14%; border: 2px solid var(--amber); border-radius: 18px; box-shadow: 0 0 0 999px rgba(10, 23, 48, .45); pointer-events: none; }
.scanbox .mira::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--amber); opacity: .8; animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-60px); } 50% { transform: translateY(60px); } }
.iconbtn[href] { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.list .it .sq.amber { background: var(--amber); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .scanbox .mira::after { animation: none; } }
