/* You Are A Talent – Votazione Giuria – stili (isolati sotto .yaat-app) */

.yaat-app {
	--y-bg: #0b1120;
	--y-panel: #111a2e;
	--y-panel-2: #0f172a;
	--y-line: #1f2a44;
	--y-text: #e2e8f0;
	--y-muted: #94a3b8;
	--y-accent: #6366f1;
	--y-accent-2: #4f46e5;
	--y-gold: #f59e0b;
	--y-ok: #10b981;
	--y-warn: #f59e0b;
	--y-ko: #f43f5e;
	--y-c1: #818cf8;
	--y-c2: #fbbf24;
	--y-c3: #fb7185;
	--y-c4: #34d399;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--y-text);
	-webkit-font-smoothing: antialiased;
}
.yaat-app *, .yaat-app *::before, .yaat-app *::after { box-sizing: border-box; }

#yaat-root.yaat-app,
.yaat-login-wrap {
	background: var(--y-bg);
	border-radius: 18px;
	padding: 16px;
	max-width: 1280px;
	margin: 0 auto;
}

.yaat-app h1, .yaat-app h2, .yaat-app h3 { color: #fff; margin: 0; line-height: 1.2; font-family: inherit; letter-spacing: -0.01em; }
.yaat-app h1 { font-size: 20px; font-weight: 800; }
.yaat-app h2 { font-size: 24px; font-weight: 800; margin: 4px 0 2px; }
.yaat-app h3 { font-size: 16px; font-weight: 700; }
.yaat-app p { margin: 0; }
.yaat-app a { color: #a5b4fc; }
.yaat-muted { color: var(--y-muted); font-size: 13px; }
.yaat-app .gold { color: var(--y-gold); }

.yaat-loading, .yaat-empty { color: var(--y-muted); text-align: center; padding: 24px 12px; font-size: 14px; }
.yaat-empty.big { padding: 80px 12px; font-size: 16px; }

/* ---------- Header ---------- */
.yaat-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; margin-bottom: 14px;
	background: var(--y-panel); border: 1px solid var(--y-line); border-radius: 14px;
}
.yaat-brand { display: flex; align-items: center; gap: 12px; }
.yaat-logo {
	width: 42px; height: 42px; border-radius: 12px; flex: none;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #f59e0b, #d97706); color: #0b1120; font-size: 22px; font-weight: 900;
}
.yaat-sub { color: var(--y-muted); font-size: 12px; margin-top: 2px; }
.yaat-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.yaat-conn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.yaat-conn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.yaat-conn.ok { color: var(--y-ok); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); }
.yaat-conn.ok .dot { animation: yaat-pulse 1.6s infinite; }
.yaat-conn.ko { color: var(--y-ko); background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.35); }
@keyframes yaat-pulse { 50% { opacity: .35; } }

