/* ========================================================================== 
   CM Legends · Supporter workspace
   Core layout, forms and reusable account tools. Promo/badge styles live in
   supporter-promo.css. Existing kit, legacy and public-profile tools are retained.
   ========================================================================== */

/* Page shell and typography */
.sp {
    --sp-accent: #ffd000;
    --sp-line: #2a4965;
    --sp-text: #bdd4e8;
    --sp-muted: #94b1c9;
    max-width: 1380px;
    margin: 26px auto;
    padding: 26px;
    border: 1px solid #244969;
    border-top: 3px solid #1463da;
    border-radius: 14px;
    background: #050c22;
    color: var(--sp-text);
}

.sp *,
.sp *::before,
.sp *::after {
    box-sizing: border-box;
}

.sp [hidden] {
    display: none !important;
}

.sp h1,
.sp h2,
.sp h3 {
    color: #f3f7ff;
}

.sp h1 {
    margin: 10px 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.2;
}

.sp h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.sp p {
    line-height: 1.7;
}

.sp small,
.sp .sp-muted {
    color: var(--sp-muted);
}

.sp-kicker {
    color: #ffd45e;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sp-hero {
    margin-bottom: 20px;
    padding: 28px;
    border: 1px solid #2b5677;
    border-radius: 12px;
    background: radial-gradient(ellipse at top right, #16487066, transparent 70%), #0a1b31;
}

.sp-hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: #aec9df;
    font-size: .88rem;
}

.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid #406583;
    border-radius: 6px;
    background: #102c42;
    color: #c8e2f4;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.5;
}

.sp-tag .sp-ui-icon {
    width: 16px;
    height: 16px;
    color: #8dcce8;
}

/* Membership and navigation */
.sp-account-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 20px;
    padding: 17px 20px;
    border: 1px solid #294862;
    border-radius: 10px;
    background: #0a1c30;
}

.sp-account-summary p {
    margin: 0;
}

.sp-account-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    min-width: 0;
}

.sp-account-label {
    color: #95b2cb;
    font-size: .63rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sp-account-summary small.sp-account-expiry {
    display: block;
    margin-top: 7px;
    color: #a5bfd5;
    font-size: .7rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.sp-nav,
.sp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0;
}

.sp-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid #2c506d;
    border-radius: 6px;
    background: #0b2035;
    color: #b7d0e5;
    font-size: .79rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.sp-nav a:hover {
    border-color: #5595c0;
    background: #143553;
    color: #f3f8ff;
    text-decoration: none;
}

.sp-nav a[aria-current="page"] {
    border-color: #456b88;
    background: linear-gradient(115deg, #153854, #112941);
    color: #ffe197;
    box-shadow: inset 0 -2px 0 #ffd45e;
}

.sp-nav.sp-workspace-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 28px;
    padding: 7px;
    border: 1px solid #213f5b;
    border-radius: 10px;
    background: #08172a;
}

.sp-workspace-nav a {
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    font-size: .72rem;
}

.sp-workspace-nav a span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sp-workspace-nav .sp-ui-icon {
    width: 17px;
    height: 17px;
}

/* Shared cards and overview */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sp-card {
    min-width: 0;
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid #2b4a64;
    border-radius: 10px;
    background: linear-gradient(140deg, #0c2237, #091b2e);
}

.sp-grid > .sp-card {
    margin-bottom: 0;
}

.sp-card > p:first-child {
    margin-top: 0;
}

.sp-card > p:last-child {
    margin-bottom: 0;
}

.sp-list {
    display: grid;
    gap: 12px;
}

.sp-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 20px;
}

.sp-section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}

.sp-section-heading p {
    max-width: 370px;
    margin: 0 0 3px;
    color: #93b0ca;
    font-size: .75rem;
}

.sp-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.sp-feature-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    transition: border-color .16s ease;
}

.sp-feature-card:hover {
    border-color: #467ea6;
}

.sp-feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.sp-feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #3d6486;
    border-radius: 9px;
    background: #133351;
    color: #8dd4ff;
}

