.scramble-shell { max-width: 880px; margin: 0 auto; padding: 12px; }
.scramble-shell h1 { font-size: 1.6rem; }
.scramble-shell h2 { font-size: 1.25rem; margin-top: 0; }
.scramble-card, .scramble-team-editor { margin: 20px 0; padding: 16px; border: 1px solid #bacac2; border-radius: 10px; background: #fff; }
.scramble-shell table { width: 100%; border-collapse: collapse; }
.scramble-shell th, .scramble-shell td { padding: 9px 5px; border-bottom: 1px solid #dce4df; text-align: left; }
.scramble-shell button { min-height: 44px; padding: 8px 14px; cursor: pointer; border: 1px solid #24583d; border-radius: 6px; color: #fff; background: #24583d; font-size: 1rem; }
.scramble-shell button:disabled { opacity: .55; cursor: wait; }
.scramble-shell input:not([type=checkbox]), .scramble-shell select { box-sizing: border-box; min-height: 44px; padding: 8px; border: 1px solid #7b8f82; border-radius: 5px; font-size: 16px; max-width: 100%; }
.scramble-shell label { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; }
.scramble-shell label:has(input[type=checkbox]) { flex-direction: row; align-items: center; }
.scramble-strokes { width: 85px; font-weight: bold; text-align: center; }
.scramble-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.scramble-message:not(:empty) { position: sticky; top: 0; background: #fff4d6; padding: 12px; border: 1px solid #c79b39; border-radius: 6px; z-index: 2; }
.scramble-member-selects, .scramble-closest-form, .scramble-create-user { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.scramble-shell details { padding: 10px 0; border-bottom: 1px solid #dce4df; }
.scramble-shell summary { cursor: pointer; min-height: 36px; }
.scramble-qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.scramble-qr-card { border: 1px solid #aaa; padding: 18px; break-inside: avoid; background: white; }
@media print {
  body:has(.scramble-qr-grid) .menu, body:has(.scramble-qr-grid) .menu-bar, body:has(.scramble-qr-grid) .app-logo,
  body:has(.scramble-qr-grid) .scramble-actions, body:has(.scramble-qr-grid) .scramble-print,
  body:has(.scramble-qr-grid) .scramble-message { display: none !important; }
}

.scramble-import-scroll { overflow-x: auto; }
.scramble-import-scroll table { min-width: 650px; }
.scramble-import-scroll td { vertical-align: top; overflow-wrap: anywhere; }
.scramble-import-error { background: #fff0ed; color: #852820; }
.scramble-team-editor { min-width: 0; }