.yaat-bar {
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
	padding: 10px 16px; margin-bottom: 14px; border-radius: 12px;
	background: var(--y-panel); border: 1px solid var(--y-line); border-left: 4px solid var(--y-accent);
}
.yaat-bar strong { color: #fff; font-size: 17px; }

/* ---------- Card / layout ---------- */
.yaat-card { background: var(--y-panel); border: 1px solid var(--y-line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.yaat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--y-line); }
.yaat-card-head.wrap { flex-wrap: wrap; }
.yaat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.yaat-grid > * { min-width: 0; }
.yaat-grid > .yaat-card { margin-bottom: 0; }
@media (min-width: 900px) { .yaat-grid { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.yaat-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yaat-notice { text-align: center; padding: 28px; }

/* ---------- Pulsanti ---------- */
.yaat-app .yaat-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
	padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
	cursor: pointer; text-decoration: none; transition: background .15s, opacity .15s;
	background: var(--y-panel-2); color: var(--y-text); text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0;
}
.yaat-app .yaat-btn.sm { font-size: 12px; padding: 6px 10px; border-radius: 8px; }
.yaat-app .yaat-btn.block { width: 100%; padding: 15px; font-size: 16px; }
.yaat-app .yaat-btn.primary { background: var(--y-accent-2); color: #fff; }
.yaat-app .yaat-btn.primary:hover { background: var(--y-accent); }
.yaat-app .yaat-btn.ghost { background: #1e293b; color: #cbd5e1; border-color: #334155; }
.yaat-app .yaat-btn.ghost:hover { background: #273449; color: #fff; }
.yaat-app .yaat-btn.success { background: #047857; color: #fff; }
.yaat-app .yaat-btn.success:hover { background: #059669; }
.yaat-app .yaat-btn.danger { background: #7f1d2d; color: #fecdd3; border-color: rgba(244,63,94,.35); }
.yaat-app .yaat-btn.danger:hover { background: #9f1239; }
.yaat-app .yaat-btn:disabled { opacity: .45; cursor: not-allowed; }
.yaat-app .yaat-link { background: none; border: 0; padding: 0; color: #a5b4fc; text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; }

/* Segmented control */
.yaat-seg { display: flex; gap: 4px; padding: 4px; background: var(--y-panel-2); border: 1px solid var(--y-line); border-radius: 10px; flex-wrap: wrap; }
.yaat-app .yaat-seg button {
	flex: 1 1 auto; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border: 0; border-radius: 7px;
	background: transparent; color: var(--y-muted); cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0;
}
.yaat-app .yaat-seg button:hover { color: #fff; }
.yaat-app .yaat-seg button.on { background: var(--y-accent-2); color: #fff; }
.yaat-grid .yaat-seg { margin-bottom: 12px; }

/* Pill / badge */
.yaat-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.yaat-pill.gold { color: var(--y-gold); background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); }
.yaat-badge { display: inline-block; white-space: nowrap; padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; background: #1e293b; color: var(--y-muted); }
.yaat-badge.ok { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.35); }
.yaat-badge.warn { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }

/* ---------- Lista concorrenti (giudice) ---------- */
.yaat-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding-right: 2px; }
.yaat-app .yaat-item {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
	text-align: left; font: inherit; color: var(--y-text); cursor: pointer;
	padding: 11px 12px; border-radius: 11px; background: var(--y-panel-2); border: 1px solid var(--y-line);
	text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0;
}
.yaat-app .yaat-item:hover { background: #172036; }
.yaat-app .yaat-item.on { background: rgba(79,70,229,.22); border-color: var(--y-accent); }
.yaat-item-txt { display: flex; flex-direction: column; min-width: 0; }
.yaat-item-txt strong { color: #fff; font-size: 14px; }
.yaat-cat { color: var(--y-gold); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.yaat-song { color: var(--y-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Scheda voto ---------- */
.yaat-contestant {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px; margin-bottom: 14px; border-radius: 12px; background: var(--y-panel-2); border: 1px solid rgba(99,102,241,.35);
}
.yaat-total-box { text-align: right; padding: 8px 16px; border-radius: 12px; background: #0b1120; border: 1px solid var(--y-line); }
.yaat-total-box span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--y-muted); }
.yaat-total-box strong { font-size: 32px; font-weight: 900; color: var(--y-gold); }
.yaat-total-box em { font-style: normal; color: var(--y-muted); font-size: 13px; margin-left: 4px; }

.yaat-locked, .yaat-draft {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
	padding: 11px 14px; margin-bottom: 14px; border-radius: 11px; font-size: 13px; font-weight: 600;
}
.yaat-locked { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.35); color: #6ee7b7; }
.yaat-draft { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); color: #fcd34d; }

.yaat-criteria { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .yaat-criteria { grid-template-columns: 1fr 1fr; } }
.yaat-crit { min-width: 0; padding: 14px; border-radius: 12px; background: var(--y-panel-2); border: 1px solid var(--y-line); }
.yaat-crit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.yaat-crit-head label { font-weight: 700; font-size: 14px; color: #fff; }
.yaat-crit output { font-size: 20px; font-weight: 900; padding: 2px 10px; border-radius: 8px; background: #0b1120; border: 1px solid var(--y-line); min-width: 62px; text-align: center; }
.yaat-crit.c1 output { color: var(--y-c1); } .yaat-crit.c1 input { accent-color: var(--y-c1); }
.yaat-crit.c2 output { color: var(--y-c2); } .yaat-crit.c2 input { accent-color: var(--y-c2); }
.yaat-crit.c3 output { color: var(--y-c3); } .yaat-crit.c3 input { accent-color: var(--y-c3); }
.yaat-crit.c4 output { color: var(--y-c4); } .yaat-crit.c4 input { accent-color: var(--y-c4); }
.yaat-app .yaat-crit input[type=range] { width: 100%; height: 32px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; }
.yaat-app .yaat-crit input[type=range]:disabled { cursor: not-allowed; opacity: .5; }
.yaat-scale { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-top: 4px; }

/* ---------- Regia ---------- */
.yaat-app select, .yaat-app input[type=text] {
	font: inherit; font-size: 14px; color: #fff; background: #0b1120; border: 1px solid #334155; border-radius: 9px;
	padding: 8px 10px; min-height: 0; height: auto; box-shadow: none; max-width: 100%;
}
.yaat-app select:focus, .yaat-app input[type=text]:focus { outline: 2px solid var(--y-accent); outline-offset: 0; border-color: var(--y-accent); }

.yaat-matrix { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.yaat-jcard {
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
	padding: 12px 10px; border-radius: 12px; background: var(--y-panel-2); border: 1px solid var(--y-line); min-width: 0;
}
.yaat-jcard.ok { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.4); }
.yaat-jcard.warn { border-color: rgba(245,158,11,.4); }
.yaat-jname { font-size: 12px; font-weight: 700; color: var(--y-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yaat-jcard strong { font-size: 26px; font-weight: 900; color: #475569; }
.yaat-jcard.ok strong { color: #34d399; }
.yaat-jdet { font-size: 10px; color: var(--y-muted); line-height: 1.4; }

.yaat-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yaat-app .yaat-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0; border: 0; background: transparent; }
.yaat-app .yaat-table th {
	text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--y-muted);
	background: var(--y-panel-2); padding: 10px; border: 0; border-bottom: 1px solid var(--y-line); font-weight: 700;
}
.yaat-app .yaat-table td { padding: 10px; border: 0; border-bottom: 1px solid var(--y-line); vertical-align: middle; color: var(--y-text); background: transparent; }
.yaat-app .yaat-table tr:hover td { background: rgba(255,255,255,.02); }
.yaat-app .yaat-table strong { color: #fff; }
.yaat-app .yaat-table .r { text-align: right; }
.yaat-app .yaat-table .c { text-align: center; }
.yaat-app .yaat-table .nowrap { white-space: nowrap; }
.yaat-app .yaat-table .big { font-size: 15px; font-weight: 900; }
.yaat-app .yaat-table .gold { color: var(--y-gold); }
.yaat-app .yaat-table td.c1 { color: #a5b4fc; } .yaat-app .yaat-table td.c2 { color: #fcd34d; }
.yaat-app .yaat-table td.c3 { color: #fda4af; } .yaat-app .yaat-table td.c4 { color: #6ee7b7; }
.yaat-app .yaat-table tr.dim td { color: #64748b; }
.yaat-app .yaat-table tr.editing td { background: rgba(79,70,229,.1); }
.yaat-app .yaat-table input[type=text], .yaat-app .yaat-table select { width: 100%; min-width: 120px; }

.yaat-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #1e293b; color: #cbd5e1; font-weight: 800; font-size: 12px; }
.yaat-rank.p1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0b1120; }
.yaat-rank.p2 { background: #cbd5e1; color: #0b1120; }
.yaat-rank.p3 { background: #b45309; color: #fff; }

.yaat-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.yaat-form { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
@media (min-width: 760px) { .yaat-form { grid-template-columns: 2fr 2fr 1.2fr auto; } }
.yaat-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: #cbd5e1; margin: 0; }
.yaat-form input, .yaat-form select { width: 100%; }

.yaat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yaat-chip { padding: 6px 12px; border-radius: 999px; background: var(--y-panel-2); border: 1px solid var(--y-line); font-size: 13px; }

/* ---------- Modale & toast ---------- */
.yaat-modal {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(2,6,23,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.yaat-modal-box { width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; margin: 0; }

.yaat-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100001; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.yaat-toast {
	padding: 12px 16px; border-radius: 11px; font-size: 14px; font-weight: 600; max-width: 360px;
	background: #0f172a; color: #e2e8f0; border: 1px solid #334155; box-shadow: 0 10px 30px rgba(0,0,0,.4);
	opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.yaat-toast.show { opacity: 1; transform: none; }
.yaat-toast.success { background: #022c22; border-color: rgba(16,185,129,.5); color: #a7f3d0; }
.yaat-toast.error { background: #2a0a12; border-color: rgba(244,63,94,.5); color: #fecdd3; }

/* ---------- Login ---------- */
.yaat-login { max-width: 440px; margin: 24px auto; border-color: rgba(99,102,241,.35); }
.yaat-login-head { text-align: center; margin-bottom: 16px; }
.yaat-login-head .yaat-logo { margin: 0 auto 10px; }
.yaat-login-head p { color: var(--y-muted); font-size: 13px; margin-top: 6px; }
.yaat-login form p { margin: 0 0 12px; }
.yaat-login label { display: block; font-size: 13px; font-weight: 600; color: #cbd5e1; margin-bottom: 5px; }
.yaat-login input[type=text], .yaat-login input[type=password] {
	width: 100%; font: inherit; font-size: 16px; color: #fff; background: #0b1120; border: 1px solid #334155; border-radius: 10px; padding: 11px 12px;
}
.yaat-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.yaat-login input[type=submit] {
	width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--y-accent-2);
	border: 0; border-radius: 10px; padding: 13px; cursor: pointer;
}
.yaat-login input[type=submit]:hover { background: var(--y-accent); }

@media (max-width: 600px) {
	#yaat-root.yaat-app, .yaat-login-wrap { padding: 10px; border-radius: 12px; }
	.yaat-header { padding: 10px 12px; }
	.yaat-h1 { font-size: 17px; }
	.yaat-list { max-height: 40vh; }
}

/* =========================================================
 * v1.1 – Foto, anagrafica, importazione
 * ======================================================= */

.yaat-dim { color: #64748b; }
.yaat-meta { color: #cbd5e1; font-size: 13px; margin: 2px 0; }
.yaat-bib {
	display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px;
	background: rgba(99,102,241,.18); color: #c7d2fe; font-size: 11px; font-weight: 800; letter-spacing: .02em; vertical-align: middle;
}
.yaat-cat .yaat-bib { font-size: 10px; }

/* Avatar */
.yaat-avatar { flex: none; border-radius: 50%; object-fit: cover; background: #1e293b; display: inline-flex; align-items: center; justify-content: center; color: #cbd5e1; font-weight: 800; border: 2px solid #334155; }
.yaat-avatar.sm { width: 40px; height: 40px; font-size: 13px; }
.yaat-avatar.md { width: 56px; height: 56px; font-size: 18px; }
.yaat-avatar.xl { width: 96px; height: 96px; font-size: 30px; border-radius: 16px; border-color: rgba(245,158,11,.5); }
img.yaat-avatar.xl { cursor: zoom-in; }
.yaat-avatar.ph { background: linear-gradient(135deg, #312e81, #1e293b); }
.yaat-app .yaat-item { justify-content: flex-start; }
.yaat-app .yaat-item .yaat-item-txt { flex: 1 1 auto; }
.yaat-who { display: flex; align-items: center; gap: 10px; }
.yaat-who h3 { margin: 4px 0 2px; }

.yaat-contestant-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.yaat-contestant-main h2 { word-break: break-word; }
@media (max-width: 520px) { .yaat-avatar.xl { width: 72px; height: 72px; } }

.yaat-bio { margin: 0 0 14px; padding: 10px 14px; border-radius: 11px; background: var(--y-panel-2); border: 1px solid var(--y-line); }
.yaat-bio summary { cursor: pointer; font-weight: 700; font-size: 13px; color: #cbd5e1; }
.yaat-bio p { margin-top: 8px; font-size: 14px; color: #e2e8f0; }
.yaat-photo-full { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 12px; }

.yaat-inspect { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: 11px; background: var(--y-panel-2); border: 1px solid var(--y-line); }
.yaat-notes { margin-top: 14px; padding: 12px 14px; border-radius: 11px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3); }
.yaat-notes p { margin-top: 6px; font-size: 14px; }

/* Modulo concorrente */
.yaat-cform { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .yaat-cform { grid-template-columns: 150px 1fr; } }
.yaat-photo-field { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.yaat-photo-prev {
	width: 140px; height: 140px; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background: var(--y-panel-2); border: 2px dashed #334155; color: #64748b; font-size: 12px; text-align: center;
}
.yaat-photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.yaat-fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 12px; }
.yaat-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: #cbd5e1; margin: 0; grid-column: span 6; }
@media (min-width: 640px) {
	.yaat-fields .w-s { grid-column: span 1; }
	.yaat-fields .w-l { grid-column: span 5; }
	.yaat-fields .w-m { grid-column: span 3; }
	.yaat-fields .w-full { grid-column: span 6; }
}
.yaat-app .yaat-fields input, .yaat-app .yaat-fields select, .yaat-app .yaat-fields textarea { width: 100%; }
.yaat-app input[type=date], .yaat-app textarea {
	font: inherit; font-size: 14px; color: #fff; background: #0b1120; border: 1px solid #334155; border-radius: 9px;
	padding: 8px 10px; min-height: 0; height: auto; box-shadow: none; max-width: 100%; color-scheme: dark;
}
.yaat-app textarea { resize: vertical; line-height: 1.4; }
.yaat-app input[type=date]:focus, .yaat-app textarea:focus { outline: 2px solid var(--y-accent); outline-offset: 0; border-color: var(--y-accent); }
.yaat-hint { font-weight: 600; font-size: 12px; color: var(--y-gold); min-height: 16px; }
.yaat-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* Importazione */
.yaat-import summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.yaat-import summary::-webkit-details-marker { display: none; }
.yaat-import summary::before { content: '▸'; color: var(--y-muted); transition: transform .15s; }
.yaat-import[open] summary::before { transform: rotate(90deg); }
.yaat-import summary h3 { display: inline; }
.yaat-import-body { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.yaat-app .yaat-file { position: relative; overflow: hidden; cursor: pointer; }
.yaat-app .yaat-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.yaat-import-res { padding: 12px 14px; border-radius: 11px; background: var(--y-panel-2); border: 1px solid var(--y-line); display: flex; flex-direction: column; gap: 10px; }
.yaat-err { color: #fda4af; font-weight: 700; }
.yaat-errlist { margin: 0; padding-left: 18px; color: #fda4af; font-size: 13px; max-height: 160px; overflow-y: auto; }
.yaat-preview { max-height: 320px; overflow-y: auto; }
.yaat-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #cbd5e1; margin: 0; }
.yaat-radio input { accent-color: var(--y-accent); margin: 0; }
.yaat-import-go { padding-top: 4px; }

.yaat-app .yaat-seg button { min-width: 0; }
.yaat-criteria { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .yaat-criteria { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.yaat-contestant-main > div { min-width: 0; }
.yaat-contestant .yaat-song, .yaat-inspect .yaat-song, .yaat-who .yaat-song { white-space: normal; }

/* =========================================================
 * v1.2 – Classifiche (Regia)
 * ======================================================= */
.yaat-small { font-size: 12px; }
.yaat-tb { color: var(--y-gold); font-weight: 900; margin-left: 2px; cursor: help; }
.yaat-ranks-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.yaat-ranks-grid > .yaat-card { margin-bottom: 0; }
@media (min-width: 900px) { .yaat-ranks-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.yaat-ranks-grid + * { margin-top: 14px; }
.yaat-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.yaat-lbl { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: #cbd5e1; margin: 0; }
.yaat-warnbox, .yaat-okbox, .yaat-infobox { padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin: 8px 0; }
.yaat-warnbox { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); color: #fcd34d; }
.yaat-okbox { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.35); color: #6ee7b7; }
.yaat-infobox { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.3); color: #c7d2fe; }
.yaat-okbox a, .yaat-infobox a { color: inherit; }

.yaat-rv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.yaat-rv-controls .yaat-seg { flex: 1 1 280px; }
.yaat-rv-now { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #0b1120; border: 1px solid var(--y-line); }
.yaat-rv-now strong { color: #fff; font-size: 18px; }
.yaat-rv-next { margin: 12px 0 0; font-size: 15px; color: #e2e8f0; }
.yaat-rv-next strong { color: var(--y-gold); }
.yaat-rv-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.yaat-app .yaat-btn.big { font-size: 17px; padding: 14px 24px; flex: 1 1 260px; }
.yaat-rv-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.yaat-rv-list li { display: grid; grid-template-columns: 24px 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--y-panel-2); border: 1px solid var(--y-line); font-size: 14px; }
.yaat-rv-list li.done { opacity: .55; }
.yaat-rv-list li.next { border-color: var(--y-gold); background: rgba(245,158,11,.08); }
.yaat-rv-chk { color: var(--y-ok); font-weight: 900; text-align: center; }
.yaat-rv-pos { font-weight: 900; color: var(--y-gold); }
.yaat-rv-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.yaat-rv-tot { font-weight: 800; color: #e2e8f0; }

/* =========================================================
 * v1.2 – Schermo proclamazione (proiettore)
 * ======================================================= */
html:has(body.yaat-screen-body) { background: #05070f; }
body.yaat-screen-body { margin: 0; min-height: 100vh; background: #05070f; overflow: hidden; }
body.yaat-nocursor, body.yaat-nocursor * { cursor: none !important; }
#yaat-root.yaat-screen { max-width: none; border-radius: 0; padding: 0; background: transparent; }
.yaat-scr {
	position: relative; min-height: 100vh; width: 100%; overflow: hidden;
	display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,158,11,.18), transparent 60%),
		radial-gradient(ellipse 60% 50% at 50% 110%, rgba(99,102,241,.25), transparent 60%),
		#05070f;
	color: #fff; text-align: center;
}
.yaat-scr h1, .yaat-scr h2 { color: #fff; margin: 0; letter-spacing: -0.02em; }
.yaat-scr-fs {
	position: fixed; right: 16px; bottom: 16px; opacity: 0; transition: opacity .3s;
	font: 600 13px system-ui, sans-serif; color: #cbd5e1; background: rgba(15,23,42,.8); border: 1px solid #334155; border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.yaat-scr:hover .yaat-scr-fs { opacity: 1; }
body.yaat-nocursor .yaat-scr-fs { opacity: 0; }

@keyframes yaat-scr-in { from { opacity: 0; transform: translateY(4vh) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes yaat-scr-glow { 0%, 100% { box-shadow: 0 0 6vh rgba(245,158,11,.35); } 50% { box-shadow: 0 0 12vh rgba(245,158,11,.6); } }
@keyframes yaat-scr-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.yaat-scr-idle, .yaat-scr-intro { animation: yaat-scr-in .8s ease-out both; }
.yaat-scr-logo {
	width: 18vh; height: 18vh; margin: 0 auto 4vh; border-radius: 4vh; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #f59e0b, #b45309); color: #05070f; font-size: 11vh; animation: yaat-scr-glow 3s ease-in-out infinite;
}
.yaat-scr-idle h1 { font-size: clamp(32px, 9vw, 13vh); font-weight: 900; line-height: 1; }
.yaat-scr-ed { font-size: clamp(16px, 2.4vw, 4vh); color: var(--y-gold); margin-top: 2vh; font-weight: 700; }
.yaat-scr-kicker { font-size: clamp(14px, 1.8vw, 3vh); color: #94a3b8; text-transform: uppercase; letter-spacing: .3em; margin-top: 4vh; }
.yaat-scr-intro .yaat-scr-kicker { margin: 0 0 4vh; }
.yaat-scr-intro h2 { font-size: clamp(20px, 3.5vw, 6vh); font-weight: 600; color: #cbd5e1; text-transform: uppercase; letter-spacing: .25em; }
.yaat-scr-intro h1 { font-size: clamp(48px, 13vw, 22vh); font-weight: 900; line-height: 1; margin: 1vh 0 3vh;
	background: linear-gradient(180deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yaat-scr-sub { font-size: clamp(16px, 2.4vw, 4vh); color: #cbd5e1; }

.yaat-scr-catlabel { position: absolute; top: 4vh; left: 0; right: 0; font-size: clamp(14px, 1.8vw, 3vh); color: var(--y-gold); text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }

.yaat-scr-reveal { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28vw); gap: 4vw; align-items: center; padding-top: 6vh; }
.yaat-scr-reveal.solo { grid-template-columns: minmax(0, 1fr); }
.yaat-scr-hero { display: flex; align-items: center; justify-content: center; gap: 5vw; text-align: left; animation: yaat-scr-in .9s cubic-bezier(.2,.8,.2,1) both; }
.yaat-scr-who { min-width: 0; }
.yaat-scr-pos { font-size: clamp(56px, 9vw, 18vh); font-weight: 900; line-height: .9; color: #e2e8f0; margin-bottom: 2vh; }
.yaat-scr-pos small { display: block; font-size: clamp(12px, 1.4vw, 2.4vh); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #94a3b8; margin-top: 1vh; }
.yaat-scr-hero.p1 .yaat-scr-pos { color: transparent; background: linear-gradient(180deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; }
.yaat-scr-hero.p2 .yaat-scr-pos { color: #e5e7eb; }
.yaat-scr-hero.p3 .yaat-scr-pos { color: #d97706; }
.yaat-scr-photo { flex: none; width: 46vh; height: 46vh; border-radius: 50%; object-fit: cover; border: .8vh solid #334155; background: #1e293b; display: flex; align-items: center; justify-content: center; font-size: 12vh; font-weight: 900; color: #cbd5e1; }
.yaat-scr-photo.ph { background: linear-gradient(135deg, #312e81, #1e293b); }
.yaat-scr-hero.p1 .yaat-scr-photo { border-color: #f59e0b; animation: yaat-scr-glow 2.4s ease-in-out infinite; }
.yaat-scr-hero.p2 .yaat-scr-photo { border-color: #cbd5e1; }
.yaat-scr-hero.p3 .yaat-scr-photo { border-color: #b45309; }
.yaat-scr-who h1 { font-size: clamp(32px, 6vw, 10vh); font-weight: 900; line-height: 1.05; }
.yaat-scr-bib { display: inline-block; font-size: clamp(12px, 1.4vw, 2.4vh); font-weight: 800; color: #c7d2fe; background: rgba(99,102,241,.25); padding: .4vh 1.2vh; border-radius: 1vh; margin-bottom: 1vh; }
.yaat-scr-song { font-size: clamp(16px, 2.2vw, 3.6vh); color: #cbd5e1; margin: 1.2vh 0 0; }
.yaat-scr-song span { color: #94a3b8; }
.yaat-scr-score { margin-top: 2vh; font-size: clamp(28px, 4.5vw, 8vh); font-weight: 900; color: var(--y-gold); }
.yaat-scr-score small { font-size: .35em; font-weight: 600; color: #94a3b8; margin-left: .6vh; letter-spacing: .1em; text-transform: uppercase; }

.yaat-scr-side { display: flex; flex-direction: column; gap: 1.4vh; text-align: left; }
.yaat-scr-mini { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 1.4vh; padding: 1.4vh 1.8vh; border-radius: 1.6vh; background: rgba(15,23,42,.75); border: 1px solid #1f2a44; font-size: clamp(14px, 1.6vw, 2.8vh); }
.yaat-scr-mini .pos { font-weight: 900; color: var(--y-gold); min-width: 4.5vh; }
.yaat-scr-mini .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yaat-scr-mini .sc { color: #cbd5e1; font-weight: 700; }
.yaat-scr-thumb { width: 6vh; height: 6vh; border-radius: 50%; object-fit: cover; background: #1e293b; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2vh; font-weight: 800; color: #cbd5e1; }

.yaat-scr-final { width: 100%; padding-top: 8vh; animation: yaat-scr-in .8s ease-out both; }
.yaat-scr-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2vw; align-items: end; max-width: 1400px; margin: 0 auto; }
.yaat-scr-col { display: flex; flex-direction: column; align-items: center; gap: 1.6vh; }
.yaat-scr-pod { display: flex; flex-direction: column; align-items: center; gap: .8vh; animation: yaat-scr-in .8s ease-out both; }
.yaat-scr-pod strong { font-size: clamp(16px, 2.4vw, 4.2vh); font-weight: 900; line-height: 1.1; }
.yaat-scr-podscore { font-style: normal; font-size: clamp(14px, 1.8vw, 3vh); color: var(--y-gold); font-weight: 800; }
.yaat-scr-pods { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5vh 2vw; }
.yaat-scr-col.multi .yaat-scr-podphoto { width: 13vh; height: 13vh; font-size: 4.5vh; }
.yaat-scr-col.multi .yaat-scr-pod strong { font-size: clamp(14px, 1.8vw, 3.2vh); }
.yaat-scr-podphoto { width: 18vh; height: 18vh; border-radius: 50%; object-fit: cover; border: .6vh solid #334155; background: #1e293b; display: flex; align-items: center; justify-content: center; font-size: 6vh; font-weight: 900; color: #cbd5e1; }
.yaat-scr-col.c1 .yaat-scr-podphoto { width: 24vh; height: 24vh; border-color: #f59e0b; animation: yaat-scr-glow 2.4s ease-in-out infinite; }
.yaat-scr-col.c2 .yaat-scr-podphoto { border-color: #cbd5e1; }
.yaat-scr-col.c3 .yaat-scr-podphoto { border-color: #b45309; }
.yaat-scr-step { width: 100%; border-radius: 1.6vh 1.6vh 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 2vh; transform-origin: bottom; animation: yaat-scr-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.yaat-scr-step b { font-size: clamp(28px, 5vw, 9vh); font-weight: 900; color: #05070f; }
.yaat-scr-col.c1 .yaat-scr-step { height: 26vh; background: linear-gradient(180deg, #fbbf24, #b45309); }
.yaat-scr-col.c2 .yaat-scr-step { height: 18vh; background: linear-gradient(180deg, #e5e7eb, #94a3b8); }
.yaat-scr-col.c3 .yaat-scr-step { height: 12vh; background: linear-gradient(180deg, #d97706, #78350f); }
.yaat-scr-rest { list-style: none; margin: 4vh auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2vh 3vw; font-size: clamp(14px, 1.8vw, 3vh); color: #cbd5e1; }
.yaat-scr-rest b { color: var(--y-gold); }
.yaat-scr-rest span { color: #94a3b8; margin-left: .6vh; }

@media (max-aspect-ratio: 1/1) {
	.yaat-scr-reveal { grid-template-columns: minmax(0, 1fr); }
	.yaat-scr-side { display: none; }
}

.yaat-scr-reveal .yaat-scr-who h1 { font-size: clamp(32px, 5.5vw, 10vh); }
.yaat-scr-reveal:not(.solo) .yaat-scr-photo { width: 38vh; height: 38vh; }
@media (max-aspect-ratio: 4/3) {
	.yaat-scr-hero { flex-direction: column; text-align: center; gap: 3vh; }
	.yaat-scr-photo, .yaat-scr-reveal:not(.solo) .yaat-scr-photo { width: 30vh; height: 30vh; }
}

.yaat-scr-final { padding-top: 0; }
.yaat-scr-final .yaat-scr-catlabel { position: static; margin-bottom: 6vh; }

/* v1.3 – Guida */
.yaat-help { margin: 0 0 12px; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.yaat-help li { margin-bottom: 8px; }
.yaat-help ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #cbd5e1; }
.yaat-help b, .yaat-help strong { color: #fff; }
.yaat-login-help { text-align: center; margin: 12px 0 0; font-size: 13px; }
.yaat-login-help a { color: #a5b4fc; }

.yaat-crit-head label { display: flex; flex-direction: column; gap: 2px; }
.yaat-crit-desc { font-size: 11px; font-weight: 500; color: #94a3b8; line-height: 1.3; }

/* v1.5 – Riepilogo "I miei voti" */
.yaat-bar .yaat-viewtabs { margin-left: auto; }
.yaat-sum-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.yaat-sum-stats > div { padding: 10px 12px; border-radius: 11px; background: var(--y-panel-2); border: 1px solid var(--y-line); }
.yaat-sum-stats span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--y-muted); }
.yaat-sum-stats strong { font-size: 22px; font-weight: 900; color: #fff; }
.yaat-sum-stats > div:nth-child(2) strong { color: var(--y-gold); }
@media (max-width: 600px) { .yaat-sum-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yaat-bar .yaat-viewtabs { margin-left: 0; width: 100%; } }
.yaat-app .yaat-sum-table tbody tr { cursor: pointer; }
.yaat-app .yaat-sum-table tr.dim td { color: #64748b; }
.yaat-app .yaat-sum-table tr.dim .yaat-avatar { opacity: .5; }
#yaat-summary[hidden], #yaat-vote-area[hidden] { display: none !important; }
.yaat-sum-cards { display: none; flex-direction: column; gap: 8px; }
.yaat-app .yaat-sum-card {
	display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%;
	text-align: left; font: inherit; color: var(--y-text); cursor: pointer; padding: 10px 12px; border-radius: 11px;
	background: var(--y-panel-2); border: 1px solid var(--y-line); text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0;
}
.yaat-app .yaat-sum-card.dim { opacity: .6; }
.yaat-sum-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.yaat-sum-txt strong { color: #fff; font-size: 14px; }
.yaat-sum-crit { font-size: 11px; color: var(--y-muted); line-height: 1.5; }
.yaat-sum-crit b { font-weight: 800; }
.yaat-sum-crit b.c1 { color: var(--y-c1); } .yaat-sum-crit b.c2 { color: var(--y-c2); } .yaat-sum-crit b.c3 { color: var(--y-c3); } .yaat-sum-crit b.c4 { color: var(--y-c4); }
.yaat-sum-tot { font-size: 20px; font-weight: 900; color: var(--y-gold); text-align: right; }
.yaat-sum-pos { text-align: center; color: var(--y-muted); }
@media (max-width: 700px) {
	#yaat-summary .yaat-table-wrap { display: none; }
	.yaat-sum-cards { display: flex; }
}

/* v1.6 – Supervisione */
.yaat-sv-ro { margin-left: auto; font-size: 12px; }
.yaat-sv-judges { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.yaat-sv-judge { padding: 12px; border-radius: 12px; background: var(--y-panel-2); border: 1px solid var(--y-line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.yaat-sv-judge.on { border-color: rgba(16,185,129,.45); }
.yaat-sv-judge.idle { border-color: rgba(245,158,11,.45); }
.yaat-sv-jhead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.yaat-sv-jhead strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yaat-sv-jhead .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.yaat-sv-judge.on .dot { background: var(--y-ok); box-shadow: 0 0 0 3px rgba(16,185,129,.2); animation: yaat-pulse 1.6s infinite; }
.yaat-sv-judge.idle .dot { background: var(--y-warn); }
.yaat-sv-login { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #64748b; }
.yaat-sv-st { font-size: 12px; font-weight: 700; color: var(--y-muted); }
.yaat-sv-judge.on .yaat-sv-st { color: #6ee7b7; }
.yaat-sv-judge.idle .yaat-sv-st { color: #fcd34d; }
.yaat-sv-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--y-muted); }
.yaat-sv-row b { color: #e2e8f0; }
.yaat-sv-judge .yaat-badge { align-self: flex-start; margin-top: 4px; }
.yaat-sv-online { color: var(--y-ok); font-size: 15px; }
.yaat-app .yaat-sv-table th.c { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yaat-app .yaat-sv-table td.yaat-sv-cell { padding: 6px 4px; line-height: 1.15; min-width: 64px; }
.yaat-app .yaat-sv-cell b { display: block; font-size: 14px; }
.yaat-app .yaat-sv-cell small { display: block; font-size: 10px; color: var(--y-muted); }
.yaat-app .yaat-sv-cell.ok b { color: #34d399; }
.yaat-app .yaat-sv-cell.ok { background: rgba(16,185,129,.06); }
.yaat-app .yaat-sv-cell.warn b, .yaat-app .yaat-sv-cell.warn small { color: #fcd34d; }
.yaat-app .yaat-sv-cell.warn { background: rgba(245,158,11,.08); }
.yaat-app .yaat-sv-cell.none { color: #475569; }
.yaat-app .yaat-sv-table tr.complete td:nth-child(2) strong { color: #6ee7b7; }
.yaat-app .yaat-sv-table tr.yaat-sv-foot td { border-top: 2px solid var(--y-line); color: var(--y-muted); }
.yaat-sv-log { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.yaat-sv-log li { display: grid; grid-template-columns: 92px 170px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; background: var(--y-panel-2); border-left: 3px solid #334155; font-size: 13px; }
.yaat-sv-log li.t-voti { border-left-color: var(--y-ok); }
.yaat-sv-log li.t-sblocchi { border-left-color: var(--y-warn); }
.yaat-sv-log li.t-accessi { border-left-color: var(--y-accent); }
.yaat-sv-log li.t-regia { border-left-color: var(--y-ko); }
.yaat-sv-time { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--y-muted); }
.yaat-sv-who { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yaat-sv-text { color: #cbd5e1; }
@media (max-width: 700px) {
	.yaat-sv-log li { grid-template-columns: 1fr; gap: 2px; }
	.yaat-sv-ro { margin-left: 0; }
}

/* v1.7 – Pagine a schermo intero (modello senza tema) */
html:has(body.yaat-fullpage) { background: #070b16 !important; }
body.yaat-fullpage {
	margin: 0 !important; padding: 0 !important; min-height: 100vh;
	background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(245,158,11,.10), transparent 60%), #070b16 !important;
	color: #e2e8f0;
}
body.yaat-fullpage::before, body.yaat-fullpage::after { display: none !important; }
body.yaat-fullpage .yaat-fullpage-main { display: block; max-width: 1680px; margin: 0 auto; padding: 18px 20px 32px; box-sizing: border-box; }
body.yaat-fullpage #yaat-root.yaat-app { max-width: none; border-radius: 18px; }
body.yaat-fullpage .yaat-login-wrap { max-width: 520px; margin: 6vh auto 0; }
@media (max-width: 600px) {
	body.yaat-fullpage .yaat-fullpage-main { padding: 8px; }
	body.yaat-fullpage #yaat-root.yaat-app { border-radius: 12px; }
}

/* v1.8 – Pagina di accesso unica */
.yaat-access { max-width: 560px; margin: 0 auto; padding: 4vh 0 24px; }
.yaat-access-head { text-align: center; margin-bottom: 18px; }
.yaat-access-head .yaat-logo { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.yaat-app .yaat-access-head h1 { font-size: 26px; letter-spacing: .02em; }
.yaat-access-head .yaat-pill { margin-top: 8px; }
.yaat-access-sub { color: var(--y-muted); margin-top: 10px !important; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
.yaat-access-card { padding: 22px; border-color: rgba(99,102,241,.35); }
.yaat-access-card > p.yaat-muted { margin-bottom: 14px; }
.yaat-access-form { display: flex; flex-direction: column; gap: 12px; }
.yaat-access-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #cbd5e1; margin: 0; }
.yaat-app .yaat-access-form input[type=text], .yaat-app .yaat-access-form input[type=password] {
	width: 100%; font: inherit; font-size: 17px; color: #fff; background: #0b1120; border: 1px solid #334155; border-radius: 10px; padding: 12px 14px; box-shadow: none; height: auto;
}
.yaat-app .yaat-access-form input:focus { outline: 2px solid var(--y-accent); border-color: var(--y-accent); }
.yaat-access-form label.yaat-radio { flex-direction: row; align-items: center; font-weight: 500; }
.yaat-errbox { padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin: 0 0 12px; background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.4); color: #fecdd3; }
.yaat-access-hello { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 16px; }
.yaat-access-hello strong { font-size: 22px; color: #fff; }
.yaat-access-roles { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.yaat-access-dest { display: flex; flex-direction: column; gap: 10px; }
.yaat-access-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--y-panel-2); border: 1px solid var(--y-line); }
.yaat-access-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #0b1120; background: linear-gradient(135deg, #f59e0b, #d97706); }
.yaat-access-txt { display: flex; flex-direction: column; min-width: 0; }
.yaat-access-txt strong { color: #fff; font-size: 16px; }
.yaat-access-txt span { color: var(--y-muted); font-size: 12px; }
.yaat-access-out { margin-top: 16px !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) {
	.yaat-access-item { grid-template-columns: 40px minmax(0, 1fr); }
	.yaat-access-item .yaat-btn, .yaat-access-item > .yaat-muted { grid-column: 1 / -1; }
}

/* v1.9 – Modifica voti e chiusura categorie */
.yaat-closed-tag { color: #fcd34d; font-size: 9px; letter-spacing: .04em; margin-left: 4px; }
.yaat-draft b { color: #fff; }
.yaat-locked .yaat-btn.sm { flex: none; }
.yaat-close-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.yaat-close-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--y-panel-2); border: 1px solid var(--y-line); }
.yaat-close-item > div { display: flex; flex-direction: column; min-width: 0; }
.yaat-close-item strong { color: #fff; font-size: 15px; }
.yaat-close-item.closed { border-color: rgba(245,158,11,.45); }
.yaat-app .yaat-sv-cell.editok { box-shadow: inset 0 0 0 2px rgba(245,158,11,.5); }
.yaat-jcard .yaat-link { font-size: 11px; }