.sp-feature-icon .sp-ui-icon {
    width: 23px;
    height: 23px;
}

.sp-feature-number {
    color: #6f96b5;
    font-size: .75rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

.sp .sp-feature-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.sp-feature-card > p {
    margin: 0 0 20px;
    color: #a9c3d9;
    font-size: .8rem;
    line-height: 1.8;
}

.sp .sp-button.sp-feature-action {
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    font-size: .76rem;
}

.sp-feature-card--fair {
    border-color: #335b60;
    background: linear-gradient(140deg, #102b35, #0a1e30);
}

.sp-feature-card--fair .sp-feature-icon {
    border-color: #417569;
    background: #133b38;
    color: #87dfc4;
}

.sp-feature-fair-label {
    color: #8adbc5;
    font-size: .61rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-fair-details {
    margin: auto 0 0;
    padding-top: 13px;
    border-top: 1px solid #42677466;
}

.sp-fair-details summary {
    color: #c3e3de;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.65;
    cursor: pointer;
}

.sp-fair-details p {
    margin: 10px 0 0;
    color: #a5c3d1;
    font-size: .74rem;
    line-height: 1.75;
}

.sp-fair-details + .sp-feature-action {
    margin-top: 15px;
}

/* Buttons and form controls */
.sp button,
.sp-button {
    cursor: pointer;
}

.sp-button,
.sp .sp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid #3277bf;
    border-radius: 7px;
    background: linear-gradient(110deg, #17599c, #12447b);
    color: #eff7ff;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.sp-button:hover:not(:disabled),
.sp .sp-button:hover:not(:disabled) {
    border-color: #78b9ee;
    background: linear-gradient(110deg, #216cb5, #18558f);
    color: #fff;
    text-decoration: none;
}

.sp-button--secondary,
.sp .sp-button--secondary {
    border-color: #3b6080;
    background: #102d47;
    color: #cfe6f7;
}

.sp-button--secondary:hover:not(:disabled),
.sp .sp-button--secondary:hover:not(:disabled) {
    border-color: #72b3dc;
    background: #173e5e;
    color: #fff;
}

.sp-button:disabled,
.sp .sp-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.sp-button .sp-ui-icon {
    width: 17px;
    height: 17px;
}

.sp button:focus-visible,
.sp a:focus-visible,
.sp summary:focus-visible,
.sp input:focus-visible,
.sp select:focus-visible,
.sp textarea:focus-visible {
    outline: 2px solid #ffd45e;
    outline-offset: 3px;
}

.sp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid #536e84;
    border-radius: 7px;
    background: #10293d;
    color: #dceaf6;
    font: inherit;
    font-size: .78rem;
    text-decoration: none;
    cursor: pointer;
}
.sp-link.btn-danger { color:#ffe1e7; background:#59263b; border-color:#af6579; }
.sp-link:focus-visible { outline:3px solid #ffd45e; outline-offset:3px; }

.sp-form {
    display: grid;
    gap: 16px;
    margin: 14px 0;
}

.sp-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #b7cfe1;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.5;
}

.sp-form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="hidden"]),
.sp-form select,
.sp-form textarea,
.sp input.sp-input {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #3a607c;
    border-radius: 6px;
    background: #07182a;
    color: #e9f6ff;
    font: inherit;
}

.sp-form input::placeholder,
.sp-form textarea::placeholder {
    color: #839eb5;
    opacity: 1;
}

.sp-form select[multiple] {
    min-height: 170px;
}

.sp-form input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 3px;
    border: 1px solid #3a607c;
    border-radius: 6px;
    background: #07182a;
}

.sp-form textarea {
    min-height: 96px;
    resize: vertical;
}

.sp-form fieldset {
    display: grid;
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sp-form fieldset:disabled {
    opacity: .65;
}

.sp-form .sp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.sp-form .sp-check input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #ffd45e;
}

/* Notices, saved records and tables */
.sp-notice {
    margin: 20px 0;
    padding: 16px 20px;
    border: 1px solid #49615f;
    border-left: 3px solid #d7b650;
    border-radius: 7px;
    background: #142b36;
    color: #c5dce7;
    font-size: .82rem;
    line-height: 1.7;
}

.sp-error {
    border-color: #a34964;
    background: #37192b;
    color: #ffd1de;
}

.sp-status {
    white-space: pre-wrap;
}

.sp-divider {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid #29485c;
}

.sp-record {
    padding: 16px;
    border: 1px solid #30516c;
    border-radius: 8px;
    background: #0c263d;
    overflow-wrap: anywhere;
}

.sp-record h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.sp-record p {
    white-space: pre-wrap;
}

.sp-table-wrap {
    overflow-x: auto;
}

.sp .sp-table-wrap {
    scrollbar-color: #38617e #07182a;
}

.sp table {
    width: 100%;
    border-collapse: collapse;
}

.sp th,
.sp td {
    padding: 12px;
    border-bottom: 1px solid #29485c;
    text-align: left;
}

.sp th {
    color: #9ed6f6;
    font-size: .8rem;
}

/* Club identity, public displays, kit editor and legacy tools */
.sp-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px;
    margin: 18px 0;
    border: 1px solid #31526e;
    border-left: 4px solid var(--sp-one,#ffc900);
    border-radius: 10px;
    background: linear-gradient(110deg,#102b42,#071329);
    color: #c9e3f6;
}

.sp-identity small {
    color: #97b5cc;
}

.sp-identity p {
    margin: 8px 0;
    font-size: 1.1rem;
    color: white;
    overflow-wrap: anywhere;
}

.sp-crest {
    flex: 0 0 68px;
    height: 78px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg,var(--sp-one),var(--sp-two));
    border: 2px solid #bed0df;
    border-radius: 12px 12px 30px 30px;
    font-weight: bold;
    text-shadow: 0 1px 4px #000;
    font-size: 1.25rem;
}

.sp-kit {
    flex: 0 0 70px;
    height: 82px;
    background: var(--sp-one);
    clip-path: polygon(25% 0,40% 8%,60% 8%,75% 0,100% 18%,85% 40%,76% 31%,76% 100%,24% 100%,24% 31%,15% 40%,0 18%);
}

.sp-pattern-stripes {
    background: repeating-linear-gradient(90deg,var(--sp-one) 0 12px,var(--sp-two) 12px 24px);
}

.sp-pattern-hoops {
    background: repeating-linear-gradient(0deg,var(--sp-one) 0 12px,var(--sp-two) 12px 24px);
}

.sp-pattern-diagonal {
    background: linear-gradient(135deg,var(--sp-one) 0 42%,var(--sp-two) 42% 58%,var(--sp-one) 58%);
}

.sp-order {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.sp-order li {
    padding: 12px;
    border: 1px solid #32566e;
    border-radius: 7px;
    background: #102b40;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sp-order li span {
    flex: 1;
}

.sp-order button {
    padding: 8px;
    color: #fff;
    background: #133e62;
    border: 1px solid #3c6c91;
    border-radius: 5px;
}

.sp-pins {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
}

.sp-pins a {
    padding: 9px 14px;
    border-radius: 7px;
    border: 1px solid #326287;
    background: #0e2e49;
    color: #e4f4ff;
    text-decoration: none;
}

.sp-profile-motto {
    padding: 12px 0;
    border-bottom: 2px solid var(--sp-accent,#ffd000);
    white-space: pre-wrap;
    color: #def0ff;
}

.sp-profile-mark {
    color: var(--sp-accent,#ffd000);
    font-size: .8rem;
}

.sp-tactics {
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #2a576f;
    border-radius: 8px;
    background: #0b2438;
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.sp-tactics label {
    display: grid;
    gap: 7px;
}

.sp-tactics input,.sp-tactics select {
    max-width: 260px;
    padding: 10px;
    background: #07182b;
    border: 1px solid #345c77;
    color: white;
}

.sp-tactics p {
    flex-basis: 100%;
    margin: 0;
}

.sp-yearbook-title {
    font-size: clamp(2rem,5vw,4rem) !important;
}

.sp-statline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.sp-statline strong {
    font-size: 2rem;
    color: #ffd000;
    display: block;
}

.sp-statline span {
    font-size: .85rem;
}

.sp-print-button {
    float: right;
}

.sp-kit-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #284960;
}

.sp .sp-kit-heading h2 {
    margin: 8px 0;
    font-size: clamp(1.3rem,2.4vw,1.8rem);
}

.sp-kit-heading p {
    margin: 0;
}

.sp-kit-heading .sp-tag {
    flex-shrink: 0;
}

.sp-form .sp-kit-layout {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(270px,.8fr);
    gap: 26px;
    align-items: stretch;
}

.sp-kit-stage {
    padding: 25px 18px 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #29526b;
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 34%,#164964 0,transparent 65%),repeating-linear-gradient(0deg,#ffffff03 0 1px,transparent 1px 32px),#071c2e;
}

.sp .sp-kit-stage h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.sp-kit-carousel {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 48px;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 440px;
    margin: 14px 0;
}

.sp .sp-kit-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #4b7895;
    border-radius: 50%;
    color: #eaf8ff;
    background: linear-gradient(#163e5e,#0b253e);
    font: 38px/1 Arial,sans-serif;
    box-shadow: 0 5px 14px #0003;
    transition: background .15s,transform .15s,border-color .15s;
}

.sp .sp-kit-arrow:hover:not(:disabled) {
    border-color: #ffd000;
    background: #235077;
    transform: scale(1.07);
}

.sp .sp-kit-arrow:active:not(:disabled) {
    transform: scale(.96);
}

.sp .sp-kit-arrow:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.sp-shirt-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    filter: drop-shadow(0 16px 16px #0006);
}

.sp-kit.sp-kit-large {
    position: relative;
    display: block;
    flex: none;
    width: min(100%,260px);
    height: auto;
    aspect-ratio: 1;
    clip-path: polygon(28% 0,40% 5%,60% 5%,72% 0,100% 18%,89% 36%,82% 31%,82% 98%,18% 98%,18% 31%,11% 36%,0 18%);
}

.sp-kit-large::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#0002,transparent 28%,#fff1 44%,transparent 65%,#0002);
    pointer-events: none;
}

.sp-kit-large::after {
    content: "";
    position: absolute;
    left: 39%;
    top: 1%;
    width: 22%;
    height: 12%;
    box-sizing: border-box;
    background: #092236;
    border: 4px solid var(--sp-two);
    border-top: 0;
    border-radius: 0 0 50% 50%;
    box-shadow: 0 2px 3px #0003;
}

.sp-shirt-seam {
    position: absolute;
    inset: 8% 18% 4%;
    border-left: 1px solid #0002;
    border-right: 1px solid #0002;
    border-bottom: 3px solid #0002;
    border-radius: 14px 14px 3px 3px;
}

.sp-shirt-crest {
    position: absolute;
    display: grid;
    place-items: center;
    left: 59%;
    top: 27%;
    width: 10%;
    height: 12%;
    background: linear-gradient(145deg,var(--sp-one),var(--sp-two));
    border: 1px solid #fff9;
    border-radius: 3px 3px 7px 7px;
    color: #fff;
    text-shadow: 0 1px 2px #000;
    font: bold clamp(7px,1vw,10px)/1 Arial,sans-serif;
}

.sp-shirt-mark {
    position: absolute;
    top: 48%;
    left: 24%;
    width: 52%;
    font: bold clamp(7px,1.4vw,14px)/1.2 Arial,sans-serif;
    letter-spacing: .09em;
    color: white;
    text-shadow: 0 1px 3px #0009;
}

.sp-pattern-pinstripes {
    background: repeating-linear-gradient(90deg,var(--sp-one) 0 13px,var(--sp-two) 13px 15px);
}

.sp-pattern-halves {
    background: linear-gradient(90deg,var(--sp-one) 0 50%,var(--sp-two) 50%);
}

.sp-pattern-quarters {
    background: conic-gradient(var(--sp-one) 0 90deg,var(--sp-two) 90deg 180deg,var(--sp-one) 180deg 270deg,var(--sp-two) 270deg);
}

.sp-pattern-chest_band {
    background: linear-gradient(var(--sp-one) 0 35%,var(--sp-two) 35% 58%,var(--sp-one) 58%);
}

.sp-pattern-chevron {
    background: linear-gradient(32deg,transparent 38%,var(--sp-two) 38% 50%,transparent 50%) left top/50% 100% no-repeat,linear-gradient(-32deg,transparent 38%,var(--sp-two) 38% 50%,transparent 50%) right top/50% 100% no-repeat,var(--sp-one);
}

.sp-pattern-sleeves {
    background: linear-gradient(90deg,var(--sp-two) 0 24%,var(--sp-one) 24% 76%,var(--sp-two) 76%);
}

.sp-pattern-gradient {
    background: linear-gradient(var(--sp-one) 0 15%,var(--sp-two) 100%);
}

.sp-pattern-diamonds {
    background: repeating-conic-gradient(from 45deg,var(--sp-one) 0 25%,var(--sp-two) 0 50%) 0 0/32px 32px;
}

.sp-kit-large.sp-pattern-stripes {
    background: repeating-linear-gradient(90deg,var(--sp-one) 0 24px,var(--sp-two) 24px 48px);
}

.sp-kit-large.sp-pattern-hoops {
    background: repeating-linear-gradient(0deg,var(--sp-one) 0 24px,var(--sp-two) 24px 48px);
}

.sp-kit-large.sp-pattern-sleeves {
    background: linear-gradient(90deg,var(--sp-two) 0 18%,var(--sp-one) 18% 82%,var(--sp-two) 82%);
}

.sp-pattern-info {
    min-height: 92px;
}

.sp-pattern-info>span {
    font-size: .73rem;
    letter-spacing: .12em;
    color: #8cbbd4;
}

.sp-pattern-info>strong {
    display: block;
    font-size: 1.2rem;
    margin: 7px 0;
    color: #fff;
}

.sp-pattern-info>p {
    margin: 0;
    color: #a6c6da;
    font-size: .85rem;
}

.sp-kit-signature {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    width: 100%;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #335d744d;
}

.sp-kit-signature .sp-crest {
    flex: 0 0 46px;
    height: 54px;
    font-size: .9rem;
    border-width: 1px;
    border-radius: 9px 9px 19px 19px;
}

.sp-kit-signature div {
    min-width: 0;
}

.sp-kit-signature p {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    font-size: .9rem;
}

.sp-kit-signature small {
    color: #87b4d0;
}

.sp-kit-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    padding: 12px 0;
}

.sp .sp-kit-settings h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.sp-kit-colours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sp-kit-settings #sp-initials-hint {
    margin-top: -9px;
    line-height: 1.5;
    font-size: .75rem;
}

.sp-kit-save {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 12px;
}

.sp-kit-save small {
    line-height: 1.5;
    font-size: .78rem;
}

.sp-kit-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #284960;
    font-size: .82rem;
}

.sp-kit-footer p {
    margin: 0;
    max-width: 650px;
}

.sp-kit-footer form {
    flex-shrink: 0;
}

.sp-club-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0;
    clear: both;
}

