.v710-state-bridge[hidden] {
  display: none !important;
}

.v710-summary.magic-summary {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.v710-summary strong {
  font-size: 24px;
}

.v710-score-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.v710-score {
  text-align: center;
  border-right: 1px solid #5e503e;
  padding: 8px;
}

.v710-score:last-child {
  border-right: 0;
}

.v710-score small,
.v710-score b,
.v710-score span {
  display: block;
}

.v710-score small {
  min-height: 38px;
  font-size: 12px;
}

.v710-score b {
  font: 27px Georgia, serif;
  color: var(--gold, #d8b476);
  margin: 8px 0;
}

.v710-score span {
  font-size: 13px;
}

/* Compact sidebar panel for Active conditions under Annulla ultimo uso */
.v710-conditions-sidebar.livebox {
  padding: 10px;
  margin: 8px 0 10px;
  border: 1px solid #6b5842;
  border-radius: 7px;
  background: linear-gradient(160deg, #1d1920, #161519);
}

.v710-conditions-sidebar h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--gold, #d8b476);
}

.v710-cond-empty {
  margin: 4px 0 8px;
  font-size: 12px;
}

.v710-cond-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.v710-condition-row {
  padding: 7px 8px;
  margin: 0;
  border: 1px solid #6a5343;
  border-radius: 5px;
  background: #241b2088;
}

.v710-cond-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.v710-cond-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.v710-cond-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ffffff33;
  color: #fff;
  flex: none;
}

.v710-cond-icon svg {
  width: 14px;
  height: 14px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v710-cond-head strong {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink, #ede9e2);
  overflow-wrap: anywhere;
}

.v710-cond-lvl-badge {
  flex: none;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #96784f;
  background: #2f2317;
  color: var(--gold, #d8b476);
}

.v710-cond-remove {
  font-size: 10px !important;
  padding: 3px 6px !important;
  flex-shrink: 0;
  border-color: #8c554d;
}

.v710-cond-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted, #b6b0a6);
}

.v710-cond-level input {
  width: 56px;
  margin: 0;
  padding: 3px 6px;
  font-size: 12px;
  text-align: center;
}

.v710-cond-notes {
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px dotted #53463b;
}

.v710-cond-notes summary {
  font-size: 11px;
  color: var(--gold, #d8b476);
}

.v710-cond-notes textarea {
  min-height: 58px;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px;
  margin: 5px 0 0;
}

.v710-cond-note-text {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink, #ede9e2);
}

.v710-cond-error {
  font-size: 12px;
  margin: 4px 0 0;
  padding: 7px 8px;
  background: #ffe082;
  color: #111;
  border-color: #d7aa29;
}

.v710-cond-add {
  padding-top: 7px;
  border-top: 1px solid #493e34;
}

.v710-cond-add label {
  font-size: 11px;
  margin: 0;
}

.v710-cond-add select {
  font-size: 12px;
  padding: 5px 7px;
  margin: 4px 0 0;
}

.v710-cond-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.v710-cond-hint a {
  color: var(--gold, #d8b476);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#profileform[data-v710-reduced] label[hidden],
#profileform[data-v710-reduced] p[hidden] {
  display: none !important;
}

#profileform[data-v710-reduced] fieldset {
  padding: 12px;
}

#profileform[data-v710-reduced] fieldset > label {
  margin-bottom: 0;
}

.v710-form-note {
  padding: 12px;
  border: 1px solid #806541;
  border-radius: 6px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .v710-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v710-score {
    border-right: 0;
    border-bottom: 1px solid #5e503e;
  }

  .v710-summary.magic-summary {
    grid-template-columns: 1fr 1fr;
  }

  .v710-summary strong {
    font-size: 20px;
  }

  #livepanel > .v710-conditions-sidebar {
    grid-column: 1 / -1;
    margin: 0;
    padding: 7px;
  }

  .v710-conditions-sidebar h3 {
    font-size: 13px;
    margin-bottom: 5px;
  }
}

@media print {
  .v710-score b {
    color: black;
  }

  .v710-condition-row {
    background: white;
  }
}
