.tactic-helper {
    width: 100%;
}

.tactic-helper__heading {
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 2px solid #f0c545;
}

.tactic-helper__heading h1,
.tactic-section-heading h2,
.tactic-copy-card h2 {
    margin: 0;
    color: #f0c545;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tactic-helper__heading h1 {
    font-size: 25px;
}

.tactic-helper__layout {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 12px;
    align-items: start;
}

.tactic-panel,
.tactic-pitch,
.tactic-table-card,
.tactic-copy-card {
    background: #10182d;
    border: 1px solid #2c3858;
    border-top: 3px solid #f0c545;
}

.tactic-panel,
.tactic-pitch,
.tactic-copy-card {
    padding: 12px;
}

.tactic-panel label,
.tactic-field label,
.tactic-slot label {
    display: block;
    margin: 0 0 5px;
    color: #aeb8d0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tactic-load__row {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 7px;
}

.tactic-panel input,
.tactic-panel select,
.tactic-slot select,
.tactic-copy-card textarea {
    width: 100%;
    border: 1px solid #394664;
    background: #0b1120;
    color: #ffffff;
    font: inherit;
}

.tactic-panel input,
.tactic-panel select,
.tactic-slot select {
    height: 36px;
    padding: 0 9px;
}

.tactic-panel input:focus,
.tactic-panel select:focus,
.tactic-slot select:focus,
.tactic-copy-card textarea:focus {
    outline: 2px solid #f0c545;
    outline-offset: 1px;
}

.tactic-field {
    margin-top: 12px;
}

.tactic-button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #44516e;
    background: #162b6f;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tactic-button:hover,
.tactic-button:focus {
    border-color: #f0c545;
    outline: none;
}

.tactic-button--primary {
    border-color: #f0c545;
    background: #f0c545;
    color: #111111;
}

.tactic-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
}

.tactic-message {
    margin-top: 10px;
    padding: 8px;
    border-left: 3px solid #f0c545;
    background: #162b6f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.tactic-message--error {
    border-left-color: #d86363;
}

.tactic-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
}

.tactic-summary__item {
    padding: 8px;
    border: 1px solid #35415f;
    background: #0b1120;
}

.tactic-summary__item span {
    display: block;
    color: #aeb8d0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tactic-summary__item strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 18px;
}

.tactic-summary__item--gold strong {
    color: #f0c545;
}

.tactic-note {
    margin: 10px 0 0;
    color: #aeb8d0;
    font-size: 11px;
    line-height: 1.4;
}

.tactic-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.tactic-section-heading h2,
.tactic-copy-card h2 {
    font-size: 14px;
}

.tactic-section-heading span {
    color: #d8def0;
    font-size: 11px;
    font-weight: 700;
}

.tactic-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tactic-slot {
    min-width: 0;
    padding: 8px;
    border: 1px solid #35415f;
    background: #0b1120;
}

.tactic-slot--filled {
    border-color: #f0c545;
}

.tactic-slot--duplicate {
    border-color: #d86363;
}

.tactic-slot__head {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 7px;
    align-items: end;
}

.tactic-slot__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 36px;
    background: #162b6f;
    color: #f0c545;
    font-weight: 800;
}

.tactic-slot__player {
    margin-top: 7px;
}

.tactic-slot__info {
    min-height: 18px;
    margin-top: 6px;
    color: #aeb8d0;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tactic-slot__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 6px;
}

.tactic-mini-stat {
    padding: 5px 2px;
    border: 1px solid #2f3a57;
    text-align: center;
}

.tactic-mini-stat span {
    display: block;
    color: #8793af;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.tactic-mini-stat strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 11px;
}

.tactic-mini-stat--total strong {
    color: #f0c545;
}

.tactic-slot__warning {
    margin-top: 6px;
    color: #ff9b9b;
    font-size: 10px;
    font-weight: 800;
}

.tactic-results {
    display: grid;
    grid-template-columns: 1fr 285px;
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.tactic-table-card {
    overflow: hidden;
}

.tactic-table-card .tactic-section-heading {
    margin: 0;
    padding: 10px 11px;
    border-bottom: 1px solid #35415f;
}

.tactic-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #ffffff;
    font-size: 10px;
}

.tactic-table th,
.tactic-table td {
    padding: 7px 5px;
    border-bottom: 1px solid #28334f;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tactic-table th {
    background: #162b6f;
    color: #f0c545;
    font-size: 9px;
    text-transform: uppercase;
}

.tactic-table th:nth-child(1),
.tactic-table td:nth-child(1) {
    width: 30px;
}

.tactic-table th:nth-child(2),
.tactic-table td:nth-child(2) {
    width: 38px;
}

.tactic-table th:nth-child(3),
.tactic-table td:nth-child(3) {
    width: 145px;
    text-align: left;
}

.tactic-table th:nth-child(4),
.tactic-table td:nth-child(4),
.tactic-table th:nth-child(5),
.tactic-table td:nth-child(5),
.tactic-table th:nth-child(6),
.tactic-table td:nth-child(6) {
    width: 48px;
}

.tactic-table th:nth-child(7),
.tactic-table td:nth-child(7) {
    width: 55px;
}

.tactic-table td.tactic-table__duplicate {
    color: #ff9b9b;
    font-weight: 800;
}

.tactic-copy-card textarea {
    display: block;
    min-height: 235px;
    margin: 10px 0 8px;
    padding: 9px;
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre;
}
