/* Fascia, icone e account condivisi da tutte le pagine. */
.rc-header, #fascia.rc-header {
  position:relative; z-index:20; flex:0 0 auto; width:100%; min-height:64px;
  height:auto; margin:0; padding:10px 18px; box-sizing:border-box;
  display:flex; align-items:center; flex-wrap:nowrap; gap:18px;
  background:linear-gradient(105deg,#343b42 0%,#606971 35%,#91989f 80%);
  border:0; border-bottom:1px solid #68737d; color:#f7fafc;
  font:14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
}
#fascia.rc-header { display:grid; }
.rc-header .rc-brand, .rc-header .rc-brand:visited, .rc-header .rc-brand:hover {
  display:flex; align-items:center; flex:none; gap:10px; margin:0; padding:0;
  color:#ed1c24; text-decoration:none; background:none; border:0;
  font:800 28px/1.1 "Arial Narrow","Roboto Condensed","Helvetica Neue Condensed","Liberation Sans Narrow",system-ui,sans-serif;
  letter-spacing:.01em;
}
.rc-brand img { display:block; width:58px; height:26px; object-fit:contain; }
.rc-brand [data-release] { font-size:.55em; white-space:nowrap; }
@media(max-width:540px) {
  .rc-brand [data-release] { display:block; font-size:.55em; }
}
.rc-header .rc-page-title { color:#f7fafc; font-size:18px; font-weight:600; }
.rc-header .rc-actions { display:flex; align-items:center; flex:none; gap:8px; margin-left:auto; }
.rc-header .rc-icon, .rc-header .riga_ingranaggio > button, .rc-header .riga_ingranaggio > a {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px;
  width:44px; height:44px; min-width:44px; margin:0; padding:0; box-sizing:border-box;
  color:#16222c; background:#f7fafc; border:1px solid #6c737b; border-radius:9px;
  text-decoration:none; cursor:pointer; box-shadow:0 1px 2px #0003;
}
.rc-header .rc-icon:hover, .rc-header .riga_ingranaggio > button:hover, .rc-header .riga_ingranaggio > a:hover { background:#e2ebf2; }
.rc-header .rc-icon svg, .rc-header .riga_ingranaggio > button svg, .rc-header .riga_ingranaggio > a svg { width:22px; height:22px; }
.rc-header .rc-icon:focus-visible, #menu_conto a:focus-visible, #menu_conto button:focus-visible { outline:2px solid #137abc; outline-offset:2px; }
.rc-header [hidden], #account-menu [hidden] { display:none!important; }
#menu_conto {
  position:absolute; right:0; top:100%; z-index:25; margin:5px 0 0; padding:10px;
  width:288px; max-width:calc(100vw - 16px); box-sizing:border-box;
  max-height:calc(100dvh - 80px); overflow:auto; text-align:left;
  background:#f7fafc; border:1px solid #6c737b; border-radius:9px;
  color:#16222c; box-shadow:0 2px 6px #0006; font:16px/1.4 system-ui,sans-serif;
}
#menu_conto .testata { display:block; width:100%; height:auto; min-height:0; margin:0; padding:0; border:0; background:none; }
#menu_conto .conto { display:flex; flex-direction:column; align-items:stretch; flex-wrap:nowrap; gap:8px; width:100%; margin:0; padding:0; border:0; }
#menu_conto #conto_dentro_extra { margin-top:8px; }
#menu_conto .conto a, #menu_conto .conto button {
  display:flex; align-items:center; justify-content:flex-start; gap:6px;
  width:100%; box-sizing:border-box; text-align:left; padding:11px 13px; min-height:44px;
  border:1px solid #b7c3ce; border-radius:6px; background:#eaf0f5;
  font:inherit; font-weight:400; text-decoration:none; color:#16222c; cursor:pointer;
}
#menu_conto .conto a:hover, #menu_conto .conto button:hover:not([disabled]) { background:#dbe6ee; border-color:#8398aa; }
#menu_conto #conto_chi { padding:5px 13px 8px; text-align:left; font-weight:700; }
#menu_conto .conto button[disabled] { color:#7c8996; cursor:default; }
#menu_conto #conto_dice:empty { display:none; }
#menu_conto #conto_dice { margin:8px 0 0; font-size:13px; }
.rc-header .account-avatar { width:32px; height:32px; border-radius:50%; background:#d91c35; color:white; display:flex; align-items:center; justify-content:center; font:bold 13px/1 system-ui; overflow:hidden; }
.rc-header .account-avatar img { width:100%; height:100%; object-fit:cover; }
/* Il dialogo account deve restare leggibile anche nel tema scuro dell'analisi. */
#account-menu { color:#17191f; background:#fff; border:1px solid #d4d7df; border-radius:16px; padding:24px; width:min(400px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; box-sizing:border-box; font:16px/1.4 system-ui; }
#account-menu::backdrop { background:#17202e88; }
#account-menu header { display:flex; justify-content:space-between; align-items:center; gap:16px; height:auto; min-height:0; margin:0 0 16px; padding:0; background:none; border:0; }
#account-menu h2 { margin:0; padding:0; background:none; color:#17191f; font-size:21px; }
#account-menu header button { padding:4px 10px; font-size:24px; background:#17191f; color:#fff; border-radius:6px; border:1px solid #17191f; cursor:pointer; }
#account-menu .account-choice { display:block; width:100%; box-sizing:border-box; text-align:left; background:#f4f5f8; color:#17191f; border:1px solid #d4d7df; border-radius:8px; padding:16px; margin-top:10px; text-decoration:none; font:600 16px/1.4 system-ui; cursor:pointer; }
#account-menu .account-choice:hover:not(:disabled) { background:#e9eef6; }
#account-menu .account-choice:disabled { opacity:.45; cursor:default; }
.rc-form-page { padding:0 0 48px; }
.rc-form-page > main { margin:28px auto 0; width:calc(100% - 32px); }
.rc-test-heading { flex:none; margin:0; padding:24px 24px 0; background:#000; color:#e7edf2; }
.rc-test-heading h1 { margin:0; padding:0; background:none; font:650 20px/1.4 system-ui; }
.rc-analysis-tabs { display:flex; flex-wrap:wrap; gap:24px; margin:17px 0 0; border-bottom:1px solid #35404d; }
.rc-analysis-tabs a { display:block; padding:14px 0; color:#a9b7c7!important; text-decoration:none; font:500 14px/1.4 system-ui; border-bottom:3px solid transparent; }
.rc-analysis-tabs a.active, .rc-analysis-tabs a:hover { color:white!important; border-bottom-color:#f32543; }
.rc-source { margin:0; padding:8px 24px; color:#ffc64d; font-size:12px; }
.analisi-split .rc-test-heading { padding-bottom:14px; }
@media(max-width:600px) {
  .rc-header, #fascia.rc-header { padding:8px 10px; gap:10px; }
  .rc-header .rc-brand { font-size:22px; gap:6px; }
  .rc-brand img { width:44px; height:22px; }
  .rc-header .rc-page-title { display:none; }
  .rc-header .rc-actions { gap:6px; }
  .rc-test-heading { padding:16px 12px 0; }
  .rc-test-heading h1 { font-size:17px; }
  .rc-analysis-tabs { gap:18px; }
}

/* Attesa delle operazioni in primo piano, con soglia misurata di tre secondi. */
.rc-work-indicator{position:fixed;right:18px;bottom:18px;z-index:10000;display:flex;align-items:center;gap:10px;background:#172935;color:#fff;border:1px solid #668ba1;border-radius:10px;padding:12px 18px;box-shadow:0 4px 20px #0006;font:15px/1.4 system-ui;pointer-events:none}
.rc-work-indicator[hidden]{display:none}.rc-hourglass{font-size:24px;animation:rc-hourglass-turn 2s ease-in-out infinite}@keyframes rc-hourglass-turn{0%,35%{transform:rotate(0)}70%,100%{transform:rotate(180deg)}}@media(prefers-reduced-motion:reduce){.rc-hourglass{animation:none}}
#race-tests.race-unavailable{opacity:.5}