.sp-club-tools a.sp-club-tool {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 20px;
    border: 1px solid #28547a;
    border-radius: 10px;
    background: linear-gradient(112deg,#0d2b46,#091a30);
    color: #dff3ff;
    text-decoration: none;
    box-shadow: 0 6px 14px #0002;
    transition: border-color .15s,background .15s;
}

.sp-club-tool>span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.sp-club-tool strong {
    display: block;
    font-family: var(--display-font,inherit);
    color: #fff;
    font-size: .85rem;
    letter-spacing: .025em;
}

.sp-club-tool small {
    display: block;
    margin-top: 6px;
    color: #97bcd5;
    font-size: .78rem;
    line-height: 1.4;
}

.sp-tool-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #326389;
    border-radius: 10px;
    background: #164570;
    color: #6ddcff;
    font-size: 1.3rem;
}

.sp-club-tool-legacy .sp-tool-icon {
    background: #37331e;
    border-color: #7b6932;
    color: #ffe064;
}

.sp-tool-arrow {
    color: #78bfe4;
    font-size: 1.2rem;
}

.sp-club-tools a.sp-club-tool:hover {
    border-color: #63b5e7;
    background: linear-gradient(112deg,#113c5d,#0b223a);
}

.sp-club-tools a.sp-club-tool:focus-visible {
    outline: 3px solid #ffd000;
    outline-offset: 3px;
}

/* Responsive layout */
@media (max-width:900px) {
    .sp-form .sp-kit-layout {
        grid-template-columns: minmax(0,1fr) minmax(240px,.85fr);
        gap: 18px;
    }

    .sp-kit-carousel {
        gap: 8px;
        grid-template-columns: 44px minmax(0,1fr) 44px;
    }

    .sp .sp-kit-arrow {
        width: 44px;
        height: 44px;
    }

    .sp-kit-stage {
        padding: 20px 12px;
    }
}

@media (max-width:720px) {
    .sp {
        margin: 12px 8px;
        padding: 15px;
    }

    .sp-grid {
        grid-template-columns: 1fr;
    }

    .sp-hero,.sp-card {
        padding: 18px;
    }

    .sp-nav {
        gap: 6px;
    }

    .sp-nav a {
        padding: 9px;
        font-size: .83rem;
    }

    .sp-identity {
        gap: 14px;
        flex-wrap: wrap;
    }

    .sp-identity>div {
        flex-basis: 100%;
    }

    .sp-tactics {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-tactics input,.sp-tactics select {
        width: 100%;
        max-width: none;
    }

    .sp-print-button {
        float: none;
        display: block;
        width: 100%;
        margin: 0 0 16px;
    }

    .sp-form .sp-kit-layout {
        grid-template-columns: 1fr;
    }

    .sp-kit-heading {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sp-kit-heading .sp-tag {
        font-size: .7rem;
    }

    .sp-kit-settings {
        padding: 4px 0;
    }

    .sp-kit-large.sp-kit {
        width: min(100%,220px);
    }

    .sp-kit-carousel {
        max-width: 400px;
        gap: 12px;
        margin: 20px 0;
    }

    .sp-kit-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .sp-club-tools a.sp-club-tool {
        padding: 15px;
        gap: 12px;
    }

    .sp-club-tools {
        gap: 10px;
    }

    .sp-shirt-mark {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .sp .sp-kit-arrow,.sp-club-tools a.sp-club-tool {
        transition: none;
    }

    .sp-nav a,.sp-button,.sp .sp-button,.sp-feature-card {
        transition: none;
    }
}

@media print {
    body {
        background: white !important;
    }

    .site-header,.site-footer,.latest-bar,.sp-nav,.sp-print-button,.sp-back {
        display: none !important;
    }

    .sp,.sp-card,.sp-hero {
        border: 0;
        color: #111 !important;
        background: white !important;
        box-shadow: none;
    }

    .sp h1,.sp h2,.sp h3,.sp a,.sp p,.sp td,.sp th,.sp-statline strong,.sp small {
        color: #111 !important;
    }

    .sp-card {
        break-inside: avoid;
    }

    .sp {
        margin: 0;
        padding: 0;
    }

    .sp form {
        display: none !important;
    }

    .sp-table-wrap {
        overflow: visible !important;
    }

    .sp table {
        font-size: 10pt;
    }

    .sp-account-summary,.sp-feature-action {
        display: none !important;
    }

    .sp-feature-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 1120px) {
    .sp-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-nav.sp-workspace-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sp-account-summary {
        align-items: stretch;
        padding: 16px;
    }

    .sp-account-summary > .sp-button {
        width: 100%;
    }

    .sp-account-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .sp-nav.sp-workspace-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 6px;
    }

    .sp-workspace-nav a {
        justify-content: flex-start;
        padding: 10px 9px;
        font-size: .72rem;
    }

    .sp-feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .sp-feature-card {
        padding: 20px;
    }
}
