/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .static {
    position: static;
  }
  .hidden {
    display: none;
  }
}
@layer base {
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  button, input, select {
    font: inherit;
  }
  button {
    cursor: pointer;
  }
  button:disabled {
    cursor: not-allowed;
    opacity: .55;
  }
  dialog::backdrop {
    background: rgba(15, 23, 42, .58);
  }
}
@layer components {
  .app-body {
    min-height: 100vh;
    background: #f5f5f4;
    color: #1c1917;
  }
  .page-wrap {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
  }
  .main-content {
    padding: 22px 0 56px;
  }
  .site-header {
    background: #fff;
    border-bottom: 1px solid #e7e5e4;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .brand-block {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #166534;
    font-size: 20px;
  }
  .brand-name {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
  }
  .brand-subtitle {
    margin: 5px 0 0;
    font-size: 12px;
    color: #78716c;
  }
  .button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 800;
    transition: transform .14s ease, background .14s ease;
  }
  .button:active {
    transform: scale(.98);
  }
  .button-dark {
    background: #1c1917;
    color: #fff;
  }
  .button-dark:hover {
    background: #292524;
  }
  .button-green {
    background: #166534;
    color: #fff;
  }
  .button-green:hover {
    background: #14532d;
  }
  .button-full {
    width: 100%;
  }
  .text-button {
    border: 0;
    background: transparent;
    color: #57534e;
    font-weight: 700;
    padding: 8px;
  }
  .setup-alert {
    border: 1px solid #f59e0b;
    background: #fffbeb;
    border-radius: 14px;
    padding: 15px 16px;
    margin-bottom: 16px;
  }
  .setup-alert strong {
    display: block;
    color: #92400e;
  }
  .setup-alert p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #a16207;
  }
  .scoreboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .scoreboard-item {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 13px;
    padding: 12px;
  }
  .scoreboard-item span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #a8a29e;
  }
  .scoreboard-item strong {
    display: block;
    margin-top: 3px;
    font-size: 24px;
    line-height: 1.05;
  }
  .draw-card {
    background: #fff;
    border: 1px solid #dedbd7;
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
  }
  .draw-copy h2, .results-heading h2, .section-heading h2 {
    margin: 3px 0 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.035em;
  }
  .draw-copy p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #78716c;
  }
  .draw-copy p.preview-error {
    color: #b91c1c;
  }
  .eyebrow {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #166534;
  }
  .draw-controls {
    display: grid;
    gap: 12px;
  }
  .number-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e7e5e4;
    border-radius: 13px;
    padding: 10px 12px;
  }
  .number-control span {
    font-size: 13px;
    font-weight: 750;
  }
  .number-control input {
    width: 66px;
    border: 1px solid #d6d3d1;
    border-radius: 9px;
    padding: 7px 8px;
    text-align: center;
    font-weight: 900;
    outline: none;
  }
  .number-control input:focus {
    border-color: #166534;
    box-shadow: 0 0 0 3px rgba(22,101,52,.10);
  }
  .toggle-control {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #e7e5e4;
    border-radius: 13px;
    padding: 10px 12px;
    cursor: pointer;
  }
  .toggle-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .toggle-ui {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d6d3d1;
    position: relative;
    flex: 0 0 auto;
    transition: background .16s ease;
  }
  .toggle-ui::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 3px;
    top: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
    transition: transform .16s ease;
  }
  .toggle-control input:checked + .toggle-ui {
    background: #166534;
  }
  .toggle-control input:checked + .toggle-ui::after {
    transform: translateX(18px);
  }
  .toggle-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .toggle-text b {
    font-size: 13px;
  }
  .toggle-text small {
    margin-top: 2px;
    color: #78716c;
    font-size: 11px;
  }
  .hard-rule {
    border-left: 3px solid #166534;
    background: #f0fdf4;
    color: #3f6212;
    padding: 9px 11px;
    font-size: 12px;
    border-radius: 0 9px 9px 0;
  }
  .players-section {
    margin-top: 28px;
  }
  .section-heading, .results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
  }
  .section-heading > span {
    display: none;
    font-size: 12px;
    color: #78716c;
  }
  .players-grid {
    display: grid;
    gap: 10px;
  }
  .player-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 15px;
    padding: 13px;
  }
  .player-card-main {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .player-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d6d3d1;
    flex: 0 0 auto;
  }
  .player-card-copy {
    min-width: 0;
    flex: 1;
  }
  .player-card-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }
  .player-card-name-row h3 {
    margin: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-card-copy p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #78716c;
  }
  .player-card-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .icon-text-button {
    border: 0;
    background: transparent;
    color: #57534e;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 2px;
  }
  .icon-text-button.danger {
    color: #b91c1c;
  }
  .weight-badge {
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    background: #f5f5f4;
    color: #57534e;
    border: 1px solid #e7e5e4;
  }
  .weight-pesado {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
  }
  .weight-leve {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
  }
  .player-metrics {
    margin-top: 11px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #f0efed;
    padding-top: 9px;
  }
  .player-metrics div {
    text-align: center;
    border-right: 1px solid #f0efed;
  }
  .player-metrics div:last-child {
    border-right: 0;
  }
  .player-metrics span {
    display: block;
    font-size: 9px;
    font-weight: 900;
    color: #a8a29e;
    letter-spacing: .06em;
  }
  .player-metrics strong {
    display: block;
    margin-top: 1px;
    font-size: 14px;
  }
  .blocked-note {
    margin: 9px 0 0;
    padding-top: 8px;
    border-top: 1px solid #f0efed;
    color: #b91c1c;
    font-size: 11px;
  }
  .empty-roster {
    grid-column: 1 / -1;
    border: 1px dashed #c9c5c1;
    border-radius: 16px;
    background: #fafaf9;
    text-align: center;
    padding: 36px 16px;
  }
  .empty-roster strong {
    display: block;
    margin-top: 7px;
  }
  .empty-roster p {
    margin: 5px auto 0;
    color: #78716c;
    font-size: 12px;
    max-width: 300px;
  }
  .empty-ball {
    font-size: 30px;
  }
  .results-section {
    margin: 28px 0 36px;
    scroll-margin-top: 90px;
  }
  .results-heading p {
    margin: 6px 0 0;
    color: #78716c;
    font-size: 12px;
  }
  .results-heading p strong {
    color: #166534;
    font-size: 14px;
  }
  .carousel-actions {
    display: flex;
    gap: 7px;
  }
  .circle-button {
    width: 40px;
    height: 40px;
    border: 1px solid #d6d3d1;
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
  }
  .teams-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #a8a29e transparent;
    padding: 1px 1px 10px;
  }
  .team-slide {
    flex: 0 0 min(88vw, 430px);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #dedbd7;
    border-radius: 18px;
    overflow: hidden;
  }
  .team-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
  }
  .team-topline span {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 900;
    color: #a8a29e;
  }
  .team-topline h3 {
    margin: 2px 0 0;
    font-size: 19px;
  }
  .team-score-mini {
    text-align: right;
  }
  .team-score-mini b {
    display: block;
    font-size: 19px;
    color: #166534;
  }
  .team-score-mini small {
    display: block;
    color: #a8a29e;
    font-size: 9px;
  }
  .football-pitch {
    height: 485px;
    margin: 0 12px;
    background-color: #3c914f;
    border: 3px solid #fff;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  }
  .football-pitch::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 50px, rgba(0,0,0,.025) 50px 100px);
    pointer-events: none;
  }
  .pitch-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .pitch-half {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255,255,255,.9);
  }
  .pitch-circle {
    position: absolute;
    width: 96px;
    height: 96px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
  }
  .pitch-circle::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .pitch-box {
    width: 54%;
    height: 62px;
    border: 2px solid rgba(255,255,255,.9);
    position: absolute;
    left: 23%;
  }
  .pitch-box-top {
    top: -2px;
  }
  .pitch-box-bottom {
    bottom: -2px;
  }
  .pitch-row {
    position: absolute;
    left: 3%;
    right: 3%;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 4px;
    z-index: 2;
  }
  .pitch-attack {
    top: 13%;
  }
  .pitch-midfield {
    top: 39%;
  }
  .pitch-defense {
    top: 64%;
  }
  .pitch-goalkeeper {
    top: 82%;
  }
  .pitch-player {
    width: 72px;
    text-align: center;
    min-width: 0;
  }
  .pitch-player img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.28);
    background: #fff;
  }
  .pitch-player span {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-weight: 900;
    font-size: 10px;
    line-height: 1.08;
    text-shadow: 0 1px 3px rgba(0,0,0,.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .team-details {
    padding: 12px 15px 14px;
  }
  .team-details > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .team-details > div > div {
    text-align: center;
    border-right: 1px solid #e7e5e4;
  }
  .team-details > div > div:last-child {
    border-right: 0;
  }
  .team-details span {
    display: block;
    color: #a8a29e;
    font-size: 9px;
    font-weight: 900;
  }
  .team-details strong {
    display: block;
    font-size: 13px;
  }
  .team-details p {
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px solid #f0efed;
    color: #78716c;
    text-align: center;
    font-size: 10px;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding-top: 9px;
  }
  .carousel-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #d6d3d1;
  }
  .carousel-dot.is-active {
    background: #166534;
    transform: scale(1.25);
  }
  .player-dialog {
    width: min(680px, calc(100% - 18px));
    max-height: calc(100vh - 18px);
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: #fff;
    color: #1c1917;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
  }
  .player-form {
    padding: 18px;
  }
  .dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e7e5e4;
  }
  .dialog-head h2 {
    margin: 2px 0 0;
    font-size: 24px;
    letter-spacing: -.035em;
  }
  .form-section {
    margin-top: 18px;
    display: grid;
    gap: 11px;
  }
  .field-label {
    display: grid;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #57534e;
  }
  .text-field {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d6d3d1;
    border-radius: 11px;
    background: #fff;
    padding: 0 12px;
    color: #1c1917;
    outline: none;
  }
  .text-field:focus {
    border-color: #166534;
    box-shadow: 0 0 0 3px rgba(22,101,52,.09);
  }
  .form-section-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
  }
  .form-section-title span {
    font-size: 12px;
    font-weight: 900;
  }
  .form-section-title small {
    color: #a8a29e;
    font-size: 10px;
    text-align: right;
  }
  .avatar-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
  .avatar-option {
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 2px;
    background: transparent;
    aspect-ratio: 1;
  }
  .avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
  .avatar-option.is-selected {
    border-color: #166534;
    background: #dcfce7;
  }
  .weight-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .weight-picker input {
    position: absolute;
    opacity: 0;
  }
  .weight-picker span {
    display: grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid #d6d3d1;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 850;
    color: #57534e;
    cursor: pointer;
  }
  .weight-picker input:checked + span {
    border-color: #166534;
    background: #f0fdf4;
    color: #166534;
    box-shadow: inset 0 0 0 1px #166534;
  }
  .slider-stack {
    display: grid;
    gap: 13px;
  }
  .skill-slider {
    display: grid;
    gap: 6px;
  }
  .skill-slider > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .skill-slider span {
    font-size: 11px;
    font-weight: 750;
    color: #57534e;
  }
  .skill-slider output {
    min-width: 38px;
    text-align: right;
    font-size: 12px;
    font-weight: 900;
    color: #1c1917;
  }
  .skill-slider input[type="range"] {
    width: 100%;
    height: 5px;
    accent-color: #166534;
    cursor: pointer;
  }
  .skill-slider-featured {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: 10px;
    border-radius: 11px;
  }
  .skill-slider-featured span {
    color: #166534;
  }
  .incompatibility-list {
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
  }
  .incompatibility-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e7e5e4;
    border-radius: 11px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .incompatibility-item input {
    width: 17px;
    height: 17px;
    accent-color: #166534;
  }
  .incompatibility-item img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }
  .muted-empty {
    margin: 0;
    padding: 10px 0;
    color: #a8a29e;
    font-size: 11px;
  }
  .toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 12px);
    opacity: 0;
    transition: all .18s ease;
    background: #1c1917;
    color: #fff;
    border-radius: 11px;
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
  }
  .toast-error {
    background: #991b1b;
  }
  .toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .hidden {
    display: none !important;
  }
}
@media (min-width: 640px) {
  .page-wrap {
    width: min(1180px, calc(100% - 48px));
  }
  .main-content {
    padding-top: 30px;
  }
  .scoreboard-grid {
    gap: 12px;
  }
  .scoreboard-item {
    padding: 15px;
  }
  .draw-card {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    padding: 22px;
  }
  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading > span {
    display: block;
  }
  .player-form {
    padding: 22px;
  }
  .form-section:first-of-type {
    grid-template-columns: 1.3fr 1fr;
  }
  .team-slide {
    flex-basis: 410px;
  }
}
@media (min-width: 960px) {
  .scoreboard-grid {
    max-width: 620px;
  }
  .draw-card {
    grid-template-columns: 1fr 1.25fr;
  }
  .draw-controls {
    grid-template-columns: 1fr 1.2fr;
  }
  .draw-controls .hard-rule, .draw-controls .button-green {
    grid-column: 1 / -1;
  }
  .players-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-slide {
    flex-basis: 430px;
  }
}

