body.page-ios-spot-customise,
body.page-ios-profile-forecast-prefs {
    background: #121018;
    color: rgba(255, 255, 255, 0.92);
}

body.page-ios-spot-customise .ios-customise-page-header,
body.page-ios-profile-forecast-prefs .ios-customise-page-header {
    padding: 0.35rem 0.85rem 0.55rem;
}

body.page-ios-spot-customise .ios-customise-back-btn,
body.page-ios-profile-forecast-prefs .ios-customise-back-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    border: none;
    background: transparent;
    color: #7dd3fc;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.35rem 0;
    margin: 0 0 0.35rem;
    text-decoration: none;
    cursor: pointer;
}

body.page-ios-spot-customise .ios-customise-page-title,
body.page-ios-profile-forecast-prefs .ios-customise-page-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

body.page-ios-spot-customise .ios-customise-page-sub,
body.page-ios-profile-forecast-prefs .ios-customise-page-sub {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.68);
}

body.page-ios-spot-customise .ios-customise-main,
body.page-ios-profile-forecast-prefs .ios-customise-main {
    padding: 0 0.75rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.page-ios-spot-customise .ios-customise-loading,
body.page-ios-spot-customise .ios-customise-error,
body.page-ios-profile-forecast-prefs .ios-customise-loading,
body.page-ios-profile-forecast-prefs .ios-customise-error {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

body.page-ios-spot-customise .ios-customise-error,
body.page-ios-profile-forecast-prefs .ios-customise-error {
    color: #fecdd3;
}

body.page-ios-spot-customise .customise-intro,
body.page-ios-spot-customise .customise-why-section,
body.page-ios-profile-forecast-prefs .customise-intro,
body.page-ios-profile-forecast-prefs .customise-why-section {
    display: none !important;
}

body.page-ios-spot-customise #customise-page,
body.page-ios-spot-customise .customise-page,
body.page-ios-profile-forecast-prefs #customise-page,
body.page-ios-profile-forecast-prefs .customise-page {
    display: block !important;
}

body.page-ios-spot-customise .customise-page-content,
body.page-ios-profile-forecast-prefs .customise-page-content {
    max-width: 640px;
    margin: 0 auto;
}

body.page-ios-spot-customise .customization-settings-overview,
body.page-ios-profile-forecast-prefs .customization-settings-overview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.page-ios-spot-customise .customization-setting-card,
body.page-ios-profile-forecast-prefs .customization-setting-card {
    background: rgba(32, 28, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

body.page-ios-spot-customise .customization-setting-label,
body.page-ios-profile-forecast-prefs .customization-setting-label {
    color: rgba(255, 255, 255, 0.55);
}

body.page-ios-spot-customise .customization-setting-value,
body.page-ios-profile-forecast-prefs .customization-setting-value {
    color: rgba(255, 255, 255, 0.9);
}

body.page-ios-spot-customise .customization-global-settings-heading,
body.page-ios-spot-customise .customization-global-settings-intro,
body.page-ios-profile-forecast-prefs .customization-global-settings-heading,
body.page-ios-profile-forecast-prefs .customization-global-settings-intro {
    color: rgba(255, 255, 255, 0.78);
}

body.page-ios-spot-customise .customization-global-section,
body.page-ios-profile-forecast-prefs .customization-global-section {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(125, 211, 252, 0.25) !important;
}

body.page-ios-spot-customise .customization-global-intro,
body.page-ios-profile-forecast-prefs .customization-global-intro {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.page-ios-spot-customise .customization-setting-edit-btn,
body.page-ios-spot-customise .customization-save-btn,
body.page-ios-profile-forecast-prefs .customization-setting-edit-btn,
body.page-ios-profile-forecast-prefs .customization-save-btn {
    background: rgba(220, 74, 109, 0.35);
    border: 1px solid rgba(220, 74, 109, 0.65);
    color: #fff;
}

body.page-ios-spot-customise .customization-setting-reset-btn,
body.page-ios-spot-customise .customization-cancel-btn,
body.page-ios-profile-forecast-prefs .customization-setting-reset-btn,
body.page-ios-profile-forecast-prefs .customization-cancel-btn {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

body.page-ios-spot-customise .customization-content,
body.page-ios-profile-forecast-prefs .customization-content {
    background: rgba(22, 18, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem;
    margin: 0.5rem 0 1rem;
}

body.page-ios-spot-customise .standard-settings-label,
body.page-ios-spot-customise .customization-section-title,
body.page-ios-spot-customise .tide-card-label,
body.page-ios-spot-customise label,
body.page-ios-profile-forecast-prefs .standard-settings-label,
body.page-ios-profile-forecast-prefs .customization-section-title,
body.page-ios-profile-forecast-prefs .tide-card-label,
body.page-ios-profile-forecast-prefs label {
    color: rgba(255, 255, 255, 0.88);
}

body.page-ios-spot-customise .standard-settings-value,
body.page-ios-profile-forecast-prefs .standard-settings-value {
    color: rgba(255, 255, 255, 0.75);
}

body.page-ios-spot-customise select,
body.page-ios-spot-customise input[type='number'],
body.page-ios-profile-forecast-prefs select,
body.page-ios-profile-forecast-prefs input[type='number'] {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: 8px;
}

body.page-ios-spot-customise .rating-threshold-item,
body.page-ios-profile-forecast-prefs .rating-threshold-item {
    color: rgba(255, 255, 255, 0.88);
}

body.page-ios-spot-customise .wind-rose-container .wind-rose-point,
body.page-ios-profile-forecast-prefs .wind-rose-container .wind-rose-point {
    color: #fff;
}

body.page-ios-spot-customise .container,
body.page-ios-profile-forecast-prefs .container {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Compact overview cards: display-first, tap row to edit, small side-by-side actions */
body.page-ios-spot-customise .ios-compact-setting-card,
body.page-ios-profile-forecast-prefs .ios-compact-setting-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.25rem 0.5rem;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.page-ios-spot-customise .ios-compact-setting-card:active,
body.page-ios-profile-forecast-prefs .ios-compact-setting-card:active {
    background: rgba(48, 42, 58, 0.98);
}

body.page-ios-spot-customise .ios-compact-setting-card .customization-setting-info,
body.page-ios-profile-forecast-prefs .ios-compact-setting-card .customization-setting-info {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-width: 0;
    text-align: left;
    width: auto;
}

body.page-ios-spot-customise .ios-compact-setting-card .customization-setting-label,
body.page-ios-profile-forecast-prefs .ios-compact-setting-card .customization-setting-label {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

body.page-ios-spot-customise .ios-compact-setting-value,
body.page-ios-profile-forecast-prefs .ios-compact-setting-value {
    font-size: 0.86rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.page-ios-spot-customise .ios-compact-setting-card .customization-setting-actions,
body.page-ios-profile-forecast-prefs .ios-compact-setting-card .customization-setting-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: end;
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    gap: 0.35rem;
}

body.page-ios-spot-customise .ios-compact-setting-card .customization-setting-actions button,
body.page-ios-profile-forecast-prefs .ios-compact-setting-card .customization-setting-actions button {
    width: auto;
    max-width: none;
    padding: 0.28rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0;
}

body.page-ios-spot-customise .ios-customise-profile-link {
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(56, 189, 248, 0.08);
}

body.page-ios-spot-customise .ios-customise-global-prefs {
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(56, 189, 248, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body.page-ios-spot-customise .ios-customise-profile-link-label {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.9);
}

body.page-ios-spot-customise .ios-customise-profile-link-text {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

body.page-ios-spot-customise .ios-customise-profile-link-btn {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #7dd3fc;
    text-decoration: none;
}

body.page-ios-spot-customise .ios-wind-tier-overview-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

body.page-ios-spot-customise .ios-wind-tier-overview-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.1rem 0.05rem 0.15rem;
}

body.page-ios-spot-customise .ios-wind-tier-preset-toolbar,
body.page-ios-profile.page-ios-profile-forecast-prefs .ios-wind-tier-preset-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

body.page-ios-spot-customise .ios-wind-tier-preset-label,
body.page-ios-profile.page-ios-profile-forecast-prefs .ios-wind-tier-preset-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(214, 222, 235, 0.72);
}

body.page-ios-spot-customise .ios-wind-tier-preset-btns,
body.page-ios-profile.page-ios-profile-forecast-prefs .ios-wind-tier-preset-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

body.page-ios-spot-customise .ios-wind-preset-btn,
body.page-ios-profile.page-ios-profile-forecast-prefs .ios-wind-preset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(122, 141, 177, 0.3);
    background: rgba(255, 255, 255, 0.04);
    color: #e8edf5;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

body.page-ios-spot-customise .ios-wind-preset-btn:disabled,
body.page-ios-profile.page-ios-profile-forecast-prefs .ios-wind-preset-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.page-ios-spot-customise .ios-wind-preset-btn--active,
body.page-ios-profile.page-ios-profile-forecast-prefs .ios-wind-preset-btn--active {
    border-color: rgba(125, 211, 252, 0.7);
    background: rgba(125, 211, 252, 0.14);
    color: #f4fbff;
}

body.page-ios-spot-customise .ios-wind-preset-btn-icon,
body.page-ios-profile.page-ios-profile-forecast-prefs .ios-wind-preset-btn-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

body.page-ios-spot-customise .ios-wind-tier-preset-toolbar--web {
    margin: 0 0 0.65rem;
}

body.page-ios-spot-customise .ios-wind-tier-overview-row {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    padding: 0.62rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(122, 141, 177, 0.22);
    background: #12161e;
    cursor: pointer;
}

body.page-ios-spot-customise .ios-wind-tier-overview-row--readonly:active {
    opacity: 0.88;
}

body.page-ios-spot-customise .ios-compact-setting-card[data-setting='schedule'] {
    cursor: pointer;
}

body.page-ios-spot-customise .ios-wind-tier-overview-stripe {
    align-self: stretch;
    border-radius: 4px;
    min-height: 2.4rem;
}

body.page-ios-spot-customise .ios-wind-tier-overview-row--poor .ios-wind-tier-overview-stripe {
    background: rgba(244, 67, 54, 0.85);
}
body.page-ios-spot-customise .ios-wind-tier-overview-row--fair .ios-wind-tier-overview-stripe {
    background: rgba(255, 205, 30, 0.9);
}
body.page-ios-spot-customise .ios-wind-tier-overview-row--good .ios-wind-tier-overview-stripe {
    background: rgba(11, 214, 116, 0.9);
}
body.page-ios-spot-customise .ios-wind-tier-overview-row--very-good .ios-wind-tier-overview-stripe {
    background: rgba(33, 150, 243, 0.9);
}
body.page-ios-spot-customise .ios-wind-tier-overview-row--epic .ios-wind-tier-overview-stripe {
    background: rgba(146, 0, 208, 0.9);
}

body.page-ios-spot-customise .ios-wind-tier-overview-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

body.page-ios-spot-customise .ios-wind-tier-overview-range {
    margin-top: 0.15rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

body.page-ios-profile-forecast-prefs .ios-customise-global-intro {
    margin: 0 0 0.15rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.68);
}

/* iOS: global/spot-only toggles are handled by separate pages */
body.page-ios-spot-customise .customization-global-intro,
body.page-ios-profile-forecast-prefs .customization-global-intro,
body.page-ios-spot-customise .customization-checkbox-item:has(#wind-speed-location-only-page),
body.page-ios-profile-forecast-prefs .customization-checkbox-item:has(#wind-speed-location-only-page),
body.page-ios-spot-customise .customization-checkbox-item:has(#schedule-location-only-page),
body.page-ios-profile-forecast-prefs .customization-checkbox-item:has(#schedule-location-only-page) {
    display: none !important;
}

body.page-ios-spot-customise .customization-global-section,
body.page-ios-profile-forecast-prefs .customization-global-section {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Compact list-style weekly schedule (not timeline columns) */
body.page-ios-spot-customise .schedule-grid-container,
body.page-ios-profile-forecast-prefs .schedule-grid-container {
    margin-top: 0.35rem;
}

body.page-ios-spot-customise .schedule-grid-wrapper,
body.page-ios-profile-forecast-prefs .schedule-grid-wrapper {
    flex-direction: column;
}

body.page-ios-spot-customise .schedule-time-column,
body.page-ios-profile-forecast-prefs .schedule-time-column {
    display: none !important;
}

body.page-ios-spot-customise .schedule-days-container,
body.page-ios-profile-forecast-prefs .schedule-days-container {
    flex-direction: column;
    width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
    gap: 0;
}

body.page-ios-spot-customise .schedule-day-column,
body.page-ios-profile-forecast-prefs .schedule-day-column {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: start;
    min-width: 0;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0;
}

body.page-ios-spot-customise .schedule-day-column:last-child,
body.page-ios-profile-forecast-prefs .schedule-day-column:last-child {
    border-bottom: none;
}

body.page-ios-spot-customise .schedule-day-header,
body.page-ios-profile-forecast-prefs .schedule-day-header {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    padding: 0.35rem 0 0;
    margin: 0;
    border: none;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    justify-content: flex-start;
}

body.page-ios-spot-customise .schedule-day-hours,
body.page-ios-profile-forecast-prefs .schedule-day-hours {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    height: auto !important;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: transparent;
}

body.page-ios-spot-customise .schedule-time-block,
body.page-ios-profile-forecast-prefs .schedule-time-block {
    position: static !important;
    top: auto !important;
    height: auto !important;
    min-height: 0;
    left: auto;
    right: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
    padding: 0.4rem 0.45rem;
    margin: 0;
}

body.page-ios-spot-customise .schedule-time-block input[type='time'],
body.page-ios-profile-forecast-prefs .schedule-time-block input[type='time'] {
    flex: 1 1 6.25rem;
    min-width: 5.5rem;
    max-width: none;
    font-size: 0.78rem;
    padding: 0.3rem 0.35rem;
}

body.page-ios-spot-customise .schedule-block-copy-btn,
body.page-ios-profile-forecast-prefs .schedule-block-copy-btn {
    position: static;
    order: 3;
    margin-left: auto;
    padding: 0.25rem;
}

body.page-ios-spot-customise .schedule-block-delete-btn,
body.page-ios-profile-forecast-prefs .schedule-block-delete-btn {
    position: static;
    order: 4;
    padding: 0.2rem 0.35rem;
    font-size: 0.85rem;
}

body.page-ios-spot-customise .schedule-add-block-btn,
body.page-ios-profile-forecast-prefs .schedule-add-block-btn {
    position: static;
    transform: none;
    left: auto;
    align-self: flex-start;
    margin: 0;
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
}

/* Override web customise mobile stacking for compact iOS cards */
@media (max-width: 768px) {
    body.page-ios-spot-customise .ios-compact-setting-card,
    body.page-ios-profile-forecast-prefs .ios-compact-setting-card {
        flex-direction: unset;
        align-items: start;
        text-align: left;
        padding: 0.6rem 0.7rem;
    }

    body.page-ios-spot-customise .ios-compact-setting-card .customization-setting-info,
    body.page-ios-profile-forecast-prefs .ios-compact-setting-card .customization-setting-info {
        text-align: left;
        width: auto;
    }

    body.page-ios-spot-customise .ios-compact-setting-card .customization-setting-actions,
    body.page-ios-profile-forecast-prefs .ios-compact-setting-card .customization-setting-actions {
        flex-direction: row;
        width: auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    body.page-ios-spot-customise .ios-compact-setting-card .customization-setting-actions button,
    body.page-ios-profile-forecast-prefs .ios-compact-setting-card .customization-setting-actions button {
        width: auto;
        max-width: none;
    }
}

body.page-ios-spot-customise .range-slider-handle,
body.page-ios-profile-forecast-prefs .range-slider-handle {
    width: 26px;
    height: 26px;
    touch-action: none;
}

body.page-ios-spot-customise .range-slider-track,
body.page-ios-profile-forecast-prefs .range-slider-track {
    touch-action: none;
}

body.page-ios-spot-customise .range-slider-input,
body.page-ios-profile-forecast-prefs .range-slider-input {
    -moz-appearance: textfield;
}

body.page-ios-spot-customise .range-slider-input::-webkit-outer-spin-button,
body.page-ios-spot-customise .range-slider-input::-webkit-inner-spin-button,
body.page-ios-profile-forecast-prefs .range-slider-input::-webkit-outer-spin-button,
body.page-ios-profile-forecast-prefs .range-slider-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
