[hidden] { display: none !important; }
.website-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; flex: 0 0 auto;
  min-height: 45px; padding: 6px 18px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.website-mode { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.website-mode .icon-button { width: 27px; min-width: 27px; height: 29px; }
.website-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.website-tools button { min-height: 30px; height: 30px; font-size: 11px; padding: 5px 8px; }
.website-tools .icon-button { width: 30px; padding: 6px; }
.website-tools select { height: 30px; font-size: 11px; padding: 4px 7px; max-width: 190px; }
.website-console-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; padding: 6px 7px; font-size: 11px; }
.website-roster-summary, .website-status { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.website-status.error { color: var(--danger); }
.website-status { margin-left: auto; }
.character-owned { display: block; color: var(--accent); font-size: 9px; font-weight: 400; }
.roster-details dl { margin: 0; display: grid; gap: 9px; font-size: 11px; }
.roster-details dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.roster-details dt { color: var(--muted); overflow-wrap: anywhere; }
.roster-details dd { text-align: right; margin: 0; overflow-wrap: anywhere; }
.website-dialog { width: min(410px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
.website-dialog .dialog-heading { margin: 0; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.website-dialog .dialog-heading h2 { font-size: 14px; }
.website-dialog .field { margin: 17px 20px; }
.website-dialog .form-error { margin: 12px 20px; }
.website-dialog .dialog-actions { padding: 12px 18px; margin: 0; border-top: 1px solid var(--line); }
.website-qr-content { text-align: center; padding: 18px 20px 6px; }
.website-qr-content img { display: block; margin: 0 auto 14px; max-width: 100%; background: white; image-rendering: pixelated; }
.website-qr-content p { margin: 9px 0; font-size: 12px; line-height: 1.6; }
.website-qr-content .muted { font-size: 11px; }
@media (max-width: 980px) {
  .website-toolbar { padding-inline: 10px; gap: 6px 9px; }
  .website-tools { gap: 5px; }
  .website-tools select { max-width: 152px; }
  .website-status { margin-left: 0; }
}
@media (max-width: 600px) {
  .website-mode { font-size: 10px; }
  #consoleTools { width: 100%; }
  #consoleTools select { flex: 1; max-width: none; min-width: 70px; }
  #savedCombatProjects { order: 1; }
  #refreshCombatProjects { order: 2; }
  #combatAccount { order: 3; }
  #readConsoleRoster { order: 4; }
  #saveCombatOnline { order: 5; }
  #applyCombatStrategy { order: 6; }
  .website-tools button { white-space: nowrap; }
  .website-roster-summary { flex-basis: auto; }
  .website-status { flex-basis: 100%; }
  .website-status:empty { display: none; }
}