/* Rachao: alertas de erro visiveis e persistentes */
.setup-alert { display:flex !important; gap:13px; align-items:flex-start; border:2px solid #b91c1c !important; background:#fef2f2 !important; border-radius:16px; padding:17px 18px; margin-bottom:18px; box-shadow:0 8px 24px rgba(153,27,27,.10); }
.setup-alert-icon { flex:0 0 auto; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#b91c1c; color:#fff; font-size:20px; font-weight:950; }
.setup-alert-copy { min-width:0; }
.setup-alert strong { color:#7f1d1d !important; font-size:15px; }
.setup-alert p { color:#991b1b !important; font-size:13px; line-height:1.45; font-weight:650; }
.setup-alert details,.app-error-panel details { margin-top:9px; }
.setup-alert summary,.app-error-panel summary { cursor:pointer; font-size:11px; font-weight:850; color:#7f1d1d; }
.setup-alert code,.app-error-panel code { display:block; margin-top:7px; padding:9px 10px; border-radius:9px; background:rgba(127,29,29,.08); color:#7f1d1d; font-size:10px; line-height:1.4; overflow-wrap:anywhere; white-space:normal; }
.app-error-panel { position:fixed; z-index:200; top:84px; left:50%; width:min(720px,calc(100% - 24px)); transform:translate(-50%,-12px); opacity:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:start; border:2px solid #b91c1c; border-radius:16px; background:#fff; padding:15px; box-shadow:0 20px 60px rgba(69,10,10,.28); transition:opacity .16s ease,transform .16s ease; }
.app-error-panel.is-visible { opacity:1; transform:translate(-50%,0); }
.app-error-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#b91c1c; color:#fff; font-size:21px; font-weight:950; }
.app-error-copy strong { display:block; color:#7f1d1d; font-size:15px; }
.app-error-copy p { margin:5px 0 0; color:#991b1b; font-size:13px; line-height:1.45; font-weight:700; }
.app-error-close { width:34px; height:34px; border:0; cursor:pointer; border-radius:9px; background:#fee2e2; color:#991b1b; font-size:22px; line-height:1; font-weight:700; }
@media (max-width: 520px) { .app-error-panel { top:76px; grid-template-columns:auto minmax(0,1fr); } .app-error-close { position:absolute; top:8px; right:8px; } .app-error-copy { padding-right:28px; } }

/* Rachão: escalação da rodada, plano B e movimentação manual */
.scoreboard-grid { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); max-width: 760px; }
.scoreboard-selected { border-color:#bbf7d0; background:#f0fdf4; }
.scoreboard-selected strong { color:#166534; }
.roster-heading { align-items:flex-end; gap:14px; }
.roster-heading p { margin:6px 0 0; color:#78716c; font-size:12px; }
.roster-actions { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; }
.small-action { border:1px solid #d6d3d1; background:#fff; color:#44403c; min-height:34px; padding:0 11px; border-radius:9px; font-size:11px; font-weight:800; }
.small-action:hover { border-color:#166534; color:#166534; }
.player-card { position:relative; transition:opacity .15s ease,border-color .15s ease,box-shadow .15s ease; }
.player-card.is-playing { border-color:#bbf7d0; box-shadow:0 0 0 1px rgba(22,101,52,.04); }
.player-card.is-out { opacity:.58; filter:saturate(.65); }
.round-select { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:-2px -2px 10px; padding:7px 9px; border-radius:9px; background:#f5f5f4; color:#78716c; font-size:10px; font-weight:850; cursor:pointer; }
.round-select input { width:17px; height:17px; accent-color:#166534; }
.player-card.is-playing .round-select { background:#ecfdf5; color:#166534; }
.result-notice { margin:0 0 12px; padding:12px 14px; border-radius:12px; border:1px solid #d6d3d1; font-size:12px; line-height:1.45; }
.result-notice p { margin:0; }
.result-notice p + p { margin-top:5px; }
.notice-info { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.notice-warning { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.notice-danger { background:#fef2f2; border-color:#fecaca; color:#991b1b; font-weight:700; }
.alternative-panel { margin:0 0 18px; border:2px solid #f59e0b; background:#fffbeb; border-radius:16px; padding:14px; box-shadow:0 8px 24px rgba(146,64,14,.08); }
.alternative-head strong { color:#92400e; font-size:14px; }
.alternative-head p,.alternative-item p,.alternative-empty p { margin:5px 0 0; color:#a16207; font-size:12px; line-height:1.45; }
.alternative-list { display:grid; gap:9px; margin-top:12px; }
.alternative-item { display:grid; gap:10px; align-items:center; padding:11px; border:1px solid #fde68a; border-radius:12px; background:#fff; }
.alternative-item b,.alternative-empty b { color:#78350f; font-size:12px; }
.alternative-item .button { min-height:38px; padding:0 12px; font-size:11px; }
.alternative-empty { margin-top:12px; padding:11px; border:1px solid #fde68a; border-radius:12px; background:#fff; }
.pitch-move-hint { margin:0 12px 7px; color:#78716c; font-size:9px; text-align:center; font-weight:750; }
.pitch-player { appearance:none; border:0; background:transparent; padding:0; color:inherit; cursor:grab; width:72px; text-align:center; min-width:0; }
.pitch-player:active { cursor:grabbing; }
.pitch-player.is-dragging { opacity:.38; }
.football-pitch.is-drop-target { outline:4px solid #facc15; outline-offset:2px; }
.results-section.is-recalculating { opacity:.72; pointer-events:none; }
.move-player-panel { position:fixed; z-index:260; left:50%; bottom:14px; transform:translateX(-50%); width:min(520px,calc(100% - 20px)); background:#fff; border:1px solid #d6d3d1; border-radius:16px; padding:14px; box-shadow:0 24px 70px rgba(0,0,0,.28); }
.move-player-panel > div:first-child { display:flex; flex-direction:column; gap:3px; }
.move-player-panel b { font-size:14px; }
.move-player-panel span { color:#78716c; font-size:11px; }
.move-team-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:11px; }
.move-to-team { min-height:40px; border:1px solid #bbf7d0; border-radius:10px; background:#f0fdf4; color:#166534; font-size:11px; font-weight:850; }
.move-panel-close { width:100%; margin-top:8px; min-height:36px; border:0; background:transparent; color:#78716c; font-size:11px; font-weight:800; }
@media (min-width:640px) { .alternative-item { grid-template-columns:1fr auto; } }
@media (max-width:639px) {
  .roster-heading { align-items:flex-start; }
  .roster-actions { width:100%; justify-content:flex-start; }
  .roster-actions .small-action-accent { width:100%; min-height:42px; }
  .scoreboard-grid { grid-template-columns:repeat(2,1fr); }
}

/* Rachão: reservas/sobras da rodada */
.reserves-panel { margin:0 0 14px; padding:13px 14px; border:1px dashed #d6d3d1; border-radius:14px; background:#fafaf9; }
.reserve-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:10px; }
.reserve-head > div { display:flex; flex-direction:column; gap:2px; }
.reserve-head strong { color:#292524; font-size:13px; }
.reserve-head small { color:#78716c; font-size:10px; text-align:right; }
.reserve-list { display:flex; flex-wrap:wrap; gap:9px; }
.reserve-player { display:flex; align-items:center; gap:7px; padding:6px 9px 6px 6px; border:1px solid #e7e5e4; border-radius:999px; background:#fff; }
.reserve-player img { width:30px; height:30px; border-radius:50%; object-fit:cover; background:#ecfccb; }
.reserve-player span { color:#44403c; font-size:10px; font-weight:800; }
@media (max-width:639px) { .reserve-head { align-items:flex-start; flex-direction:column; } .reserve-head small { text-align:left; } }
/* Rachão: autenticação e conta */
.auth-body { min-height:100vh; margin:0; background:#f5f5f4; color:#1c1917; }
.auth-shell { min-height:100vh; display:grid; grid-template-columns:1fr; }
.auth-visual { display:none; position:relative; overflow:hidden; background:#14532d; color:#fff; padding:42px; }
.auth-brand { display:flex; align-items:center; gap:12px; position:relative; z-index:2; }
.auth-brand strong { display:block; font-size:24px; font-weight:950; letter-spacing:-.04em; }
.auth-brand span { display:block; margin-top:4px; font-size:12px; color:#dcfce7; }
.auth-pitch { width:min(430px,80%); aspect-ratio:.72; margin:52px auto 34px; border:3px solid rgba(255,255,255,.92); border-radius:3px; position:relative; background:repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 54px,rgba(0,0,0,.03) 54px 108px); }
.auth-pitch::before,.auth-pitch::after { content:""; position:absolute; left:50%; transform:translateX(-50%); width:42%; height:18%; border:3px solid rgba(255,255,255,.92); }
.auth-pitch::before { top:-3px; border-top:0; }
.auth-pitch::after { bottom:-3px; border-bottom:0; }
.auth-pitch-line { position:absolute; left:0; right:0; top:50%; height:3px; background:rgba(255,255,255,.92); }
.auth-pitch-circle { position:absolute; width:24%; aspect-ratio:1; border:3px solid rgba(255,255,255,.92); border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%); }
.auth-dot { position:absolute; width:34px; height:34px; border:4px solid #fff; border-radius:50%; background:#facc15; box-shadow:0 5px 12px rgba(0,0,0,.18); }
.auth-dot-1 { left:15%; top:18%; }.auth-dot-2 { right:18%; top:24%; }.auth-dot-3 { left:43%; top:38%; }.auth-dot-4 { left:20%; bottom:24%; }.auth-dot-5 { right:18%; bottom:19%; }.auth-dot-6 { left:46%; bottom:7%; }
.auth-visual-copy { position:relative; z-index:2; max-width:520px; }
.auth-visual-copy h1 { margin:0; font-size:34px; line-height:1.06; letter-spacing:-.045em; }
.auth-visual-copy p { margin:13px 0 0; max-width:460px; color:#dcfce7; line-height:1.55; }
.auth-panel { display:grid; align-content:center; justify-items:center; padding:28px 18px; }
.auth-card { width:min(430px,100%); background:#fff; border:1px solid #e7e5e4; border-radius:20px; padding:24px; box-shadow:0 16px 50px rgba(28,25,23,.08); }
.auth-card-head h2 { margin:5px 0 0; font-size:28px; letter-spacing:-.04em; }
.auth-card-head p { margin:8px 0 0; color:#78716c; font-size:13px; }
.auth-form { display:grid; gap:13px; margin-top:22px; }
.auth-form label { display:grid; gap:6px; }
.auth-form label > span { font-size:11px; font-weight:800; color:#57534e; }
.auth-form input { width:100%; min-height:46px; border:1px solid #d6d3d1; border-radius:11px; padding:0 12px; outline:none; background:#fff; color:#1c1917; }
.auth-form input:focus { border-color:#166534; box-shadow:0 0 0 3px rgba(22,101,52,.10); }
.auth-switch { margin:18px 0 0; text-align:center; color:#78716c; font-size:12px; }
.auth-switch a { color:#166534; font-weight:850; text-decoration:none; }
.auth-message { display:grid; gap:3px; margin-top:16px; padding:11px 12px; border-radius:11px; font-size:12px; line-height:1.4; }
.auth-message-error { border:1px solid #fecaca; background:#fef2f2; color:#991b1b; }
.auth-message-success { border:1px solid #bbf7d0; background:#f0fdf4; color:#166534; }
.auth-security-note { width:min(430px,100%); margin:12px 0 0; color:#a8a29e; font-size:10px; text-align:center; }
.header-actions { display:flex; align-items:center; gap:8px; }
.account-chip { display:flex; align-items:center; gap:8px; min-width:0; padding:5px 9px 5px 5px; border:1px solid #e7e5e4; border-radius:999px; background:#fafaf9; }
.account-avatar { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#dcfce7; color:#166534; font-weight:950; font-size:12px; }
.account-copy { display:none; min-width:0; }
.account-copy b,.account-copy small { display:block; max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-copy b { font-size:11px; }.account-copy small { margin-top:1px; font-size:9px; color:#a8a29e; }
.logout-form { margin:0; }
.header-logout { border:0; background:transparent; color:#78716c; min-height:38px; padding:0 7px; font-size:11px; font-weight:800; }
.header-logout:hover { color:#991b1b; }
@media (min-width:760px) { .auth-shell { grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr); } .auth-visual { display:block; } .auth-panel { padding:48px; } .account-copy { display:block; } }
@media (max-width:639px) { .header-inner { min-height:66px; } .header-actions { gap:5px; } .header-actions .button { min-height:40px; padding:0 12px; font-size:11px; } .account-chip { padding-right:5px; } .header-logout { padding:0 4px; } }


/* Rachão: autoria e contato */
.creator-credit { display:flex; flex-wrap:wrap; justify-content:center; gap:5px 10px; color:#78716c; font-size:10px; line-height:1.45; text-align:center; }
.creator-credit strong { color:#44403c; }
.creator-credit a { color:#166534; font-weight:800; text-decoration:none; }
.creator-credit a:hover { text-decoration:underline; }
.creator-credit-auth { width:min(430px,100%); margin-top:6px; }
.app-footer { margin-top:28px; border-top:1px solid #e7e5e4; background:#fff; }
.app-footer-inner { min-height:58px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:7px 16px; color:#78716c; font-size:10px; }
.app-footer-inner strong { color:#44403c; }
.app-footer-inner a { color:#166534; font-weight:850; text-decoration:none; }
.app-footer-inner a:hover { text-decoration:underline; }
@media (max-width:639px) { .app-footer-inner { justify-content:center; text-align:center; padding-top:14px; padding-bottom:14px; } }

/* Rachão: Reserva interativa + compartilhamento */
.reserves-panel { transition:border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.reserves-panel.is-drop-target { border-color:#facc15; background:#fffbeb; box-shadow:0 0 0 3px rgba(250,204,21,.18); }
.reserve-list.is-empty { min-height:58px; align-items:center; justify-content:center; border:1px dashed #d6d3d1; border-radius:12px; background:#fff; }
.reserve-empty-copy { color:#a8a29e; font-size:10px; font-weight:750; }
.reserve-player { appearance:none; cursor:grab; text-align:left; }
.reserve-player:active { cursor:grabbing; }
.reserve-player.is-dragging { opacity:.4; }
.reserve-player small { display:none; color:#a16207; font-size:8px; font-weight:750; }
.reserve-player[title*="Mover"]:hover { border-color:#86efac; background:#f0fdf4; }
.team-top-actions { display:flex; align-items:center; gap:10px; }
.team-share-button,.share-all-button { border:1px solid #d6d3d1; background:#fff; color:#166534; border-radius:999px; font-size:10px; font-weight:850; min-height:34px; padding:0 11px; cursor:pointer; }
.team-share-button:hover,.share-all-button:hover { border-color:#86efac; background:#f0fdf4; }
.team-share-button:disabled,.share-all-button:disabled { opacity:.6; cursor:wait; }
.move-to-team small { display:block; margin-top:2px; color:#65a30d; font-size:8px; }
.move-to-reserve { min-height:40px; border:1px dashed #d6d3d1; border-radius:10px; background:#fafaf9; color:#57534e; font-size:11px; font-weight:850; }
@media (max-width:639px) {
  .team-top-actions { gap:6px; }
  .team-share-button { min-height:31px; padding:0 9px; font-size:9px; }
  .share-all-button { order:-1; width:100%; border-radius:10px; }
  .carousel-actions { flex-wrap:wrap; justify-content:flex-end; }
  .reserve-player small { display:block; }
}

/* Share preview window */
.share-preview-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(22, 101, 52, .08), transparent 26%),
    linear-gradient(180deg, #f6faf6 0%, #eef5ef 100%);
  color: var(--stone-950, #17201a);
}

.share-preview-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 42px;
}

.share-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.share-preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(22, 101, 52, .12);
  box-shadow: 0 10px 24px rgba(20, 83, 45, .08);
}

.share-preview-brand strong,
.share-preview-brand span {
  display: block;
}

.share-preview-brand strong {
  font-size: 14px;
  color: #14532d;
}

.share-preview-brand span {
  font-size: 12px;
  color: #667085;
}

.share-preview-brand-ball {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f8a46 0%, #14532d 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 101, 52, .22);
}

.share-preview-hero {
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(22, 101, 52, .96) 0%, rgba(20, 83, 45, .93) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 22px 50px rgba(20, 83, 45, .15);
  position: relative;
  overflow: hidden;
}

.share-preview-hero::after {
  content: '';
  position: absolute;
  right: -76px;
  bottom: -76px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.share-preview-hero-content {
  position: relative;
  z-index: 1;
}

.share-preview-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.8);
}

.share-preview-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
  color: #fff;
}

.share-preview-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
}

.share-preview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.share-preview-actions .button,
.share-preview-actions .text-button {
  cursor: pointer;
}

.share-preview-actions .text-button {
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 0 18px;
  min-height: 44px;
}

.share-preview-actions .text-button:hover {
  background: rgba(255,255,255,.08);
}

.share-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 20px;
  align-items: start;
}

.share-preview-card {
  overflow: hidden;
}

.share-preview-card-head {
  padding: 20px;
}

.share-preview-card-head h2 {
  margin: 0;
  font-size: 22px;
}

.share-preview-card-head p {
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.6;
}

.share-preview-image-wrap {
  padding: 0 20px 20px;
}

.share-preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #f5f5f4;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}

.share-preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef9f0;
  color: #14532d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.share-preview-text {
  margin-top: 14px;
  white-space: pre-line;
  line-height: 1.8;
  font-size: 15px;
  color: #17201a;
}

.share-preview-tips {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
}

.share-preview-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: #f7faf7;
  border: 1px solid #d9e7dc;
}

.share-preview-tip-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef9f0;
  color: #14532d;
  font-weight: 800;
}

.share-preview-tip strong,
.share-preview-tip span {
  display: block;
}

.share-preview-tip strong {
  color: #17201a;
  margin-bottom: 3px;
}

.share-preview-tip span {
  color: #667085;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .share-preview-shell {
    width: 100%;
    padding: 14px 12px 28px;
  }

  .share-preview-topbar {
    margin-bottom: 12px;
  }

  .share-preview-brand {
    width: 100%;
    justify-content: flex-start;
  }

  .share-preview-hero {
    padding: 22px 18px;
    border-radius: 20px;
    margin-bottom: 14px;
  }

  .share-preview-hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .share-preview-hero p {
    font-size: 14px;
  }

  .share-preview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .share-preview-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .share-preview-actions .button,
  .share-preview-actions .text-button {
    width: 100%;
    min-height: 46px;
  }

  .share-preview-card-head {
    padding: 16px;
  }

  .share-preview-image-wrap {
    padding: 0 10px 12px;
  }

  .share-preview-image {
    border-radius: 14px;
  }

  .share-preview-tips {
    padding: 0 16px 16px;
  }
}

@media (max-width: 520px) {
  .share-preview-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .share-preview-hero {
    border-radius: 16px;
    padding: 20px 16px;
  }

  .share-preview-card {
    border-radius: 16px;
  }

  .share-preview-card-head h2 {
    font-size: 20px;
  }
}

/* Profile / account modal */
.account-chip-button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  appearance: none;
}
.account-chip-button:hover {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.account-chip-button:focus-visible {
  outline: 3px solid rgba(22, 101, 52, .18);
  outline-offset: 2px;
}
.profile-dialog {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: hidden;
  border-radius: 22px;
}
.profile-modal {
  padding: 24px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.profile-dialog-head {
  align-items: center;
  padding-bottom: 18px;
}
.profile-dialog-head h2 {
  font-size: 26px;
}
.profile-dialog-head .text-button {
  min-width: 64px;
  border-radius: 10px;
}
.profile-dialog-head .text-button:hover {
  background: #f5f5f4;
  color: #1c1917;
}
.profile-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border-radius: 14px;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
}
.profile-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #57534e;
  font-weight: 800;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease;
}
.profile-tab:hover {
  color: #14532d;
}
.profile-tab.is-active {
  background: #fff;
  color: #14532d;
  box-shadow: 0 4px 14px rgba(28, 25, 23, .08);
}
.profile-tab-panel {
  margin-top: 18px;
}
.profile-tab-panel[hidden] {
  display: none !important;
}
.profile-form {
  display: grid;
  gap: 16px;
}
.profile-account-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid #dcfce7;
  background: #f0fdf4;
  border-radius: 16px;
}
.profile-large-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #166534;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(22, 101, 52, .16);
}
.profile-account-summary > div {
  min-width: 0;
}
.profile-account-summary > div > strong,
.profile-account-summary > div > span {
  display: block;
}
.profile-account-summary > div > strong {
  font-size: 14px;
  color: #1c1917;
  line-height: 1.35;
}
.profile-account-summary > div > span {
  margin-top: 3px;
  color: #78716c;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.profile-form .field-label {
  gap: 7px;
}
.profile-form .text-field {
  min-height: 48px;
  border-radius: 12px;
  padding-inline: 14px;
}
.profile-readonly {
  background: #f5f5f4;
  color: #57534e;
  cursor: default;
}
.profile-form .button-full {
  min-height: 48px;
  margin-top: 2px;
}
.field-help {
  color: #a8a29e;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}
.profile-security-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.profile-security-note strong,
.profile-security-note span {
  display: block;
}
.profile-security-note strong {
  color: #92400e;
  font-size: 13px;
}
.profile-security-note span {
  margin-top: 4px;
  color: #a16207;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 639px) {
  .profile-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .profile-modal {
    padding: 16px;
    max-height: calc(100dvh - 16px);
  }
  .profile-dialog-head {
    padding-bottom: 14px;
  }
  .profile-dialog-head h2 {
    font-size: 23px;
  }
  .profile-tabs {
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }
  .profile-tab {
    min-height: 42px;
    padding-inline: 8px;
    font-size: 13px;
  }
  .profile-tab-panel {
    margin-top: 14px;
  }
  .profile-form {
    gap: 14px;
  }
  .profile-account-summary {
    padding: 12px;
  }
}

/* Limite configurável de jogadores pesados por time */
.heavy-limit-control {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.heavy-limit-control span {
  color: #3f6212;
}

@media (min-width: 860px) {
  .draw-controls .heavy-limit-control {
    grid-column: 1 / -1;
  }
}

/* Rachão: infraestrutura de anúncios (desligada por padrão) */
.ad-layout-slot { margin-top:16px; }
.ad-layout-slot-footer { margin-top:4px; margin-bottom:18px; }
.ad-slot {
  width:100%;
  min-width:0;
  margin:18px 0;
  padding:10px;
  border:1px solid #e7e5e4;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  text-align:center;
}
.ad-slot-label {
  display:block;
  margin:0 0 7px;
  color:#a8a29e;
  font-size:8px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.ad-slot-content { width:100%; min-width:0; overflow:hidden; }
.ad-slot-content iframe,.ad-slot-content img,.ad-slot-content ins { max-width:100%; }
@media (max-width:639px) {
  .ad-layout-slot { margin-top:10px; }
  .ad-slot { margin:12px 0; padding:8px 5px; border-radius:11px; }
}

/* Lista do WhatsApp / importação de jogadores */
.small-action-accent {
  min-height: 40px;
  padding: 0 15px;
  border-color: #166534;
  background: #166534;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 101, 52, .14);
  font-size: 11px;
  font-weight: 900;
}
.small-action-accent:hover {
  border-color: #14532d;
  background: #14532d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(22, 101, 52, .18);
}
.small-action-accent:focus-visible {
  outline: 3px solid rgba(22, 101, 52, .18);
  outline-offset: 2px;
}
.list-import-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  margin: auto;
}
.list-import-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
}
.list-import-modal {
  padding: 22px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.list-import-step {
  margin-top: 18px;
}
.list-import-step[hidden] {
  display: none !important;
}
.list-import-intro {
  margin-bottom: 15px;
  padding: 14px 15px;
  border: 1px solid #d9e7dc;
  border-radius: 14px;
  background: #f7faf7;
}
.list-import-intro strong {
  display: block;
  color: #14532d;
  font-size: 13px;
}
.list-import-intro p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}
.list-import-textarea {
  min-height: 220px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
  font-family: inherit;
}
.list-import-selection-mode {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 13px;
  border: 1px solid #e7e5e4;
  border-radius: 13px;
  background: #fafaf9;
  cursor: pointer;
}
.list-import-selection-mode input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #166534;
  flex: 0 0 auto;
}
.list-import-selection-mode span,
.list-import-selection-mode strong,
.list-import-selection-mode small {
  display: block;
}
.list-import-selection-mode strong {
  color: #292524;
  font-size: 12px;
}
.list-import-selection-mode small {
  margin-top: 3px;
  color: #78716c;
  font-size: 10px;
  line-height: 1.45;
}
.list-import-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.list-import-summary-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.list-import-summary-main strong {
  color: #14532d;
  font-size: 13px;
}
.list-import-summary-main span,
.list-import-summary small {
  color: #4b6352;
  font-size: 10px;
}
.list-import-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.list-import-group {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  background: #fff;
}
.list-import-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.list-import-group-head strong {
  color: #292524;
  font-size: 12px;
}
.list-import-group-head span {
  min-width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 10px;
  font-weight: 900;
}
.list-import-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.list-import-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.list-import-chip.is-found {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.list-import-chip.is-missing {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.list-import-empty {
  margin: 0;
  color: #a8a29e;
  font-size: 10px;
}
.list-import-question {
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.list-import-question strong {
  display: block;
  color: #9a3412;
  font-size: 13px;
}
.list-import-question p {
  margin: 5px 0 0;
  color: #9a4f24;
  font-size: 11px;
  line-height: 1.55;
}
.list-import-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.list-import-actions .button {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 11px;
}
.list-import-secondary {
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #44403c;
}
.list-import-secondary:hover {
  border-color: #a8a29e;
  background: #f5f5f4;
}

/* Confirmação do sistema: sem confirm()/alert() nativos */
.compact-dialog {
  width: min(460px, calc(100% - 24px));
}
.compact-modal {
  padding: 20px;
}
.compact-modal-copy {
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fef2f2;
}
.compact-modal-copy strong {
  display: block;
  color: #7f1d1d;
  font-size: 14px;
}
.compact-modal-copy p {
  margin: 5px 0 0;
  color: #991b1b;
  font-size: 11px;
  line-height: 1.5;
}
.compact-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.button-danger {
  border: 1px solid #b91c1c;
  background: #b91c1c;
  color: #fff;
}
.button-danger:hover {
  background: #991b1b;
  border-color: #991b1b;
}

@media (max-width: 639px) {
  .list-import-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }
  .list-import-modal {
    padding: 16px;
    max-height: calc(100dvh - 12px);
  }
  .list-import-textarea {
    min-height: 190px;
  }
  .list-import-groups {
    grid-template-columns: 1fr;
  }
  .list-import-summary-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .list-import-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .list-import-actions .button,
  .compact-modal-actions .button {
    width: 100%;
  }
  .compact-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
