/* Portale di Studio Live Pro Cloud: stesso aspetto della regia (scuro, blu #3fa7ff) */
:root { --bg: #11151c; --panel: #171c25; --panel-2: #1d2430; --line: #2a3342; --text: #e6edf6; --muted: #8b97a8; --accent: #3fa7ff; --go: #22c55e; --warn: #f59e0b; --red: #ef4444; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--accent); }
button, input { font: inherit; }
input { background: #0d1117; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.btn { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: #0d4a80; border-color: var(--accent); }
.btn.go { background: #14532d; border-color: var(--go); }
.btn.danger { border-color: #7f1d1d; color: #fca5a5; }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: Consolas, "SF Mono", monospace; }
header { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(#1a2029, #141922); flex-wrap: wrap; }
header img { height: 34px; }
header .title { font-weight: 700; font-size: 16px; }
header .spacer { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.login { max-width: 380px; margin: 12vh auto 0; display: flex; flex-direction: column; gap: 10px; }
.login .brand { text-align: center; margin-bottom: 8px; }
.login .brand img { height: 52px; }
.login input, .login .btn { width: 100%; }
.new { margin-bottom: 16px; }
.new input { flex: 1 1 200px; }
.list { display: grid; gap: 10px; }
.radio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: center; }
.radio .name { font-weight: 700; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: #475569; display: inline-block; }
.pill.attiva i { background: var(--go); box-shadow: 0 0 6px var(--go); }
.pill.avvio i, .pill.riavvio i { background: var(--warn); }
.pill.non-risponde i { background: var(--red); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { padding: 30px; text-align: center; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 18px; width: min(520px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(5, 8, 12, .7); }
dialog h3 { margin-top: 0; }
.secret { font-family: Consolas, monospace; font-size: 18px; background: #0d1117; border: 1px dashed var(--accent); border-radius: 8px; padding: 10px; user-select: all; word-break: break-all; }
#toast { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 10; }
#toast div { background: var(--panel-2); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 8px; max-width: 360px; }
#toast div.error { border-left-color: var(--red); }
body.pt-msg main { max-width: 520px; margin: 18vh auto; text-align: center; padding: 18px; }
@media (max-width: 760px) { .radio { grid-template-columns: 1fr; } .actions { justify-content: flex-start; } }
.lic-attiva { color: #86efac; }
.lic-da-attivare, .lic-da-ricontrollare, .lic-disattivata { color: #fbbf24; }
