/* Shared pale-blue background used by registration/dashboard section cards.
   Change this one value to adjust the section contrast site-wide. */
:root {
    --header-bg: #222;
    --header-color: #fff;
    --section-accent-bg: #000;   			/*  #d6eaf8  */
	--section-bg-accent-color: #1565c0;		/*	#1565c0	 */
	--section-bg: #d6eaf8;					/*  #d6eaf8  */
	--section-bg-hover: #b1d8f3;
	--section-bg-border: #90caf9;
	
	--logout-button-bg: #555;	
	--logout-button-font: #fff;
	
	--cancel-button-bg: #777;	
	--cancel-button-font: #fff;	
	
    --account-timeline-card-bg: #f3f3f3;
    --account-timeline-card-border: #d7ddd5;
    --account-timeline-card-divider: #d7ddd5;
}

body { 
    font-family: Arial, sans-serif; 
    max-width: 850px; 
    margin: 20px auto; 
    padding: 0 15px; 
    line-height: 1.6; 
    background-color: #e8e8e6;  /*  #f4f4f4  */
    font-size: 16px;
}

.dashboard-public-topbar {
    display: flex; 
	justify-content: space-between; 
	align-items: center; 
	gap: 12px;
    margin: 0; 
	padding: 11px 10px; 
	background: var(--header-bg); 
	color: var(--header-color); 
	border-radius: 7px; 
}

.dashboard-title {
    border: none; 
	margin: 0 0 0 0;
	padding: 0;	
	max-width: 800px; 
	text-align: left; 
	color: var(--header-color);
	font-size: 24px; 
	font-weight: bold; 
}

.dashboard-user-welcome-card {
	display: flex; 
	justify-content: space-between; 
	align-items: center;  
	margin: 0; 
	padding: 10px 1px 10px 5px; 
	border: 0px solid #ccc; 
	box-sizing: border-box; 
	gap: 12px;
}

.dashboard-user-welcome {
	display: flex; 
	flex-direction: column; 
	align-items: flex-start; 
	min-width: 0;
}

.dashboard-user-logout-button {
	background: var(--logout-button-bg); 
	color: var(--logout-button-font); 
	padding: 8px 0px; 
	margin: 0; 
	font-size: 14px; 
	flex: 0 0 100px; 
	font-weight: bold; 
	cursor: pointer;
}

.box { 
	overflow: hidden;
    border: 1px solid #ccc; 
    padding: 6px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    background-color: #fff; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    width: 100%;
    box-sizing: border-box;
}

#auth-view { max-width: 500px; margin: 40px auto; padding: 25px; }

/* Account/profile field labels and contact/date controls. */
.account-field-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 6px 0 2px 0;
    color: #333;
}

.account-settings-field-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.required-field-marker {
    color: #c62828;
}

.recommended-field-marker {
    color: #1565c0;
    font-weight: normal;
}

/* iOS/Safari can render date/tel controls shorter than text inputs unless
   given an explicit minimum height. Keep them aligned with the standard form fields. */
input[type="tel"],
input[type="date"] {
    min-height: 51px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select, button { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    box-sizing: border-box; 
    border-radius: 4px; 
    border: 1px solid #ccc; 
    font-size: 18px; 
}

button { background-color: #d32f2f; color: white; border: none; font-weight: bold; cursor: pointer; }
/*	button:hover { background-color: #b71c1c; }	*/
.btn-green { background-color: #2e7d32; color: white; border: none; font-weight: bold; cursor: pointer; }
/*	.btn-green:hover { background-color: #1b5e20; }	*/
.toggle-link { text-align: center; color: #0066cc; cursor: pointer; display: block; margin-top: 10px; font-size: 15px; text-decoration: underline; }

label { font-weight: bold; display: block; margin-top: 12px; font-size: 18px; color: #222; }
h2 { margin-top: 0; color: #333; font-size: 24px; border-bottom: 2px solid #d32f2f; padding-bottom: 6px; }
h3 { margin: 0; color: #333; font-size: 20px; }


.section-group-box-container { 
    border: 1px solid #ccc; 
    padding: 0; 
    border-radius: 8px;	
    margin-bottom: 20px; 
    background-color: transparent; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    width: 100%;
    box-sizing: border-box;
}

.section-group-header {
	overflow: hidden;
	background: var(--header-bg);  
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
	padding: 0;
	margin: 0 0 0 0; 
	box-shadow: none;
	width: 100%;
}
.section-group-header-title {
	margin:0 0 0 0; 
	padding:8px 10px; 
	color: var(--header-color); 
	font-size:18px;
}

.section-group-box { 
	overflow: hidden;
    padding: 0 6px 0 6px; 
    border-radius: 0 0 8px 8px;	
    background-color: #fff; 
	text-align:left;
    width: 100%;
    box-sizing: border-box;
}

.accordion-card {
	overflow: hidden;
	background: var(--section-bg); 
	padding: 0px 0px; 
	border: 1px solid var(--section-bg-border); 
	margin: 10px 0; 
	box-shadow: none;
}
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
	margin: 0;
    padding: 10px 10px;
	background: var(--section-bg); 
	border-radius: inherit;
	contain: paint;
    user-select: none;
}
/*	.collapsible-header:hover { background: var(--section-bg-hover); }	*/
.accordion-arrow { font-size: 22px; font-weight: bold; transition: transform 0.2s ease; display: inline-block; color: #555; }
.collapsible-content { 
	display: none; 
	padding: 10px; 
	border-top: 1px dashed #90caf9; 
	margin-top: 0px; 
}


.logout-button-container { 
	overflow: hidden;
    padding: 8px 6px 8px 6px; 	
    background-color: transparent; 
    width: 100%;
    box-sizing: border-box;
}
.logout-button-large { 
	background: var(--logout-button-bg);
	color:  var(--logout-button-font);
	margin: 0;
}

.cancel-button {
	background: var(--cancel-button-bg);
	color:  var(--cancel-button-font);
}


.history-list { margin-top: 0; border-top: none; padding-top: 0; }
.history-row { background: #f9f9f9; padding: 15px; margin-bottom: 10px; border-radius: 4px; border: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; }
.history-details { font-size: 16px; color: #444; }
.history-details strong { color: #222; font-size: 18px; }
.history-row button { width: auto; padding: 8px 16px; margin: 0; font-size: 15px; }

#classes-accumulator-list, #modify-classes-accumulator-list { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
    margin-top: 12px;
}

.registration-card-frame {
    border: 1px dashed #bbb; 
    padding: 15px; 
    border-radius: 6px; 
    background-color: #fafafa;
    box-sizing: border-box;
}


/* Shared racer setup card used by both new registration and modify registration.
   Future driver partition cards can inherit the same styling by using this class. */
.driver-partition-card {
    border: 2px solid #1565c0;
    background: #fafafa;
    padding: 10px 8px 10px 8px;
    margin-bottom: 0;
}

.class-group-box { background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 6px 6px 6px 6px; box-sizing: border-box; }
label.class-row-header { margin-top: 2px; }
.class-row-header {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 18px; 
    font-weight: bold; 
    margin-bottom: 2px; 
    color: #222;
}

/* Keep the class price tucked closely below the class name. */
.class-row-header > span {
    line-height: 1.15;
}

.class-row-header > span > span[id*="class-price-hint-"] {
    line-height: 1.1;
}
.class-row-header input[type="checkbox"] { 
    width: auto; 
    margin: 0 0 0 2px; 
    transform: scale(1.4); 
    cursor: pointer;
}
input.kart-input-field {
	width: 60px; 
    padding: 6px; 
    margin: 0px 0px 6px 0px; 
    box-sizing: border-box; 
    border-radius: 4px; 
    border: 1px solid #ccc; 
    font-size: 18px; 
}
input.tx-input-field {
	width: 100%; 
    padding: 6px; 
    margin: 0px 0px 6px 0px; 
    box-sizing: border-box; 
    border-radius: 4px; 
    border: 1px solid #ccc; 
    font-size: 18px; 
}

.class-inputs-pane { background: #fdfdfd; border-left: 4px solid #d32f2f; padding-left: 6px; margin-top: 6px; margin-bottom: 4px; }
.input-row-flex { display: flex; flex-direction: column; gap: 6px; }
.input-row-flex div { width: 100%; }

.radio-inline-group { display: flex; gap: 10px; margin: 6px 0; background: #eee; padding: 8px; border-radius: 4px; justify-content: space-around; }
.radio-inline-item { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: bold; color: #333; }
.radio-inline-item input[type="radio"] { 
    width: auto; 
    margin: 0; 
    transform: scale(1.3); 
    cursor: pointer;
}

/* Registration class-card transponder choices only.
   Keep the selector inside the same 100% parent width rules as the
   transponder input; padding is included inside the available width. */
.transponder-radio-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: space-between;
    gap: 6px;
}

/* Registration class-card transponder choices only.
   Override .input-row-flex div { width:100%; } so Own stays compact
   and the Rent label/price can remain on one line. */
.transponder-radio-group .transponder-own-option,
.transponder-radio-group .transponder-rent-option {
    width: auto;
    flex: 0 0 auto;
}

.transponder-radio-group .transponder-rent-option,
.transponder-radio-group .transponder-rental-option-label {
    white-space: nowrap;
}

.history-class-segment { margin-left: 12px; padding-left: 10px; border-left: 3px solid #d32f2f; margin-top: 6px; font-size: 15px; }

@media (max-width: 600px) {
    body { padding: 0 6px; margin: 6px auto; }
    .box { margin-bottom: 12px; }
}

.live-pricing-summary-card {
    background: #fff3e0;
    border: 2px solid #ffb74d;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    margin-bottom: 5px;
    box-sizing: border-box;
}
.live-pricing-title {
    font-size: 20px;
    font-weight: bold;
    color: #e65100;
    margin-bottom: 8px;
    border-bottom: 1px dashed #ffb74d;
    padding-bottom: 4px;
}
.live-pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    color: #444;
    margin: 4px 0;
}
.live-pricing-grand-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 900;
    color: #d84315;
    margin-top: 8px;
    border-top: 2px solid #ffb74d;
    padding-top: 6px;
}


/* Modify-registration driver cards: compact by default, expand only when needed. */
.modify-driver-partition-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.modify-driver-partition-name {
    min-width: 0;
    color: #1565c0;
    font-size: 18px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.modify-driver-details-toggle {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    background-color: #1565c0;
}

/*	.modify-driver-details-toggle:hover {
    background-color: #0d47a1;
}	*/

.modify-driver-partition-details {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1565c0;
}

.modify-driver-partition-card.is-expanded .modify-driver-partition-details {
    display: block;
}

.modify-driver-pricing-label {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .modify-driver-partition-summary {
        gap: 8px;
    }

    .modify-driver-details-toggle {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* Pit Pass v2: shared registration / modify-registration controls. */
.pit-pass-selection-card {
    background: #fff;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.pit-pass-heading-row,
.crew-event-pass-row,
.pit-pass-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #333;
}

.pit-pass-heading-row,
.crew-event-pass-row {
    font-size: 16px;
}

.pit-pass-total-row {
    padding-top: 8px;
    border-top: 1px solid #ccc;
    font-size: 17px;
}

.pit-pass-inline-total {
    color: #555;
    font-weight: bold;
    text-align: right;
}

.pit-pass-grand-inline-total {
    color: #1565c0;
    font-weight: bold;
    text-align: right;
}

.crew-event-pass-input-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.crew-event-pass-input-group input[type="number"],
.crew-day-pit-pass-row input[type="number"] {
    width: 75px;
    padding: 8px;
    margin: 0;
    font-size: 16px;
    box-sizing: border-box;
}

.driver-pit-pass-selection-controls,
.crew-day-pit-pass-controls {
    display: none;
}

.driver-pit-pass-row {
    margin-top: 2px;
    padding: 9px;
    border: 1px solid #90caf9;
    border-radius: 4px;
    background: #f4f9ff;
}

.driver-pit-pass-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.driver-pit-pass-mode-select {
    width: 100%;
    margin: 6px 0 0 0;
    padding: 7px;
    font-size: 14px;
}

.driver-pit-pass-day-options {
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px dashed #90caf9;
}

.driver-pit-pass-day-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
}

.driver-pit-pass-day-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.15);
}

.crew-day-pit-pass-controls {
    padding-top: 4px;
    border-top: 1px dashed #ccc;
}

.crew-day-pit-pass-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .pit-pass-heading-row,
    .crew-event-pass-row,
    .pit-pass-total-row,
    .crew-day-pit-pass-row {
        align-items: flex-start;
    }

    .driver-pit-pass-row-header {
        flex-direction: column;
    }
}

/* v5.0 structured account/driver location + class-entry public detail fields */
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: Arial, sans-serif;
    resize: vertical;
}
.structured-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
}
.registration-entry-detail-fields {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed #ccc;
}
.registration-detail-field { margin-top: 5px; }
.registration-detail-field select,
.registration-detail-field input {
    width: 100%;
    margin: 3px 0;
    padding: 7px;
    font-size: 14px;
}
@media (max-width: 600px) {
    .structured-location-grid { grid-template-columns: 1fr; }
}



/* =============== MEDIA HOVER FIX ====================== */

@media (hover: hover) and (pointer: fine) {
    button:hover { background-color: #b71c1c; }
    .btn-green:hover { background-color: #1b5e20; }
    .collapsible-header:hover { background: var(--section-bg-hover); }
    .modify-driver-details-toggle:hover { background-color: #0d47a1; }
}

@media (hover: none) {
	button:active { background-color: #b71c1c; }
	.btn-green:active { background-color: #1b5e20; }
	.collapsible-header:active { background: var(--section-bg-hover); }
	.modify-driver-details-toggle:active { background-color: #0d47a1; }
}


/* ========================================================================== 
   PHASE 3G — CUSTOMER SERVICES / RESERVED NUMBERS
   ========================================================================== */
.customer-program-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 10px 0;
}

.customer-program-tab {
    margin: 0;
    padding: 9px 10px;
    font-size: 14px;
    line-height: 1.2;
    background: #e8eef5;
    color: #24415e;
    border: 1px solid #b8c8d8;
}

.customer-program-tab.is-active {
    background: #2563a6;
    color: #fff;
    border-color: #2563a6;
}

.customer-program-pane {
    display: none;
}

.customer-program-pane.is-active {
    display: block;
}

.customer-reserved-number-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customer-reserved-number-empty {
    padding: 12px;
    border: 1px solid #d4dbe3;
    border-radius: 5px;
    background: #fff;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

.customer-reserved-number-record {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #c7d6e5;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.customer-reserved-number-badge {
    flex: 0 0 auto;
    min-width: 54px;
    padding: 7px 8px;
    border-radius: 5px;
    background: #2563a6;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.customer-reserved-number-record-details {
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    line-height: 1.35;
}

.customer-reserved-number-record-details > strong {
    display: block;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.customer-reserved-number-meta {
    margin-top: 2px;
    color: #666;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.customer-reserved-number-payment-status {
    flex: 0 0 auto;
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.customer-reserved-number-payment-status.is-due {
    background: #fff3e0;
    color: #a54800;
    border: 1px solid #ffcc80;
}

.customer-reserved-number-payment-status.is-clear {
    background: #e8f5e9;
    color: #256029;
    border: 1px solid #a5d6a7;
}

.customer-reserved-number-form-card {
    padding: 12px;
    border: 1px solid #c7d6e5;
    border-radius: 6px;
    background: #fff;
}

.customer-reserved-number-form-card label {
    margin-top: 9px;
    font-size: 14px;
}

.customer-reserved-number-form-card select,
.customer-reserved-number-form-card input[type="text"] {
    margin: 4px 0 7px 0;
    padding: 9px;
    font-size: 16px;
}

.customer-reserved-number-form-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
}

.customer-reserved-number-form-heading strong {
    color: #1565c0;
    font-size: 17px;
}

.customer-reserved-number-form-heading span {
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

.customer-reserved-number-program-summary {
    margin: -1px 0 7px 0;
    padding: 8px;
    border-radius: 4px;
    background: #f4f8fc;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
}

.customer-reserved-number-program-summary:empty {
    display: none;
}

.customer-reserved-number-field-help,
.customer-reserved-payment-instructions {
    margin: -2px 0 7px 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.customer-reserved-payment-group {
    margin-top: 7px;
    padding-top: 4px;
    border-top: 1px dashed #c7d6e5;
}

.customer-reserved-number-quote {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.4;
}

.customer-reserved-number-quote.is-neutral {
    background: #f5f5f5;
    border: 1px solid #d5d5d5;
    color: #666;
}

.customer-reserved-number-quote.is-available {
    background: #f1f8e9;
    border: 1px solid #a5d6a7;
    color: #333;
}

.customer-reserved-number-quote.is-unavailable {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #a51e2a;
}

.customer-reserved-number-available-line {
    color: #2e7d32;
    font-weight: 800;
    font-size: 14px;
}

.customer-reserved-number-benefit-line {
    margin-top: 3px;
    color: #1565c0;
    font-weight: bold;
}

.customer-reserved-number-price-summary {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #a5d6a7;
}

.customer-reserved-number-price-row,
.customer-reserved-number-price-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-top: 3px;
}

.customer-reserved-number-price-total {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid #9ccc65;
    font-size: 16px;
    font-weight: 800;
}

.customer-reserved-number-balance-note {
    margin-top: 7px;
    color: #555;
    font-size: 12px;
}

.customer-reserved-number-quote-warning {
    margin-top: 7px;
    padding: 6px;
    border-radius: 4px;
    background: #fff3e0;
    color: #a54800;
    font-weight: bold;
}

#customer-reserved-number-submit {
    margin: 5px 0 0 0;
}

#customer-reserved-number-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
    .customer-program-tab:hover {
        background: #d5e1ed;
        color: #24415e;
    }
    .customer-program-tab.is-active:hover {
        background: #174c87;
        color: #fff;
    }
}

@media (max-width: 600px) {
    .customer-program-tab {
        padding: 8px 5px;
        font-size: 12px;
    }

    .customer-reserved-number-record {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .customer-reserved-number-record-details {
        flex: 1 1 calc(100% - 72px);
    }

    .customer-reserved-number-payment-status {
        margin-left: 66px;
    }
}

/* ========================================================================== */
/* PHASE 3H-D — MY TRACKS & ORGANIZATIONS                                     */
/* ========================================================================== */

.my-organizations-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.my-organizations-column {
    min-width: 0;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    padding: 12px;
}

.my-organizations-heading-row h3 {
    margin: 0;
    color: #333;
    font-size: 17px;
}

.my-organizations-heading-row p {
    margin: 4px 0 10px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.my-organizations-list {
    display: grid;
    gap: 7px;
}

.my-organizations-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fafafa;
}

.my-organizations-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.my-organizations-card-copy strong {
    color: #333;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.my-organizations-card-copy span {
    color: #666;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.my-organizations-card-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.my-organizations-action-button {
    display: inline-block;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid #90caf9;
    border-radius: 4px;
    background: #d6eaf8;
    color: #1565c0;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    width: auto;
}

.my-organizations-action-button:hover {
    background: #b1d8f3;
    color: #333;
}

.my-organizations-action-button.is-unfollow {
    border-color: #d1d1d1;
    background: #f2f2f2;
    color: #555;
}

.my-organizations-action-button.is-unfollow:hover {
    background: #e4e4e4;
}

.my-organizations-empty,
.my-organizations-error {
    padding: 9px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.my-organizations-empty {
    color: #777;
    background: #fafafa;
    border: 1px dashed #ccc;
    font-style: italic;
}

.my-organizations-error {
    color: #a51e2a;
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

@media (max-width: 700px) {
    .my-organizations-dashboard {
        grid-template-columns: 1fr;
    }

    .my-organizations-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .my-organizations-card-actions {
        justify-content: flex-start;
    }
}

/* ========================================================================== */
/* PHASE 3H-E — ACCOUNT DASHBOARD / NAVIGATION WORKSPACE                      */
/* ========================================================================== */

/* The authenticated account area now behaves like a workspace rather than a
   long stack of unrelated sections. The legacy registration/service cards are
   preserved inside these panels so their existing behavior remains intact. */
body {
    max-width: 1120px;
}

.account-dashboard-shell {
    --account-nav-border: #c9ced4;
    --account-nav-active: #1565c0;
    --account-panel-bg: #f6f7f8;
}

.account-dashboard-shell .dashboard-public-topbar {
    border-radius: 9px 9px 0 0;
    padding: 13px 16px;
}

.account-dashboard-shell .dashboard-user-welcome-card {
    background: #fff;
    border: 1px solid #d4d7da;
    border-top: 0;
    padding: 10px 14px;
    margin: 0;
}

.account-dashboard-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 12px 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--account-nav-border);
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.account-dashboard-tab {
    width: auto;
    flex: 1 0 auto;
    min-width: 115px;
    margin: 0;
    padding: 11px 14px;
    border: 0;
    border-right: 1px solid #e0e3e6;
    border-radius: 0;
    background: #f3f4f5;
    color: #3d444a;
    font-size: 14px;
    line-height: 1.2;
    font-weight: bold;
    white-space: nowrap;
}

.account-dashboard-tab:last-child { border-right: 0; }
.account-dashboard-tab:hover { background: #e9edf0; }
.account-dashboard-tab.is-active {
    background: #fff;
    color: var(--account-nav-active);
    box-shadow: inset 0 -3px 0 var(--account-nav-active);
}
.account-dashboard-tab[hidden] { display: none !important; }

.account-dashboard-workspace {
    background: var(--account-panel-bg);
    border: 1px solid var(--account-nav-border);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    padding: 16px;
    min-height: 330px;
    box-sizing: border-box;
}

.account-workspace-panel { display: none; }
.account-workspace-panel.is-active { display: block; }

.account-workspace-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin: 0 0 14px;
    padding: 0 1px 12px;
    border-bottom: 1px solid #d9dde1;
}

.account-workspace-heading h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #252a2e;
    font-size: 24px;
    line-height: 1.2;
}

.account-workspace-heading p {
    margin: 4px 0 0;
    max-width: 760px;
    color: #626970;
    font-size: 14px;
    line-height: 1.45;
}

.account-workspace-kicker {
    margin-bottom: 2px;
    color: #6a7178;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-workspace-surface {
    background: #fff;
    border: 1px solid #d6dadd;
    border-radius: 8px;
    padding: 0 8px;
    box-sizing: border-box;
}

/* Strip the old outer section framing now that each area has a dedicated
   workspace panel. Internal cards/accordions keep their existing styling. */
.account-workspace-panel > .section-group-box-container {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
}
.account-workspace-panel > .section-group-box-container > .section-group-header {
    display: none;
}
.account-workspace-panel > .section-group-box-container > .section-group-box {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.account-workspace-panel .box.accordion-card {
    margin: 10px 0;
}

.account-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-overview-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 170px;
    padding: 16px;
    border: 1px solid #d4d9de;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
    box-sizing: border-box;
}

.account-overview-card[hidden] { display: none !important; }
.account-overview-card--primary {
    border-color: #a9cbea;
    background: #f8fbfe;
}

.account-overview-card-label {
    color: #6d747a;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.account-overview-card h3 {
    margin: 3px 0 5px;
    color: #262b2f;
    font-size: 19px;
}

.account-overview-card p {
    flex: 1;
    margin: 0 0 14px;
    color: #5f666c;
    font-size: 13px;
    line-height: 1.45;
}

.account-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.account-overview-action {
    width: auto;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid #b8c0c7;
    border-radius: 5px;
    background: #fff;
    color: #333b42;
    font-size: 13px;
    line-height: 1.2;
}
.account-overview-action:hover { background: #eef1f3; }
.account-overview-action.is-primary {
    border-color: #1565c0;
    background: #1565c0;
    color: #fff;
}
.account-overview-action.is-primary:hover { background: #0f559f; }

/* My Tracks & Organizations is already a two-column dashboard. Let the new
   workspace shell own its outer frame. */
#account-workspace-organizations #my-organizations-section {
    margin: 0;
}
#account-workspace-organizations .my-organizations-dashboard {
    border-radius: 8px;
    border: 1px solid #d6dadd;
    padding: 12px;
    background: #fff;
}

/* Services is module-aware; its legacy section wrapper stays in the DOM so
   existing loader logic can show/hide it without affecting workspace tabs. */
#account-workspace-services #customer-services-programs-section {
    margin: 0;
}

.account-dashboard-bottom-logout {
    max-width: 260px;
    margin: 10px auto 0;
}

@media (max-width: 760px) {
    body {
        max-width: none;
        margin: 10px auto;
        padding: 0 8px;
    }

    .account-dashboard-shell .dashboard-public-topbar {
        border-radius: 7px 7px 0 0;
    }

    .account-dashboard-tabs {
        border-radius: 7px 7px 0 0;
    }

    .account-dashboard-tab {
        min-width: auto;
        padding: 10px 11px;
        font-size: 13px;
    }

    .account-dashboard-workspace {
        padding: 11px;
        min-height: 260px;
    }

    .account-workspace-heading h2 { font-size: 21px; }
    .account-workspace-heading p { font-size: 13px; }

    .account-overview-grid {
        grid-template-columns: 1fr;
    }

    .account-overview-card {
        min-height: 0;
        padding: 13px;
    }

    .account-overview-actions {
        flex-direction: column;
    }

    .account-overview-action {
        width: 100%;
    }
}



/* ========================================================================== */
/* PHASE 3H-E2 — ACCOUNT APP SHELL / LEFT NAVIGATION / SECTION TABS           */
/* ========================================================================== */

body.account-app-active {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #eef1f3;
    line-height: 1.45;
}

.account-app {
    --account-deep: #222;
    --account-side: #303a43;
    --account-side-hover: #3b4853;
    --account-side-active: #475967;
    --account-canvas: #eef1f3;
    --account-card: #fff;
    --account-border: #d3d9de;
    --account-blue: #1565c0;
    --account-blue-soft: #d6eaf8;
    width: 100%;
    min-height: 100vh;
    background: var(--account-canvas);
    color: #29333b;
}

.account-app button { font-family: inherit; }

.account-topbar {
    height: 64px;
    background: var(--account-deep);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 1px 5px rgba(0,0,0,.14);
}

.account-topbar-left,
.account-topbar-right {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.account-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.05;
    white-space: nowrap;
}

.account-brand-mark {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 9px;
    background: var(--account-blue);
    border: 1px solid #4f8bcf;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.account-brand strong {
    display: block;
    font-size: 17px;
    letter-spacing: .02em;
}

.account-brand small {
    display: block;
    margin-top: 4px;
    color: #bed1e6;
    font-size: 9px;
    letter-spacing: .11em;
}

.account-welcome {
    max-width: 300px;
    overflow: hidden;
    color: #d7e0e8;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-topbar-logout,
.account-mobile-toggle {
    width: auto !important;
    min-height: 36px;
    margin: 0 !important;
    padding: 7px 11px !important;
    border: 1px solid #606b74;
    border-radius: 6px;
    background: #4a555f;
    color: #fff;
    font-size: 13px !important;
    line-height: 1.2;
}

.account-topbar-logout:hover,
.account-mobile-toggle:hover {
    background: #596773;
}

.account-mobile-toggle {
    display: none;
    min-width: 38px;
    font-size: 22px !important;
    line-height: 1;
}

.account-app-body {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 64px);
}

.account-sidebar {
    width: 265px;
    min-width: 265px;
    flex: 0 0 265px;
    min-height: calc(100vh - 64px);
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
    z-index: 82;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--account-side);
    color: #fff;
    transition: width .22s ease, min-width .22s ease, flex-basis .22s ease;
}

.account-sidebar-top {
    height: 57px;
    min-height: 57px;
    padding: 11px 13px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.account-sidebar-caption {
    color: #bfd0dd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
}

.account-sidebar-collapse {
    display: grid;
    place-items: center;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #6b7b88;
    border-radius: 5px;
    background: #495966;
    color: #fff;
    font-size: 24px !important;
    line-height: 1;
}

.account-sidebar-collapse:hover { background: #586b79; }
.account-drawer-close { display: none; }

.account-navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 12px 8px;
}

.account-nav-direct {
    display: flex !important;
    align-items: center;
    gap: 11px;
    width: 100% !important;
    min-height: 42px;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 6px;
    background: transparent;
    color: #eef5fa;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
}

.account-nav-direct:hover { background: var(--account-side-hover); }

.account-nav-direct.is-selected {
    background: var(--account-side-active);
    color: #fff;
    box-shadow: inset 3px 0 var(--account-blue);
}

.account-nav-direct[hidden] { display: none !important; }

.account-nav-icon {
    width: 23px;
    min-width: 23px;
    color: #c6d8e5;
    font-size: 17px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.account-nav-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-nav-divider {
    height: 1px;
    margin: 8px 9px;
    background: rgba(255,255,255,.13);
}

.account-sidebar-foot {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #c9d5de;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
}

.account-sidebar-foot small {
    color: #9eb3c2;
    font-size: 10px;
}

.account-app.sidebar-collapsed .account-sidebar {
    width: 47px;
    min-width: 47px;
    flex-basis: 47px;
}

.account-app.sidebar-collapsed .account-sidebar-caption,
.account-app.sidebar-collapsed .account-navigation,
.account-app.sidebar-collapsed .account-sidebar-foot {
    display: none;
}

.account-app.sidebar-collapsed .account-sidebar-top {
    justify-content: center;
    padding: 11px 6px;
}

.account-mobile-backdrop { display: none; }

.account-main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 18px clamp(14px, 2.4vw, 34px) 55px;
}

.account-breadcrumb {
    max-width: 1400px;
    margin: 0 auto 13px;
    color: #77838d;
    font-size: 12px;
    font-weight: 600;
}

.account-dashboard-workspace {
    max-width: 1400px;
    min-height: 330px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.account-workspace-panel.is-active { display: block; }

.account-workspace-heading {
    margin-bottom: 18px;
    padding: 0;
    border-bottom: 0;
    align-items: center;
}

.account-workspace-heading h2 {
    color: #263742;
    font-size: clamp(23px, 2.2vw, 28px);
}

.account-workspace-heading p {
    max-width: 850px;
    color: #65737d;
    font-size: 13px;
}

.account-workspace-kicker {
    color: #70808c;
    font-size: 10px;
    letter-spacing: .11em;
}

/* Reuse the previous My Account top-tab appearance inside each workspace. */
.account-section-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 14px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #c9ced4;
    border-radius: 8px 8px 0 0;
    background: #fff;
    scrollbar-width: thin;
}

.account-section-tab {
    width: auto;
    min-width: 145px;
    flex: 1 0 auto;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-right: 1px solid #e0e3e6 !important;
    border-radius: 0;
    background: #f3f4f5;
    color: #3d444a;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.account-section-tab:last-child { border-right: 0 !important; }
.account-section-tab:hover { background: #e9edf0; }
.account-section-tab.is-active {
    background: #fff;
    color: var(--account-blue);
    box-shadow: inset 0 -3px 0 var(--account-blue);
}

.account-workspace-surface,
#account-workspace-organizations .my-organizations-dashboard {
    border: 1px solid var(--account-border);
    border-radius: 0 0 8px 8px;
    background: var(--account-card);
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.account-workspace-surface { padding: 8px 10px; }

.account-service-workspace-surface { padding: 0; }


.account-registration-pane {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--account-border) !important;
    border-radius: 0 0 8px 8px !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.05) !important;
}

.account-registration-pane.is-active { display: block !important; }

#account-workspace-registrations .account-registration-pane > .collapsible-header,
#account-workspace-drivers .account-static-card > .collapsible-header,
#account-workspace-memberships .account-static-card > .collapsible-header,
#account-workspace-reserved_numbers .account-static-card > .collapsible-header,
#account-workspace-account .account-static-card > .collapsible-header {
    display: none !important;
}

#account-workspace-registrations .account-registration-pane > .collapsible-content,
#account-workspace-drivers .account-static-card > .collapsible-content,
#account-workspace-memberships .account-static-card > .collapsible-content,
#account-workspace-reserved_numbers .account-static-card > .collapsible-content,
#account-workspace-account .account-static-card > .collapsible-content {
    display: block !important;
    margin-top: 0 !important;
    padding: 14px !important;
    border-top: 0 !important;
}

#account-workspace-drivers .account-static-card,
#account-workspace-memberships .account-static-card,
#account-workspace-reserved_numbers .account-static-card,
#account-workspace-account .account-static-card {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#account-workspace-drivers .account-workspace-surface,
#account-workspace-account .account-workspace-surface {
    padding: 0;
}

#account-workspace-organizations .my-organizations-dashboard {
    display: block;
    padding: 14px;
}

.account-organization-pane[hidden] { display: none !important; }


#account-workspace-memberships .customer-program-tabs,
#account-workspace-reserved_numbers .customer-program-tabs {
    margin-bottom: 12px;
}

.account-overview-card {
    border-color: var(--account-border);
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.account-overview-card--primary {
    border-color: #a9cbea;
    background: #f7fbff;
}

@media (max-width: 760px) {
    body.account-app-active {
        margin: 0;
        padding: 0;
    }

    .account-topbar {
        height: 58px;
        padding: 0 11px;
    }

    .account-mobile-toggle {
        display: grid;
        place-items: center;
    }

    .account-topbar-left,
    .account-topbar-right { gap: 8px; }

    .account-welcome { display: none; }

    .account-brand-mark {
        width: 33px;
        height: 33px;
    }

    .account-brand strong { font-size: 15px; }
    .account-brand small { font-size: 8px; }

    .account-topbar-logout {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .account-sidebar,
    .account-app.sidebar-collapsed .account-sidebar {
        position: fixed;
        z-index: 105;
        left: 0;
        top: 58px;
        width: 280px;
        max-width: 86vw;
        min-width: 0;
        height: calc(100dvh - 58px);
        flex-basis: 280px;
        transform: translateX(-105%);
        box-shadow: 5px 0 18px rgba(0,0,0,.2);
        transition: transform .2s ease;
    }

    .account-app.mobile-nav-open .account-sidebar { transform: translateX(0); }

    .account-app.sidebar-collapsed .account-sidebar-caption,
    .account-app.sidebar-collapsed .account-navigation,
    .account-app.sidebar-collapsed .account-sidebar-foot {
        display: flex;
    }

    .account-app.sidebar-collapsed .account-sidebar-caption { display: block; }

    .account-sidebar-collapse { display: none !important; }

    .account-drawer-close {
        display: grid !important;
        place-items: center;
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0;
        border-radius: 5px;
        background: #53636f;
        color: #fff;
        font-size: 25px !important;
    }

    .account-mobile-backdrop {
        display: none;
        position: fixed;
        inset: 58px 0 0;
        z-index: 100;
        background: rgba(17,31,47,.48);
    }

    .account-app.mobile-nav-open .account-mobile-backdrop { display: block; }

    .account-main {
        width: 100%;
        padding: 15px 10px 40px;
    }

    .account-breadcrumb { margin-bottom: 10px; }

    .account-workspace-heading {
        margin-bottom: 14px;
    }

    .account-workspace-heading h2 { font-size: 22px; }

    .account-section-tabs {
        margin-bottom: 10px;
        border-radius: 7px 7px 0 0;
    }

    .account-section-tab {
        min-width: auto;
        padding: 10px 11px !important;
        font-size: 13px !important;
    }

    #account-workspace-registrations .account-registration-pane > .collapsible-content,
    #account-workspace-drivers .account-static-card > .collapsible-content,
    #account-workspace-services .account-static-card > .collapsible-content,
    #account-workspace-account .account-static-card > .collapsible-content {
        padding: 10px !important;
    }
}

@media (max-width: 385px) {
    .account-brand small { display: none; }
    .account-brand { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .account-sidebar,
    .account-section-tab,
    .account-nav-chevron {
        transition: none;
    }
}

/* ==========================================================================
   PHASE 3H-E2.1 — ACCOUNT INTERACTION CLEANUP
   Timeline detail controls, Driver remove hover, and Reserved Number cancel.
   ========================================================================== */
.account-registration-details-toggle {
    background: #607d8b;
    color: #fff;
}

.account-driver-remove-button {
    background: #c62828;
    color: #fff;
}

.customer-reserved-number-cancel-button {
    margin-top: 5px;
    background: var(--cancel-button-bg);
    color: var(--cancel-button-font);
}

@media (hover: hover) and (pointer: fine) {
    .account-registration-details-toggle:hover { background: #455a64; }
    .account-driver-remove-button:hover { background: #b71c1c; }
    .customer-reserved-number-cancel-button:hover { background: #5f5f5f; }
}

@media (hover: none) {
    .account-registration-details-toggle:active { background: #455a64; }
    .account-driver-remove-button:active { background: #b71c1c; }
    .customer-reserved-number-cancel-button:active { background: #5f5f5f; }
}


/* ========================================================================== */
/* PHASE 3H-E3 — SERVICES & PROGRAMS SIDEBAR SUBNAV                           */
/* ========================================================================== */

.account-nav-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-nav-group[hidden] {
    display: none !important;
}

.account-nav-heading {
    display: flex !important;
    align-items: center;
    gap: 6px;
    width: 100% !important;
    min-height: 42px;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 6px;
    background: transparent;
    color: #eef5fa;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
}

.account-nav-heading:hover,
.account-nav-link:hover {
    background: var(--account-side-hover);
}

.account-nav-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #c6d8e5;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: transform .18s ease, color .18s ease;
}

.account-nav-heading:hover .account-nav-chevron {
    color: #e0edf6;
}

.account-nav-heading[aria-expanded="true"] .account-nav-chevron {
    transform: rotate(0);
    color: #e0edf6;
}

.account-nav-subnav {
    display: none;
    padding: 2px 0 6px 30px;
}

.account-nav-subnav.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-nav-link {
    display: block !important;
    width: 100% !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    border: 0 !important;
    border-radius: 5px;
    background: transparent;
    color: #d4e0e8;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: left;
    white-space: normal;
}

.account-nav-link[hidden] {
    display: none !important;
}

.account-nav-link.is-selected {
    background: var(--account-side-active);
    color: #fff;
    box-shadow: inset 3px 0 var(--account-blue);
}

/* ========================================================================== */
/* PHASE 3I — PERSONALIZED ORGANIZATION NEWS FEED                             */
/* ========================================================================== */
.account-news-feed { display: grid; gap: 10px; }
.account-news-feed-card {
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.account-news-feed-card h3 { margin: 4px 0 7px; font-size: 18px; line-height: 1.25; }
.account-news-feed-meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; color: #666; font-size: 12px; }
.account-news-feed-meta strong { color: #1565c0; font-size: 13px; }
.account-news-feed-body { color: #444; font-size: 13px; line-height: 1.5; }
.account-news-feed-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.account-news-feed-empty,
.account-news-feed-error { padding: 10px 12px; border-radius: 5px; font-size: 13px; line-height: 1.45; }
.account-news-feed-empty { color: #777; background: #fafafa; border: 1px dashed #ccc; font-style: italic; }
.account-news-feed-error { color: #a51e2a; background: #ffebee; border: 1px solid #ef9a9a; }
@media (max-width: 700px) {
    .account-news-feed-actions { justify-content: flex-start; }
}

/* ========================================================================== */
/* PHASE 3I.4 — NEWS PREVIEW CARDS / FEATURED IMAGES                          */
/* ========================================================================== */
.account-news-feed-card.has-image {
    display: grid;
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.account-news-feed-copy { min-width: 0; }
.account-news-feed-card h3 a { color: #2f2f2f; text-decoration: none; }
.account-news-feed-card h3 a:hover { color: #1565c0; text-decoration: underline; }
.account-news-feed-image-link {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #d7d7d7;
    background: #f5f5f5;
}
.account-news-feed-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f5f5f5;
}
@media (max-width: 700px) {
    .account-news-feed-card.has-image { grid-template-columns: 1fr; }
    .account-news-feed-image-link { max-width: 100%; }
}


/* Phase 3J-A — My Account email subscriptions. */
.account-email-subscription-list {
    display: grid;
    gap: 10px;
}

.account-email-subscription-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid #d7dce0;
    border-radius: 7px;
    background: #fff;
}

.account-email-subscription-main {
    min-width: 0;
}

.account-email-subscription-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.25;
}

.account-email-subscription-meta {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.account-email-subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.account-email-subscription-empty,
.account-email-subscription-error {
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.45;
}

.account-email-subscription-empty {
    color: #777;
    background: #fafafa;
    border: 1px dashed #ccc;
    font-style: italic;
}

.account-email-subscription-error {
    color: #a51e2a;
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.account-email-subscription-actions .is-danger {
    color: #a51e2a;
    border-color: #ef9a9a;
}

@media (max-width: 650px) {
    .account-email-subscription-card {
        flex-direction: column;
    }
    .account-email-subscription-actions {
        justify-content: flex-start;
    }
}


/* ==========================================================================
   PHASE 5A.1 — RESERVED NUMBER ORGANIZATION / SEASON CONTEXT
   ========================================================================== */

.customer-reserved-number-organization {
    margin-bottom: 2px;
    color: #1f4d6b;
    font-size: 13px;
    font-weight: 700;
}

.customer-reserved-number-organization-summary {
    margin: -2px 0 10px;
    padding: 7px 9px;
    border: 1px solid #dbe4ea;
    border-radius: 5px;
    background: #f7fafc;
    color: #52606b;
    font-size: 12px;
    line-height: 1.4;
}

.customer-reserved-number-organization-summary:empty {
    display: none;
}


/* ========================================================================== */
/* PHASE 5A.2.1 — REGISTRATION-STYLE RESERVED NUMBER DRIVER / CLASS LAYOUT    */
/* ========================================================================== */

.customer-reserved-number-multi-help {
    margin: 10px 0 12px;
    padding: 9px 10px;
    border: 1px solid #dbe4ea;
    border-radius: 5px;
    background: #f7fafc;
    color: #52606b;
    font-size: 12px;
    line-height: 1.45;
}

.customer-reserved-number-driver-groups {
    margin: 12px 0;
}

.customer-reserved-driver-select-label {
    margin: 0 0 6px;
    color: #333;
    font-size: 16px;
    font-weight: 700;
}

.customer-reserved-driver-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.customer-reserved-driver-check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: #333;
    font-size: 16px;
    font-weight: normal !important;
    cursor: pointer;
    user-select: none;
}

.customer-reserved-driver-check-row input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.4);
    cursor: pointer;
}

.customer-reserved-driver-check-row small,
.customer-reserved-driver-partition-title span {
    font-weight: 700;
}

.customer-reserved-driver-check-row small.is-member,
.customer-reserved-driver-partition-title span.is-member {
    color: #2e7d32;
}

.customer-reserved-driver-check-row small.is-nonmember,
.customer-reserved-driver-partition-title span.is-nonmember {
    color: #c62828;
}

.customer-reserved-driver-partitions-workspace {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 12px;
}

.customer-reserved-driver-partition {
    margin-bottom: 0;
}

.customer-reserved-driver-partition-title {
    margin: 0 0 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #1565c0;
    color: var(--section-bg-accent-color);
}

.customer-reserved-driver-partition-title span {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.customer-reserved-select-classes-label {
    margin: 0 0 6px !important;
    color: #333;
    font-size: 16px;
}

.customer-reserved-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 10px;
}

.customer-reserved-class-category {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 7px 9px;
    border-left: 4px solid #1565c0;
    background: var(--section-bg);
    color: var(--section-bg-accent-color);
    font-size: 15px;
    font-weight: 700;
}

.customer-reserved-class-card {
    margin-bottom: 0;
}

.customer-reserved-class-card.is-selected {
    border-color: #9eb9cc;
}

.customer-reserved-class-card.is-existing {
    background: #f8f8f8;
}

.customer-reserved-class-header {
    margin-bottom: 2px;
    cursor: pointer;
    user-select: none;
}

.customer-reserved-class-header.is-disabled {
    cursor: default;
}

.customer-reserved-class-header > span {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    line-height: 1.15;
}

.customer-reserved-class-header > span > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.customer-reserved-class-price-hint {
    margin-left: auto;
    white-space: nowrap;
    color: var(--section-bg-accent-color);
    font-size: 16px;
    font-weight: 700;
}

.customer-reserved-class-price-hint.is-existing {
    color: #5d666d;
    font-size: 13px;
}

.customer-reserved-class-pane {
    margin-top: 6px;
    margin-bottom: 4px;
}

.customer-reserved-class-pane-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0 3px;
}

.customer-reserved-class-pane-inner > div:first-child {
    width: auto;
}

.customer-reserved-class-pane-inner label {
    margin-top: 0 !important;
    font-size: 14px;
}

.customer-reserved-class-pane-inner input[type="text"] {
    width: 76px;
    box-sizing: border-box;
    margin: 0 0 4px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
}

.customer-reserved-line-status {
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}

.customer-reserved-line-status.is-neutral {
    color: #6d747a;
}

.customer-reserved-line-status.is-available {
    color: #2f6b3b;
    font-weight: 700;
}

.customer-reserved-line-status.is-unavailable {
    color: #9b2c2c;
    font-weight: 700;
}

.customer-reserved-number-batch-heading {
    margin-bottom: 8px;
    font-weight: 700;
}

.customer-reserved-number-batch-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.customer-reserved-number-batch-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.customer-reserved-number-batch-summary-line span {
    min-width: 0;
}

.customer-reserved-number-batch-summary-line strong {
    flex: 0 0 auto;
}

@media (max-width: 460px) {
    .customer-reserved-number-batch-summary-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .customer-reserved-class-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   PHASE 5B.5.5.1 — ACCOUNT CENTER MODIFY REGISTRATION WIZARD
   Scoped to the dynamically generated Modify Registration Package editor only.
   ============================================================================ */
#separated-package-modify-container:has(.account-modify-wizard) { padding: 0 !important; border: 1px solid #c8d6df !important; border-radius: 7px; overflow: hidden; }
#separated-package-modify-container:has(.account-modify-wizard) > .collapsible-header { display: none; }
#separated-package-modify-container:has(.account-modify-wizard) > div { padding: 0 !important; border: 0 !important; margin: 0 !important; }
.account-modify-wizard { background: #fff; overflow: hidden; width: 100%; box-sizing: border-box; }
.account-modify-wizard-header { padding: 13px 14px 10px; border-bottom: 1px solid #c8d6df; background: var(--section-bg); }
.account-modify-wizard-kicker { color: var(--section-bg-accent-color); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.account-modify-wizard-header h3 { font-size: 19px; margin: 3px 0; color: #333; }
.account-modify-wizard-header p, .account-modify-wizard-pane-heading p { font-size: 12px; color: #687989; line-height: 1.5; margin: 0; }
.account-modify-wizard-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px; margin-bottom: 10px; border-bottom: 1px solid #e2e9f0; scrollbar-width: thin; }
.account-modify-wizard-tab { appearance: none; min-width: 0; min-height: 42px; flex: 1 1 0; display: flex; gap: 7px; align-items: center; justify-content: center; padding: 8px 10px !important; margin: 0 !important; background: #edf2f7 !important; border: 1px solid #dfe7ef !important; border-radius: 7px !important; color: #526b82 !important; font-size: 12px !important; font-weight: 750 !important; cursor: pointer; white-space: nowrap; width: auto !important; }
.account-modify-wizard-tab:hover { background: #e2eaf2 !important; }
.account-modify-wizard-tab.is-active { background: #2563a6 !important; color: #fff !important; border-color: #2563a6 !important; }
.account-modify-wizard-number { display: inline-flex; align-items: center; justify-content: center; padding: 4px; background: #dbe5f0; border-radius: 4px; color: #49647e; font-size: 10px; }
.account-modify-wizard-tab.is-active .account-modify-wizard-number { background: rgba(255,255,255,.16); color: #fff; }
.account-modify-wizard-tab.is-complete .account-modify-wizard-number { background: #d6edda; color: #277036; }
.account-modify-wizard-pane { padding: 4px 14px 16px; }
.account-modify-wizard-pane[hidden] { display: none !important; }
.account-modify-wizard-pane-heading { margin: 0 0 18px; }
.account-modify-wizard-pane-heading h4 { margin: 0 0 4px; color: #2d455e; font-size: 20px; }
.account-modify-wizard-footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 8px; padding: 16px 14px 14px; border-top: 1px solid #e0e8ef; }
.account-modify-wizard-footer button { width: auto !important; min-width: 100px; min-height: 39px; margin: 0 !important; border: 1px solid transparent; border-radius: 6px !important; padding: 8px 14px !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer; }
.account-modify-wizard-prev { background: #e6edf5 !important; color: #31526f !important; }
.account-modify-wizard-next { background: #2563a6 !important; color: #fff !important; }
.account-modify-wizard-next[hidden] { display: none !important; }
.account-modify-wizard-progress { color: #7b8b9b; font-size: 12px; text-align: center; }
.account-modify-wizard-submit-actions { display: flex; flex-direction: column; gap: 5px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #e2e8ec; }
.account-modify-wizard-submit-actions button { margin: 0 !important; width: 100%; }
.account-modify-option-help { color: #596a79; font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.account-modify-option-empty { border: 1px dashed #cbd5df; border-radius: 6px; padding: 13px; color: #657484; background: #f8fafc; }
.account-modify-option-card { background: #fff; border: 1px solid #d6e1eb; border-radius: 7px; margin: 9px 0; padding: 13px; }
.account-modify-option-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #2d455e; }
.account-modify-option-top strong { font-size: 15px; }
.account-modify-option-status { font-size: 11px; font-weight: 700; color: #617488; border: 1px solid #d5e0ea; background: #f2f6fa; border-radius: 4px; padding: 3px 7px; }
.account-modify-option-card p { margin: 6px 0 11px; font-size: 12px; color: #657484; }
.account-modify-option-card small { display: block; margin-top: 8px; color: #657484; }
.account-modify-option-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-weight: 500; font-size: 13px; }
.account-modify-option-choice span { display: flex; align-items: center; gap: 8px; }
.account-modify-option-choice input[type=checkbox] { width: auto !important; margin: 0 !important; }
.account-modify-option-field { display: flex; gap: 8px; margin-top: 8px; align-items: center; font-size: 13px; }
.account-modify-option-field select, .account-modify-option-field input { flex: 1; min-width: 0; max-width: 240px; box-sizing: border-box; }
.account-modify-option-actions button { margin-top: 12px; width: 100%; font-weight: 700; padding: 10px; }
@media(max-width: 690px) { .account-modify-wizard-tabs { padding: 10px; gap: 5px; } .account-modify-wizard-tab { min-width: 125px; } .account-modify-wizard-pane { padding: 5px 10px 14px; } .account-modify-wizard-footer { padding: 12px 10px; flex-wrap: wrap; } .account-modify-wizard-progress { order: 3; width: 100%; } }

.account-modify-review-options { border: 1px solid #d8e3ed; border-radius: 6px; background: #f8fbfe; padding: 12px; margin-bottom: 12px; }
.account-modify-review-options > strong { display: block; color: #2d455e; font-size: 15px; margin-bottom: 7px; }
.account-modify-review-option-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; border-top: 1px solid #edf1f6; }
.account-modify-review-options p { font-size: 12px; line-height: 1.5; color: #62778b; margin: 8px 0 0; }

/* Phase 5B.5.5.3 — mirrored package actions below the modification wizard.
   Both controls use the same form actions as Review & Payment. */
.account-modify-wizard-footer { flex-wrap: wrap; }
.account-modify-wizard-footer-actions { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.account-modify-wizard-footer .account-modify-wizard-footer-actions button { width: 100% !important; min-width: 0; margin: 0 !important; padding: 10px 12px !important; font-weight: 700 !important; }
.account-modify-wizard-footer .account-modify-wizard-footer-actions .account-modify-apply { background: #2e7d32 !important; color: #fff !important; }
.account-modify-wizard-footer .account-modify-wizard-footer-actions .account-modify-cancel { background: var(--cancel-button-bg) !important; color: var(--cancel-button-font) !important; }
@media (hover: hover) and (pointer: fine) {
    .account-modify-wizard-footer .account-modify-wizard-footer-actions .account-modify-apply:hover { background: #1b5e20 !important; }
    .account-modify-wizard-footer .account-modify-wizard-footer-actions .account-modify-cancel:hover { background: #b71c1c !important; }
}
@media (hover: none) {
    .account-modify-wizard-footer .account-modify-wizard-footer-actions .account-modify-apply:active { background: #1b5e20 !important; }
    .account-modify-wizard-footer .account-modify-wizard-footer-actions .account-modify-cancel:active { background: #b71c1c !important; }
}
@media (max-width: 460px) { .account-modify-wizard-footer-actions { grid-template-columns: 1fr; } }


/* RESTORED FROM 5B.4.2: Reserved Number history/editing + Memberships */
/* PHASE 5A.3.2 — ACCOUNT REGISTRATION PACKAGE RESERVED NUMBER VISIBILITY     */
/* ========================================================================== */

.account-package-reserved-number-summary {
    margin-top: 7px;
    padding: 8px 9px;
    border: 1px solid #90caf9;
    border-radius: 4px;
    background: #f4f9ff;
    color: #455a64;
    font-size: 12px;
    line-height: 1.4;
}
.account-package-reserved-number-title { margin-bottom:5px; color:#1565c0; font-weight:700; }
.account-package-reserved-number-transaction + .account-package-reserved-number-transaction { margin-top:7px; padding-top:7px; border-top:1px dashed #90caf9; }
.account-package-reserved-number-transaction-heading { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.account-package-reserved-number-transaction-heading span { min-width:0; font-weight:700; }
.account-package-reserved-number-transaction-heading strong { flex:0 0 auto; white-space:nowrap; color:#333; }
.account-package-reserved-number-assignment { display:flex; justify-content:space-between; gap:10px; margin-top:3px; }
.account-package-reserved-number-assignment span { min-width:0; }
.account-package-reserved-number-assignment strong { flex:0 0 auto; white-space:nowrap; }

.modify-reserved-number-existing {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    margin: 6px 0 8px;
    padding: 8px 9px;
    border: 1px solid #90caf9;
    border-radius: 4px;
    background: #f4f9ff;
    color: #455a64;
    font-size: 12px;
    line-height: 1.35;
}
.modify-reserved-number-existing.is-active { border-color:#81c784; background:#f1f8e9; }
.modify-reserved-number-existing.is-cancelled { border-color:#ccc; background:#f5f5f5; color:#777; }
.modify-reserved-number-existing-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; width:auto !important; }
.modify-reserved-number-existing-heading strong { color:#1565c0; font-size:13px; }
.modify-reserved-number-existing.is-active .modify-reserved-number-existing-heading strong { color:#2e7d32; }
.modify-reserved-number-existing-heading span { font-size:16px; font-weight:700; color:#222; }
.modify-reserved-number-existing-program { width:auto !important; margin-top:2px; font-weight:700; color:#333; }
.modify-reserved-number-existing-meta { width:auto !important; margin-top:2px; font-weight:700; }
.modify-reserved-number-existing-help { width:auto !important; margin-top:4px; color:#667; }

@media (max-width:520px) {
    .account-package-reserved-number-transaction-heading,
    .account-package-reserved-number-assignment { flex-direction:column; gap:2px; }
    .account-package-reserved-number-transaction-heading strong,
    .account-package-reserved-number-assignment strong { white-space:normal; }
}


/* ========================================================================== */
/* PHASE 5A.3.3 — PENDING RESERVED NUMBER CUSTOMER EDIT / CANCEL              */
/* ========================================================================== */

.account-package-reserved-number-assignment-wrap + .account-package-reserved-number-assignment-wrap {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #c8d9e8;
}

.customer-pending-reserved-number-controls {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}

.customer-pending-reserved-number-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: auto !important;
}

.customer-pending-reserved-number-actions button,
.customer-pending-reserved-number-editor-row button {
    width: auto !important;
    min-height: 30px;
    margin: 0 !important;
    padding: 5px 9px !important;
    border-radius: 4px;
    font-size: 12px !important;
    line-height: 1.2;
}

.customer-pending-reserved-number-edit-button,
.customer-pending-reserved-number-save-button {
    border: 1px solid #2e7d32;
    background: #43a047;
    color: #fff;
}

.customer-pending-reserved-number-edit-button:hover,
.customer-pending-reserved-number-save-button:hover {
    background: #388e3c;
}

.customer-pending-reserved-number-cancel-button {
    border: 1px solid #b71c1c;
    background: #c62828;
    color: #fff;
}

.customer-pending-reserved-number-cancel-button:hover {
    background: #b71c1c;
}

.customer-pending-reserved-number-close-button {
    border: 1px solid #aaa;
    background: #f5f5f5;
    color: #444;
}

.customer-pending-reserved-number-close-button:hover {
    background: #e8e8e8;
}

.customer-pending-reserved-number-editor {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    padding: 8px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    background: #fff;
}

.customer-pending-reserved-number-editor[hidden] {
    display: none !important;
}

.customer-pending-reserved-number-editor label {
    display: block;
    margin: 0 0 4px !important;
    font-size: 12px;
    font-weight: 700;
    color: #455a64;
}

.customer-pending-reserved-number-editor-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: auto !important;
}

.customer-pending-reserved-number-editor-row input[type="text"] {
    width: 88px !important;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 6px 7px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
}

.customer-pending-reserved-number-message {
    width: auto !important;
    margin-top: 5px;
    color: #667;
    font-size: 11px;
    line-height: 1.35;
}

.customer-pending-reserved-number-message.is-success {
    color: #2e7d32;
    font-weight: 700;
}

.customer-pending-reserved-number-message.is-error {
    color: #b71c1c;
    font-weight: 700;
}

@media (max-width: 520px) {
    .customer-pending-reserved-number-editor-row {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-pending-reserved-number-editor-row input[type="text"],
    .customer-pending-reserved-number-editor-row button {
        width: 100% !important;
    }
}


/* ========================================================================== */
/* PHASE 5C.2 — ACCOUNT PROGRAM LIST FILTERS                                 */
/* ========================================================================== */
.customer-program-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 10px;
}

.customer-program-filter-label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    color: #3d444a;
    font-size: 12px;
    font-weight: 700;
}

.customer-program-filter-label select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 34px 7px 10px;
    border: 1px solid #c9ced4;
    border-radius: 5px;
    background: #fff;
    color: #263742;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
}

.customer-program-filter-row + .customer-membership-list {
    margin-top: 0;
}

@media (max-width: 700px) {
    .customer-program-filter-row {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================== */
/* PHASE 5B.3 — CUSTOMER MEMBERSHIP PURCHASE / FAMILY PRICING                */
/* ========================================================================== */
.customer-membership-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.customer-membership-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #d7e0e7;border-radius:6px;background:#fff}
.customer-membership-record>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.customer-membership-record strong{color:#24435f;font-size:14px}
.customer-membership-record span,.customer-membership-record small{color:#5f6f7c;font-size:12px}
.customer-membership-status{display:inline-flex;flex:0 0 auto;align-items:center;padding:4px 9px;border:1px solid #c7d0d7;border-radius:999px;background:#f5f7f8;color:#4d5d68!important;font-weight:800;text-transform:capitalize}
.customer-membership-status.is-active{border-color:#a8ddb0;background:#eef8f0;color:#166523!important}
.customer-membership-status.is-pending{border-color:#ebcc8c;background:#fff7e6;color:#8a5a00!important}
.customer-membership-status.is-revoked,.customer-membership-status.is-cancelled{border-color:#efb1b1;background:#fff0ef;color:#a51e2a!important}
.customer-membership-purchase-card{padding-top:10px}
.customer-membership-program-summary{margin:6px 0 12px;padding:9px 10px;border:1px solid #dbe4ea;border-radius:5px;background:#f7fafc;color:#52606b;font-size:12px;line-height:1.45}
.customer-membership-beneficiary-list{display:flex;flex-direction:column;gap:7px;margin:12px 0}
.customer-membership-beneficiary-heading{font-size:14px;font-weight:800;color:#24435f;margin-bottom:2px}
.customer-membership-beneficiary-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:0!important;padding:10px 11px;border:1px solid #d5dde4;border-radius:6px;background:#fff;cursor:pointer;font-weight:400!important}
.customer-membership-beneficiary-row input{width:auto!important;margin:0!important;transform:scale(1.2)}
.customer-membership-beneficiary-row>span:nth-of-type(1){display:flex;flex-direction:column;gap:2px;min-width:0}
.customer-membership-beneficiary-row strong{color:#2f3942;font-size:14px}
.customer-membership-beneficiary-row small{color:#687783;font-size:11px;line-height:1.35}
.customer-membership-beneficiary-row.is-existing{background:#f6f7f8;cursor:default;opacity:.8}
.customer-membership-line-price{font-size:14px;font-weight:800;color:#1565c0;white-space:nowrap}
#customer-membership-submit:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:520px){.customer-membership-beneficiary-row{grid-template-columns:auto minmax(0,1fr)}.customer-membership-line-price{grid-column:2;justify-self:start}.customer-membership-record{align-items:flex-start;flex-direction:column}}

/* Phase 5B.5.5.4.1 — Reserve Number add-on inside Modify Registration class cards. */
.account-modify-reserved-addon {margin:10px 0 8px; padding:10px 12px; border:1px solid var(--border-color,#d4dbe3); border-radius:5px; background:var(--section-bg,#f7f9fb);}
.account-modify-reserved-label {display:flex; align-items:center; gap:9px; font-size:14px; cursor:pointer; margin:0;}
.account-modify-reserved-label input {width:auto; margin:0; flex:0 0 auto;}
.account-modify-reserved-details {padding:10px 0 0 24px; font-size:13px; line-height:1.4;}
.account-modify-reserved-details[hidden] {display:none !important;}
.account-modify-reserved-details label {display:block; font-weight:600; margin-top:7px;}
.account-modify-reserved-details input {max-width:120px; display:block; margin:3px 0 6px; padding:6px 8px;}
.account-modify-reserved-details small {display:block; margin-top:4px; color:var(--muted-text,#555);}
.account-modify-reserved-status {margin-top:5px; font-size:12px;}
.account-modify-reserved-status.is-available {color:#2e7d32;}
.account-modify-reserved-status.is-error {color:#b71c1c;}
.account-modify-reserved-status.is-pending {color:#856404;}

/* ========================================================================== */
/* PHASE 5B.5.5.4.2 — MODIFY REGISTRATION RESERVED NUMBER CARD CONTAINMENT   */
/* Mirrors the proven registration-form containment rules so the Reserved     */
/* Number add-on cannot grow wider than its class card.                        */
/* ========================================================================== */
.input-row-flex .account-modify-reserved-addon,
.input-row-flex .account-modify-reserved-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.input-row-flex .account-modify-reserved-addon div,
.input-row-flex .account-modify-reserved-details div {
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.account-modify-reserved-addon,
.account-modify-reserved-details {
    overflow: hidden;
}

.account-modify-reserved-status,
.account-modify-reserved-details small {
    overflow-wrap: anywhere;
}

/* ========================================================================== */
/* PHASE 5B.5.5.4.4 — REGISTRATION EVENT DISCOVERY CARDS                     */
/* ========================================================================== */
/* Register for an Event is a discovery surface only. Keep the organization
   groups and event actions visually distinct from Upcoming Registrations. */
.account-event-discovery-pane {
    padding: 18px !important;
}

.account-event-discovery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.account-event-discovery-header h3 {
    margin: 0 0 3px;
    color: #263742;
    font-size: 20px;
}

.account-event-discovery-header p {
    margin: 0;
    color: #65737d;
    font-size: 13px;
}

.account-event-filter-label {
    display: flex;
    flex: 0 1 360px;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    color: #3d444a;
    font-size: 12px;
    font-weight: 700;
}

.account-event-filter-label select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 34px 7px 10px;
    border: 1px solid #c9ced4;
    border-radius: 5px;
    background: #fff;
    color: #263742;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
}

.account-event-discovery-status {
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid #d8dde1;
    border-radius: 5px;
    background: #f6f7f8;
    color: #65737d;
    font-size: 12px;
}

.account-event-discovery-status.is-error {
    border-color: #ef9a9a;
    background: #ffebee;
    color: #a51e2a;
}

.account-event-discovery-list {
    display: grid;
    gap: 14px;
}

.account-event-organization-group {
    overflow: hidden;
    border: 1px solid #d3d9de;
    border-radius: 7px;
    background: #fff;
}

.account-event-organization-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-bottom: 1px solid #b9d7ef;
    background: #d6eaf8;
}

.account-event-organization-heading h4 {
    margin: 0;
    color: #263742;
    font-size: 15px;
}

.account-event-organization-heading a {
    flex: 0 0 auto;
    color: #1565c0;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.account-event-organization-heading a:hover {
    text-decoration: underline;
}

.account-event-card-list {
    display: grid;
    gap: 0;
}

.account-event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid #e4e7e9;
    background: #fff;
}

.account-event-card:last-child {
    border-bottom: 0;
}

.account-event-card:hover {
    background: #fafbfc;
}

.account-event-card-main {
    min-width: 0;
    flex: 1 1 auto;
}

.account-event-card-main h5 {
    margin: 0 0 3px;
    color: #263742;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.account-event-card-date {
    margin-bottom: 1px;
    color: #3d444a;
    font-size: 13px;
    font-weight: 700;
}

.account-event-card-meta {
    color: #65737d;
    font-size: 12px;
}

.account-event-card-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.account-event-secondary-action,
.account-event-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.account-event-secondary-action {
    border: 1px solid #c9ced4;
    background: #f3f4f5;
    color: #3d444a;
}

.account-event-secondary-action:hover {
    background: #e5e9ec;
    color: #263742;
}

.account-event-primary-action {
    border: 1px solid #2e7d32;
    background: #2e7d32;
    color: #fff;
}

.account-event-primary-action:hover {
    border-color: #1b5e20;
    background: #1b5e20;
    color: #fff;
}

.account-event-public-page-status {
    color: #7b858d;
    font-size: 11px;
    font-style: italic;
}

@media (max-width: 700px) {
    .account-event-discovery-pane {
        padding: 13px !important;
    }

    .account-event-discovery-header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .account-event-filter-label {
        flex-basis: auto;
    }

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

    .account-event-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* ========================================================================== */
/* PHASE 5B.5.5.4.5 — REGISTRATION TIMELINE ORGANIZATION FILTERS             */
/* ========================================================================== */
.account-timeline-filter-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.account-timeline-filter-label {
    display: flex;
    flex: 0 1 360px;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    color: #3d444a;
    font-size: 12px;
    font-weight: 700;
}

.account-timeline-filter-label select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 34px 7px 10px;
    border: 1px solid #c9ced4;
    border-radius: 5px;
    background: #fff;
    color: #263742;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .account-timeline-filter-row {
        justify-content: stretch;
    }

    .account-timeline-filter-label {
        flex-basis: 100%;
    }
}

/* ========================================================================== */
/* ACCOUNT PURCHASE HISTORY                                                      */
/* ========================================================================== */
.account-order-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.account-order-filter-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
	margin-top: 0 !important;
    min-width: 0;
    color: #4f5d68;
    font-size: 12px;
    font-weight: 700;
}
.account-order-filter-label select {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #c8d2da;
    border-radius: 6px;
    background: #fff;
    color: #2f3d48;
    font: inherit;
    font-size: 13px;
}
.account-order-history-status,
.account-order-empty {
    padding: 12px 0;
    color: #65737f;
    font-size: 13px;
    font-style: italic;
}
.account-order-history-status.is-error { color: #b3261e; }
.account-order-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.account-order-card {
    border: 1px solid #d6e0e8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.account-order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 14px 10px;
}
.account-order-card-main {
    flex: 1 1 360px;
    min-width: 0;
}
.account-order-number {
    color: #24435f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}
.account-order-context {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
    margin-top: 2px;
    color: #667682;
    font-size: 12px;
}
.account-order-organization {
    color: #355f83;
    font-weight: 700;
    text-decoration: none;
}
a.account-order-organization:hover { text-decoration: underline; }
.account-order-summary {
    margin-top: 5px;
    color: #3d4b55;
    font-size: 13px;
    line-height: 1.4;
}
.account-order-card-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-left: auto;
}
.account-order-card-total > strong {
    color: #233746;
    font-size: 17px;
}
.account-order-payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border: 1px solid #c9d1d8;
    border-radius: 999px;
    background: #f3f5f6;
    color: #56636d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}
.account-order-payment-status.is-paid,
.account-order-payment-status.is-comped { background:#e7f5ea; border-color:#acd2b3; color:#276433; }
.account-order-payment-status.is-unpaid,
.account-order-payment-status.is-pending { background:#fff7df; border-color:#e5ce86; color:#775d0a; }
.account-order-payment-status.is-refunded { background:#eaf2fb; border-color:#acc9e8; color:#275d91; }
.account-order-payment-status.is-void { background:#f2f2f2; border-color:#cfcfcf; color:#666; }
.account-order-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 14px;
    border-top: 1px solid #edf1f4;
    background: #f8fafb;
    color: #687783;
    font-size: 12px;
    font-weight: 700;
}
.account-order-details-button {
    width: auto;
    margin: 0 0 0 auto;
    padding: 4px 9px;
    border: 1px solid #9fc0dc;
    border-radius: 5px;
    background: #eaf3fa;
    color: #285f8a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.account-order-details-button:hover { background:#d9eaf7; color:#24485f; }
.account-order-details {
    padding: 10px 14px 13px;
    border-top: 1px solid #edf1f4;
}
.account-order-details[hidden] { display:none !important; }
.account-order-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.account-order-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 7px 0;
    border-bottom: 1px dashed #dde4e9;
}
.account-order-item-row:last-child { border-bottom: 0; }
.account-order-item-row > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 300px;
}
.account-order-item-row strong { color:#334a5d; font-size:13px; }
.account-order-item-row span { color:#697984; font-size:12px; line-height:1.35; }
.account-order-item-row b { color:#334a5d; font-size:13px; white-space:nowrap; }
.account-order-payment-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 28px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dde4e9;
    color: #667682;
    font-size: 12px;
}
.account-order-payment-method {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
}
.account-order-payment-method strong {
    color: #334a5d;
}
.account-order-payment-totals {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: min(100%, 210px);
    margin-left: auto;
}
.account-order-payment-totals > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: baseline;
}
.account-order-payment-totals span { text-align:right; }
.account-order-payment-totals strong { color:#334a5d; text-align:right; white-space:nowrap; }
.account-order-payment-totals .account-order-payment-total {
    color: #263d50;
    font-weight: 800;
}
.account-order-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dde4e9;
    color: #65737f;
    font-size: 12px;
}
.account-order-pagination[hidden] { display:none !important; }
.account-order-pagination-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.account-order-pagination-actions button {
    width: auto;
    margin: 0;
    padding: 4px 9px;
    border: 1px solid #b7c8d6;
    border-radius: 5px;
    background: #fff;
    color: #355f83;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.account-order-pagination-actions button:hover:not(:disabled) { background:#eef5fa; }
.account-order-pagination-actions button:disabled { opacity:.45; cursor:default; }
@media (max-width: 650px) {
    .account-order-payment-summary {
        flex-direction: column;
        gap: 8px;
    }
    .account-order-payment-totals {
        width: 100%;
        min-width: 0;
    }
    .account-order-pagination { align-items: flex-start; }
    .account-order-pagination-actions { margin-left: 0; }
}


/* ========================================================================== */
/* PHASE 5F.2 — ACCOUNT SESSION / LAZY-LOAD STARTUP STATE                     */
/* ========================================================================== */
.account-session-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.account-session-loading-card {
    width: min(100%, 430px);
    padding: 20px 22px;
    border: 1px solid #d3d9de;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    color: #52606b;
    text-align: center;
}

.account-session-loading-card strong {
    display: block;
    margin-bottom: 4px;
    color: #263742;
    font-size: 18px;
}

.account-session-loading-card span {
    font-size: 13px;
    line-height: 1.45;
}

/* ================================================================
   SHARED PLATFORM TOP BAR — ACCOUNT CENTER
   Phase: Account/Admin platform header standardization
   ================================================================ */
.account-app > .platform-public-header-host {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 64px;
    box-shadow: 0 1px 5px rgba(0,0,0,.14);
}

.account-dashboard-welcome {
    margin: 2px 0 0 auto;
    align-self: flex-start;
    color: #526a7c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .account-workspace-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .account-dashboard-welcome {
        width: 100%;
        margin: 2px 0 0;
        text-align: left;
        white-space: normal;
    }
    .account-sidebar,
    .account-app.sidebar-collapsed .account-sidebar {
        top: 64px;
        height: calc(100dvh - 64px);
    }
    .account-mobile-backdrop { inset: 64px 0 0; }
}


/* ================================================================
   PHASE 5G.1.3 — BREADCRUMB / WELCOME NATURAL WRAP
   ================================================================ */
.account-breadcrumb-row {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px;max-width:1400px;margin:0 auto 13px;}
.account-breadcrumb-row .account-breadcrumb {max-width:none;margin:0;min-width:max-content;flex:1 1 auto;}
.account-breadcrumb-welcome {margin-left:auto;flex:0 0 auto;color:#526a7c;font-size:13px;font-weight:700;line-height:1.35;text-align:right;white-space:nowrap;}
@media (max-width:760px){.account-breadcrumb-row{gap:8px 10px;margin-bottom:10px}.account-breadcrumb-welcome{font-size:12px}}

/* ========================================================================== 
   PHASE 5G.3.3 — PER-LIST EMAIL PREFERENCES
   ========================================================================== */
.account-email-subscription-group {
    display: block;
}

.account-email-subscription-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.account-email-list-items {
    margin-top: 12px;
    border-top: 1px solid #e2e6e9;
}

.account-email-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f2;
}

.account-email-list-copy {
    min-width: 0;
}

.account-email-list-title {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #2f363c;
}

.account-email-list-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.account-email-list-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.account-email-list-status.is-subscribed {
    background: #e7f4ea;
    color: #236436;
}

.account-email-list-status.is-unsubscribed {
    background: #f2f3f4;
    color: #656b70;
}

.account-email-master-preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e0e4e7;
    border-radius: 6px;
    background: #f8f9fa;
    color: #5c6369;
    font-size: 12px;
    line-height: 1.4;
}

.account-email-master-preference strong {
    display: block;
    margin-bottom: 2px;
    color: #353b40;
    font-size: 12px;
}

.account-email-master-preference.is-suppressed {
    border-color: #e8c8c8;
    background: #fff6f6;
}

@media (max-width: 650px) {
    .account-email-subscription-group-header,
    .account-email-list-row,
    .account-email-master-preference {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-email-list-controls {
        justify-content: flex-start;
    }
}

.account-email-list-controls .is-danger,
.account-email-master-preference .is-danger {
    color: #a51e2a;
    border-color: #ef9a9a;
}

/* ========================================================================== */
/* PHASE 5G.5.2.4 — ACCOUNT MODIFY REGISTRATION PACKAGE-EVENT PARITY          */
/* Mirrors the accepted package-event selector / child-event class layout     */
/* from /pb/register/ inside the existing Account Center modification wizard.  */
/* ========================================================================== */
.registration-package-event-selector{
    margin:10px 0 14px;
    padding:10px;
    border:1px solid #cfd8dc;
    border-radius:6px;
    background:#fafcfd;
}
.registration-package-event-selector-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
    color:#333;
}
.registration-package-event-selector-heading strong{display:block;font-size:15px;line-height:1.2;}
.registration-package-event-selector-heading span{display:block;margin-top:2px;color:#666;font-size:12px;line-height:1.35;font-weight:normal;}
.registration-package-event-card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
    gap:8px;
}
.registration-package-event-card{
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    min-width:0;
    margin:0;
    padding:10px 11px;
    border:1px solid #b9c4cc;
    border-radius:6px;
    background:#fff;
    color:#333;
    text-align:left;
    font:inherit;
    cursor:pointer;
    box-sizing:border-box;
    transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.registration-package-event-card:not(:disabled):hover,
.registration-package-event-card:not(:disabled):active{
    border-color:#90a4ae !important;
    background:#f1f4f5 !important;
    color:#333 !important;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.registration-package-event-card.is-selected,
.registration-package-event-card.is-selected:not(:disabled):hover,
.registration-package-event-card.is-selected:not(:disabled):active{
    border-color:#2e7d32 !important;
    background:#e8f5e9 !important;
    color:#333 !important;
    box-shadow:inset 0 0 0 1px rgba(46,125,50,.16),0 1px 3px rgba(0,0,0,.06);
}
.registration-package-event-card:disabled{opacity:1;cursor:default;}
.registration-package-event-card-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;}
.registration-package-event-card-topline strong{min-width:0;font-size:15px;line-height:1.2;overflow-wrap:anywhere;}
.registration-package-event-badge{flex:0 0 auto;padding:2px 6px;border-radius:999px;font-size:10px;font-weight:700;line-height:1.35;text-transform:uppercase;letter-spacing:.02em;}
.registration-package-event-badge.is-required{background:#e8f5e9;color:#2e7d32;}
.registration-package-event-badge.is-optional{background:#fff3e0;color:#e65100;}
.registration-package-event-card.is-selected .registration-package-event-badge.is-optional{background:#e8f5e9;color:#2e7d32;}
.registration-package-event-date,
.registration-package-event-pricing{display:block;margin-top:5px;color:#59636b;font-size:12px;line-height:1.25;}
.registration-package-event-pricing{margin-top:2px;color:#333;font-weight:600;}
.registration-package-child-events-workspace{display:none;flex-direction:column;gap:14px;margin:14px 0 4px;}
.registration-package-child-event-section{border:1px solid #cfd8dc;border-radius:6px;background:#f8fafb;overflow:hidden;}
.registration-package-child-event-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 11px;border-bottom:1px solid #dbe2e7;background:#eef3f6;}
.registration-package-child-event-heading h3{margin:1px 0 2px;color:#333;font-size:17px;line-height:1.2;}
.registration-package-child-event-heading span{color:#666;font-size:12px;}
.registration-package-child-event-kicker{display:block;color:#e65100!important;font-size:10px!important;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.registration-package-child-event-price-name{flex:0 1 auto;max-width:45%;text-align:right;color:#455a64;font-size:12px;font-weight:700;line-height:1.3;}
.registration-package-child-event-help{padding:7px 11px 0;color:#666;font-size:11px;line-height:1.4;}
.registration-package-child-event-drivers{display:flex;flex-direction:column;gap:10px;padding:10px;}
.registration-package-child-event-drivers .driver-separate-pricing-component{min-width:0;width:100%;box-sizing:border-box;border:2px solid #1565c0 !important;border-radius:4px !important;background:#fafafa !important;padding:10px 8px !important;}
.registration-package-child-event-drivers .driver-pricing-component-entry-options{padding-left:0!important;}
.registration-package-child-event-drivers .driver-pricing-component-custom-classes > div:last-child{grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr))!important;gap:10px !important;}
.registration-package-child-event-drivers .driver-pricing-component-team-field{margin-top:8px;}
.registration-package-child-event-drivers .class-group-box{width:100%;}
.registration-package-child-event-drivers .class-row-header > span > span[id*="pc-class-price-hint-"]{color:var(--section-bg-accent-color) !important;}
.registration-package-child-event-empty{grid-column:1 / -1;padding:8px;border:1px dashed #c4cdd3;border-radius:4px;background:#fff;color:#777;font-size:12px;text-align:center;}
.registration-package-primary-event-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:14px 0 8px;padding:10px 12px;border:1px solid #cbd8e3;border-radius:6px;background:#f7fafc;}
.registration-package-primary-event-heading h3{margin:1px 0 2px;font-size:18px;line-height:1.15;}
.registration-package-primary-event-heading>div:first-child>span:last-child{font-size:12px;color:#5e6972;}


/* ========================================================================== */
/* PHASE 5G.5.2.5 — MODIFY REGISTRATION DISPLAY PARITY                        */
/* ========================================================================== */
.registration-event-selector-state {
    display: none !important;
}

.registration-selected-event-context {
    margin: 0 0 8px;
    min-width: 0;
}

.registration-selected-event-name {
    color: #243746;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

.registration-selected-event-date {
    margin-top: 3px;
    color: #5c6c78;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

#modify-event-fee-details {
    margin: 7px 0 0;
    color: #333;
    font-size: 13px;
    font-weight: 400;
}

.registration-pricing-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 8px;
    align-items: start;
}

.registration-pricing-table-card {
    min-width: 0;
    border: 1px solid #c8d6df;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.registration-pricing-table-title {
    padding: 5px 9px;
    background: #f4f7f9;
    border-bottom: 1px solid #d7e0e6;
    color: var(--section-bg-accent-color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.registration-pricing-table-scroll {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.registration-pricing-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #243746;
    font-size: 12px;
    line-height: 1.2;
}

.registration-pricing-table th,
.registration-pricing-table td {
    min-width: 0;
    padding: 5px 6px;
    border-top: 1px solid #e2e8ec;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.registration-pricing-table tbody td {
    white-space: nowrap;
}

.registration-pricing-table thead th {
    border-top: 0;
    background: #eaf2f8;
    color: #4b6174;
    font-weight: 700;
}

.registration-pricing-table thead th:first-child,
.registration-pricing-table tbody th {
    width: clamp(82px, 24%, 108px);
    max-width: 108px;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: left;
}

.registration-pricing-table tbody th {
    color: #173f63;
    font-weight: 700;
}

.registration-pricing-table tbody td {
    color: #0059a8;
    font-weight: 700;
}

.registration-pricing-rate-row--member th,
.registration-pricing-rate-row--member td {
    background: #fbfdff;
}

.registration-pricing-note {
    margin-top: 4px;
    color: #66727a;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}


/* Phase 5K.1.3 — Registration timeline card presentation cleanup.
   The outer Upcoming / Race History cards now use semantic classes rather than
   inline presentation styles. Keep these variables together for easy tuning. */

.account-timeline-package-wrapper {
    display:block;
    width:100%;
    margin-bottom:15px;
    box-sizing:border-box;
}

.account-timeline-package-card {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin-bottom:0;
    padding:15px;
    border:1px solid var(--account-timeline-card-border);
    border-radius:6px;
    background:var(--account-timeline-card-bg);
    box-sizing:border-box;
}

.account-timeline-package-header {
    display:flex;
    width:100%;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}

.account-timeline-package-identity {
    display:flex;
    flex:1 1 240px;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
}

.account-timeline-package-title {
    display:block;
    color:#d32f2f !important;
    font-size:16px !important;
    font-weight:700;
    line-height:1.25;
}

.account-timeline-package-organization,
.account-timeline-package-date {
    display:block;
    color:#555;
    font-size:13px !important;
    font-weight:600;
    line-height:1.3;
}

.account-timeline-package-details {
    display:none;
}

.account-timeline-package-details.is-open {
    display:block;
}

/* ========================================================================== */
/* PHASE 5K.1 — UPCOMING REGISTRATIONS / RACE HISTORY DETAIL CLEANUP          */
/* Keeps the established timeline card colors while organizing expanded        */
/* package information and normalizing timeline action-button sizing.           */
/* ========================================================================== */
.account-registration-details-toggle {
    width:auto !important;
    min-height:31px;
    flex:0 0 auto;
    margin:0 !important;
    padding:6px 10px !important;
    border-radius:5px;
    font-size:12px !important;
    line-height:1.15;
}

.account-timeline-package-details {
    width:100%;
    margin-top:10px;
    padding-top:10px;
    border-top:1px dashed var(--account-timeline-card-divider);
    box-sizing:border-box;
}

.account-timeline-detail-section {
    width:100%;
    min-width:0;
    box-sizing:border-box;
}

.account-timeline-detail-section + .account-timeline-detail-section {
    margin-top:10px;
}

.account-timeline-section-title {
    margin:0 0 6px;
    color:#4d6250;
    font-size:11px;
    font-weight:800;
    letter-spacing:.055em;
    line-height:1.2;
    text-transform:uppercase;
}

.account-timeline-summary-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
}

.account-timeline-summary-item {
    min-width:0;
    padding:7px 8px;
    border:1px solid #d9e3d1;
    border-radius:5px;
    background:#fff;
}

.account-timeline-summary-item > span {
    display:block;
    margin-bottom:2px;
    color:#788279;
    font-size:10px;
    font-weight:750;
    line-height:1.2;
    text-transform:uppercase;
    letter-spacing:.025em;
}

.account-timeline-summary-item > strong {
    display:block;
    min-width:0;
    color:#344138;
    font-size:12px;
    font-weight:750;
    line-height:1.3;
    overflow-wrap:anywhere;
}

.account-timeline-summary-item > strong.is-complete {color:#2e7d32;}
.account-timeline-summary-item > strong.is-pending {color:#e65100;}

.account-timeline-package-products {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
    gap:6px;
    margin-top:6px;
}

.account-timeline-product-summary,
.account-package-reserved-number-summary {
    min-width:0;
    margin-top:0;
    padding:7px 8px;
    border-radius:5px;
    font-size:12px;
    line-height:1.4;
    box-sizing:border-box;
}

.account-timeline-product-summary--pit-pass {
    border:1px solid #90caf9;
    background:#f4f9ff;
    color:#555;
}

.account-timeline-product-summary--addons {
    border:1px solid #81c784;
    background:#f1f8e9;
    color:#555;
}

.account-timeline-product-title,
.account-package-reserved-number-title {
    margin-bottom:4px;
    font-size:12px;
    font-weight:800;
    line-height:1.25;
}

.account-timeline-product-summary--pit-pass .account-timeline-product-title {color:var(--section-bg-accent-color);}
.account-timeline-product-summary--addons .account-timeline-product-title {color:#2e7d32;}
.account-timeline-product-lines > div + div {margin-top:2px;}

.account-timeline-drivers {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
    gap:7px;
}

.account-timeline-driver-card {
    min-width:0;
    padding:8px;
    border:1px solid #dfe4df;
    border-radius:5px;
    background:#fff;
    box-sizing:border-box;
}

.account-timeline-driver-heading {
    display:flex;
    align-items:baseline;
    gap:7px;
    min-width:0;
    margin-bottom:5px;
    padding-bottom:5px;
    border-bottom:1px solid #ecefec;
}

.account-timeline-driver-heading > span {
    flex:0 0 auto;
    color:#788279;
    font-size:10px;
    font-weight:800;
    line-height:1.2;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.account-timeline-driver-heading > strong {
    min-width:0;
    color:var(--section-bg-accent-color);
    font-size:14px;
    font-weight:800;
    line-height:1.25;
    overflow-wrap:anywhere;
}

.account-timeline-driver-entries {
    display:grid;
    gap:4px;
}

.account-timeline-class-entry,
.account-timeline-race-event-entry {
    display:grid;
    grid-template-columns:minmax(0,1.5fr) auto auto;
    gap:5px 9px;
    align-items:baseline;
    min-width:0;
    padding:4px 0;
    border-bottom:1px dashed #ececec;
    color:#555;
    font-size:12px;
    line-height:1.3;
}

.account-timeline-class-entry:last-child {border-bottom:0;}
.account-timeline-class-entry strong,
.account-timeline-race-event-entry strong {min-width:0;color:#333;font-size:12px;overflow-wrap:anywhere;}
.account-timeline-class-entry span,
.account-timeline-race-event-entry span {white-space:nowrap;color:#667;}

.account-timeline-empty-entry {
    color:#777;
    font-size:12px;
    font-style:italic;
}

.account-timeline-race-events {
    display:grid;
    gap:7px;
    margin-top:7px;
}

.account-timeline-race-event {
    min-width:0;
    padding:7px 8px;
    border-radius:5px;
    box-sizing:border-box;
}

.account-timeline-race-event--primary,
.account-timeline-race-event--child {
    border:1px solid #d9ded9;
    background:#fafafa;
}

.account-timeline-race-event--primary {
    margin-top:2px;
}

.account-timeline-race-event-heading {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:8px;
    margin-bottom:4px;
    padding-bottom:5px;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.account-timeline-race-event-heading > div {min-width:0;}

.account-timeline-race-event-label {
    display:block;
    margin-bottom:2px;
    font-size:10px;
    font-weight:850;
    line-height:1.15;
    letter-spacing:.045em;
    text-transform:uppercase;
}

.account-timeline-race-event--primary .account-timeline-race-event-label {color:#2b6d9f;}
.account-timeline-race-event--child .account-timeline-race-event-label {color:#e65100;}
.account-timeline-race-event-heading strong {display:block;font-size:12px;line-height:1.25;}
.account-timeline-race-event--primary .account-timeline-race-event-heading strong {color:#244f70;}
.account-timeline-race-event--child .account-timeline-race-event-heading strong {color:#6b4a12;}
.account-timeline-race-event-heading > span {color:#7c6e58;font-size:11px;text-align:right;line-height:1.25;}
.account-timeline-race-event-entries {display:grid;gap:0;}
.account-timeline-race-event-entry {grid-template-columns:minmax(0,1.5fr) auto auto auto;}

.account-timeline-race-event--primary .account-timeline-class-entry {
    grid-template-columns:minmax(0,1.5fr) auto auto;
}

.account-timeline-driver-actions {
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:7px;
}

.account-timeline-package-actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
    margin-top:10px;
    padding-top:9px;
    border-top:1px solid #dbe3d5;
}

.account-timeline-action {
    width:auto !important;
    min-height:32px;
    margin:0 !important;
    padding:6px 10px !important;
    border-radius:5px;
    font-size:12px !important;
    font-weight:750;
    line-height:1.2;
}

.account-timeline-action--small {
    min-height:29px;
    padding:5px 8px !important;
    font-size:11px !important;
}

.account-timeline-status-note {
    display:flex;
    align-items:baseline;
    gap:7px 10px;
    flex-wrap:wrap;
    margin-top:10px;
    padding:7px 9px;
    border-radius:5px;
    font-size:12px;
    line-height:1.35;
}

.account-timeline-status-note strong {font-size:12px;}
.account-timeline-status-note span {color:#59645b;}
.account-timeline-status-note.is-confirmed {border:1px solid #a5d6a7;background:#e8f5e9;color:#2e7d32;}
.account-timeline-status-note.is-closed {border:1px solid #efb3b3;background:#fff4f4;color:#b32626;}

.account-timeline-completed-label {
    display:inline-flex;
    width:auto;
    margin-top:9px;
    padding:4px 8px;
    border:1px solid #b9d9bc;
    border-radius:999px;
    background:#f1f8e9;
    color:#2e7d32;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    text-transform:uppercase;
    letter-spacing:.035em;
}

@media (max-width:760px) {
    .account-timeline-summary-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:520px) {
    .account-timeline-summary-grid {grid-template-columns:1fr;}
    .account-timeline-class-entry,
    .account-timeline-race-event-entry {grid-template-columns:minmax(0,1fr) auto;}
    .account-timeline-class-entry strong,
    .account-timeline-race-event-entry strong {grid-column:1 / -1;}
    .account-timeline-race-event-heading {flex-direction:column;gap:2px;}
    .account-timeline-race-event-heading span {text-align:left;}
}


/* ==========================================================================
   PHASE 5N.6.5 — WORKER IDENTITY & CREDIT BENEFICIARY SELECTION
   Functional signup presentation; broader Worker & Volunteer My Account
   redesign remains planned for Phase 5N.7.
   ========================================================================== */
.customer-worker-own-signups {
    display:grid;
    gap:6px;
    margin-top:8px;
}
.customer-worker-own-signup {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:7px 8px;
    border:1px solid #d9e3eb;
    border-radius:6px;
    background:#f8fbfd;
    font-size:12px;
    line-height:1.35;
}
.customer-worker-own-signup > div:first-child {
    min-width:0;
}
.customer-worker-own-signup strong {
    display:block;
    color:#294b68;
}
.customer-worker-own-signup small {
    display:block;
    margin-top:2px;
    color:#66798b;
}
.customer-worker-own-status {
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:4px 8px;
    border:1px solid #c8d6e2;
    border-radius:999px;
    background:#f2f6f9;
    color:#516a80;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}
.customer-worker-own-status.is-completed {
    border-color:#b9dcbc;
    background:#eef8ef;
    color:#2b6f35;
}
.customer-worker-own-status.is-paid {
    border-color:#bdd1e1;
    background:#eef5fa;
    color:#365f7e;
}
.customer-worker-own-status.is-no-show {
    border-color:#e5c29f;
    background:#fff5e9;
    color:#8b4a18;
}
.customer-worker-own-cancel {
    width:auto!important;
    margin:0!important;
    padding:5px 8px!important;
    font-size:11px!important;
    white-space:nowrap;
}
.customer-worker-signup-backdrop {
    position:fixed;
    inset:0;
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(17,31,47,.58);
    box-sizing:border-box;
}
.customer-worker-signup-modal {
    width:min(620px,100%);
    max-height:calc(100vh - 36px);
    overflow:auto;
    padding:18px;
    border:1px solid #cbd7e1;
    border-radius:10px;
    background:#fff;
    box-shadow:0 18px 46px rgba(0,0,0,.24);
    box-sizing:border-box;
}
.customer-worker-signup-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}
.customer-worker-signup-heading h3 {
    margin:0 0 3px;
    color:#29445f;
    font-size:18px;
}
.customer-worker-signup-heading p {
    margin:0;
    color:#66798b;
    font-size:12px;
    line-height:1.4;
}
.customer-worker-signup-close {
    width:auto!important;
    margin:0!important;
    padding:6px 9px!important;
    background:#fff!important;
    color:#365d80!important;
    border:1px solid #c6d5e2!important;
    font-size:12px!important;
}
.customer-worker-signup-fields {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
.customer-worker-signup-fields label {
    display:block;
    min-width:0;
    color:#425a70;
    font-size:12px;
}
.customer-worker-signup-fields label > strong {
    display:block;
    margin-bottom:4px;
}
.customer-worker-signup-fields select {
    width:100%;
    margin:0!important;
    box-sizing:border-box;
}
.customer-worker-signup-note {
    margin:12px 0 4px;
    padding:8px 10px;
    border-left:3px solid #79a8d2;
    background:#f5f9fc;
    color:#5c7083;
    font-size:11px;
    line-height:1.45;
}
.customer-worker-signup-actions {
    display:flex;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
}
.customer-worker-signup-actions button {
    width:auto!important;
    margin:0!important;
}
@media(max-width:620px) {
    .customer-worker-signup-fields {
        grid-template-columns:1fr;
    }
    .customer-worker-own-signup {
        align-items:flex-start;
        flex-direction:column;
    }
    .customer-worker-own-signup > div:last-child,
    .customer-worker-own-cancel {
        width:100%!important;
    }
}

/* ==========================================================================
   PHASE 5N.7.1 — WORKER & VOLUNTEER WORKSPACE REORGANIZATION
   Overview | Available Signups | My Assignments | Credit Progress
   ========================================================================== */
.account-worker-section-tabs {
    margin-bottom:0;
}
.account-worker-workspace-surface {
    padding:14px;
}
.account-worker-pane[hidden] {
    display:none !important;
}
.account-worker-pane {
    display:none;
}
.account-worker-pane.is-active {
    display:block;
}
.customer-worker-pane-heading,
.customer-worker-overview-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin:0 0 12px;
}
.customer-worker-pane-heading h3,
.customer-worker-overview-heading h3 {
    margin:0 0 3px;
    color:#29445f;
    font-size:18px;
}
.customer-worker-pane-heading p,
.customer-worker-overview-heading p {
    margin:0;
    color:#66798b;
    font-size:12px;
    line-height:1.45;
}
.customer-worker-overview-heading button {
    width:auto !important;
    margin:0 !important;
    padding:6px 10px !important;
    border:1px solid #bfd0df !important;
    border-radius:6px !important;
    background:#fff !important;
    color:#365f7e !important;
    font-size:11px !important;
    font-weight:700;
    white-space:nowrap;
}
.customer-worker-overview-summary {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:10px 0 16px;
}
.customer-worker-summary-card {
    display:flex;
    flex-direction:column;
    min-width:0;
    min-height:122px;
    padding:13px 14px;
    border:1px solid #d8e2ea;
    border-radius:8px;
    background:#f8fbfd;
    box-sizing:border-box;
}
.customer-worker-summary-card > span {
    color:#66798b;
    font-size:11px;
    font-weight:700;
    line-height:1.3;
}
.customer-worker-summary-card > strong {
    margin:5px 0 10px;
    color:#294b68;
    font-size:25px;
    line-height:1;
}
.customer-worker-summary-card > button {
    width:auto !important;
    align-self:flex-start;
    margin:auto 0 0 !important;
    padding:5px 8px !important;
    border:1px solid #c7d7e4 !important;
    border-radius:5px !important;
    background:#fff !important;
    color:#365f7e !important;
    font-size:11px !important;
    font-weight:700;
}
.customer-worker-overview-section {
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid #e1e7ec;
}
.customer-worker-empty-state {
    padding:15px;
    border:1px dashed #cdd8e1;
    border-radius:7px;
    background:#fafcfd;
    color:#687b8c;
    font-size:12px;
    line-height:1.45;
}
.customer-worker-opportunity-list,
.customer-worker-assignment-list,
.customer-worker-progress-list {
    display:grid;
    gap:12px;
}
.customer-worker-opportunity-card {
    overflow:hidden;
    border:1px solid #d5e0e8;
    border-radius:9px;
    background:#fff;
}
.customer-worker-opportunity-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding:13px 14px;
    border-bottom:1px solid #e1e8ed;
    background:#f7fafc;
}
.customer-worker-opportunity-heading h3 {
    margin:2px 0 3px;
    color:#29445f;
    font-size:16px;
}
.customer-worker-opportunity-heading p {
    margin:0;
    color:#65798b;
    font-size:11px;
    line-height:1.4;
}
.customer-worker-opportunity-org,
.customer-worker-assignment-org {
    color:#70869a;
    font-size:10px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.customer-worker-opportunity-state {
    display:inline-flex;
    align-items:center;
    min-height:27px;
    padding:4px 9px;
    border:1px solid #cad6df;
    border-radius:999px;
    background:#f3f6f8;
    color:#607384;
    font-size:10px;
    font-weight:800;
    line-height:1.15;
    text-align:center;
}
.customer-worker-opportunity-state.is-open {
    border-color:#b7d9bb;
    background:#eef8ef;
    color:#2b6f35;
}
.customer-worker-opportunity-description {
    padding:10px 14px 0;
    color:#4f6374;
    font-size:12px;
    line-height:1.45;
}
.customer-worker-slot-list {
    display:grid;
    gap:8px;
    padding:12px 14px 14px;
}
.customer-worker-slot-card {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:start;
    padding:10px 11px;
    border:1px solid #dce4ea;
    border-radius:7px;
    background:#fff;
}
.customer-worker-slot-main {
    min-width:0;
}
.customer-worker-slot-main h4 {
    margin:0;
    color:#324d65;
    font-size:14px;
}
.customer-worker-slot-main > div:first-child > p {
    margin:2px 0 0;
    color:#718292;
    font-size:11px;
}
.customer-worker-slot-facts {
    display:flex;
    flex-wrap:wrap;
    gap:5px 10px;
    margin-top:5px;
    color:#66798b;
    font-size:11px;
    line-height:1.35;
}
.customer-worker-slot-facts span:not(:last-child)::after {
    content:'•';
    margin-left:10px;
    color:#a8b5bf;
}
.customer-worker-slot-description,
.customer-worker-visible-roster {
    margin-top:6px;
    color:#596d7e;
    font-size:11px;
    line-height:1.4;
}
.customer-worker-slot-actions {
    display:flex;
    align-items:flex-start;
    justify-content:flex-end;
}
.customer-worker-slot-action {
    width:auto !important;
    max-width:190px;
    margin:0 !important;
    padding:7px 10px !important;
    white-space:normal;
}
.customer-worker-assignment-group + .customer-worker-assignment-group {
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid #e1e7ec;
}
.customer-worker-group-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 0 9px;
}
.customer-worker-group-heading h4 {
    margin:0;
    color:#324d65;
    font-size:14px;
}
.customer-worker-group-heading span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:25px;
    min-height:25px;
    padding:2px 7px;
    border-radius:999px;
    background:#eef3f7;
    color:#536b7e;
    font-size:11px;
    font-weight:800;
    box-sizing:border-box;
}
.customer-worker-assignment-card {
    padding:12px 13px;
    border:1px solid #d8e2ea;
    border-radius:8px;
    background:#fff;
}
.customer-worker-assignment-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.customer-worker-assignment-heading h4 {
    margin:2px 0 2px;
    color:#29445f;
    font-size:15px;
}
.customer-worker-assignment-heading p {
    margin:0;
    color:#687c8d;
    font-size:11px;
    line-height:1.35;
}
.customer-worker-assignment-meta {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:10px;
}
.customer-worker-assignment-meta > div {
    min-width:0;
    padding:7px 8px;
    border-radius:6px;
    background:#f7fafc;
}
.customer-worker-assignment-meta span {
    display:block;
    margin-bottom:2px;
    color:#7a8b99;
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.customer-worker-assignment-meta strong {
    display:block;
    overflow-wrap:anywhere;
    color:#3f566a;
    font-size:11px;
    line-height:1.35;
}
.customer-worker-assignment-credit-note,
.customer-worker-assignment-description {
    margin-top:8px;
    padding:7px 9px;
    border-left:3px solid #8cb2d0;
    background:#f7fafc;
    color:#5b6f80;
    font-size:11px;
    line-height:1.4;
}
.customer-worker-assignment-description {
    border-left-color:#c4d1db;
    background:#fafbfc;
}
.customer-worker-assignment-actions {
    display:flex;
    justify-content:flex-end;
    margin-top:9px;
}
.customer-worker-assignment-actions button {
    width:auto !important;
    margin:0 !important;
    padding:6px 9px !important;
    font-size:11px !important;
}
.customer-worker-progress-card {
    padding:12px 13px;
    border:1px solid #d8e2ea;
    border-radius:8px;
    background:#fff;
}
.customer-worker-progress-card.is-compact {
    padding:10px 11px;
}
.customer-worker-progress-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.customer-worker-progress-heading h4 {
    margin:0 0 2px;
    color:#29445f;
    font-size:14px;
}
.customer-worker-progress-heading p {
    margin:0;
    color:#728493;
    font-size:10px;
}
.customer-worker-progress-state {
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:3px 8px;
    border:1px solid #bdd0df;
    border-radius:999px;
    background:#f0f6fa;
    color:#416a89;
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
}
.customer-worker-progress-state.is-complete {
    border-color:#b9dcbc;
    background:#eef8ef;
    color:#2b6f35;
}
.customer-worker-progress-state.is-incomplete {
    border-color:#e3b7b7;
    background:#fff2f2;
    color:#a13d3d;
}
.customer-worker-progress-state.is-ended,
.customer-worker-progress-state.is-upcoming {
    border-color:#d3d9de;
    background:#f5f6f7;
    color:#6b747b;
}
.customer-worker-progress-person {
    display:flex;
    gap:7px;
    align-items:baseline;
    margin-top:8px;
    font-size:11px;
}
.customer-worker-progress-person span {
    color:#7b8b98;
}
.customer-worker-progress-person strong {
    color:#40586d;
}
.customer-worker-progress-numbers {
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
    margin-top:9px;
}
.customer-worker-progress-numbers strong {
    color:#35526a;
    font-size:13px;
}
.customer-worker-progress-numbers span {
    color:#687d8e;
    font-size:10px;
}
.customer-worker-progress-bar {
    height:8px;
    margin-top:6px;
    overflow:hidden;
    border-radius:999px;
    background:#e8eef2;
}
.customer-worker-progress-bar span {
    display:block;
    height:100%;
    min-width:0;
    border-radius:inherit;
    background:#6f9fc3;
}
.customer-worker-progress-meta {
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    margin-top:7px;
    color:#758795;
    font-size:10px;
}
.customer-worker-progress-list.is-overview {
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.customer-worker-own-status.is-cancelled {
    border-color:#d8d8d8;
    background:#f6f6f6;
    color:#767676;
}

@media(max-width:820px) {
    .customer-worker-overview-summary,
    .customer-worker-progress-list.is-overview {
        grid-template-columns:1fr;
    }
    .customer-worker-assignment-meta {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:620px) {
    .account-worker-workspace-surface {
        padding:10px;
    }
    .customer-worker-pane-heading,
    .customer-worker-overview-heading,
    .customer-worker-opportunity-heading,
    .customer-worker-assignment-heading,
    .customer-worker-progress-heading {
        flex-direction:column;
        align-items:stretch;
    }
    .customer-worker-overview-heading button {
        align-self:flex-start;
    }
    .customer-worker-slot-card {
        grid-template-columns:1fr;
    }
    .customer-worker-slot-actions,
    .customer-worker-slot-action {
        width:100% !important;
        max-width:none;
    }
    .customer-worker-assignment-meta {
        grid-template-columns:1fr;
    }
    .customer-worker-progress-numbers {
        align-items:flex-start;
        flex-direction:column;
        gap:2px;
    }
}


/* ==========================================================================
   PHASE 5N.7.2 — AVAILABLE SIGNUP UX REDESIGN
   Event/sheet hierarchy, task availability, and worker/beneficiary signup flow
   ========================================================================== */
#account-worker-pane-available .account-event-discovery-status {
    margin-bottom:10px;
    color:#667b8d;
    font-size:11px;
}
.customer-worker-empty-state-signups {
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:20px;
    text-align:center;
}
.customer-worker-empty-state-signups strong {
    color:#405b72;
    font-size:14px;
}
.customer-worker-empty-state-signups span {
    color:#748594;
    font-size:11px;
}
.customer-worker-opportunity-card {
    border-color:#cfdce6;
    box-shadow:0 1px 2px rgba(37,62,82,.04);
}
.customer-worker-opportunity-heading {
    padding:14px 15px 12px;
    background:#f7fafc;
}
.customer-worker-opportunity-titleblock {
    min-width:0;
}
.customer-worker-opportunity-heading h3 {
    margin:2px 0 5px;
    font-size:17px;
}
.customer-worker-opportunity-meta {
    display:flex;
    flex-wrap:wrap;
    gap:4px 12px;
    color:#64798b;
    font-size:11px;
    line-height:1.35;
}
.customer-worker-opportunity-meta span {
    position:relative;
}
.customer-worker-opportunity-meta span + span::before {
    content:'•';
    position:absolute;
    left:-8px;
    color:#aab6bf;
}
.customer-worker-opportunity-state {
    flex:0 0 auto;
    min-height:28px;
    padding:5px 10px;
    font-size:10px;
}
.customer-worker-opportunity-summary {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    border-bottom:1px solid #e2e8ed;
    background:#fff;
}
.customer-worker-opportunity-summary > div {
    display:flex;
    align-items:baseline;
    gap:5px;
    min-width:0;
    padding:9px 14px;
    border-right:1px solid #e8edf1;
}
.customer-worker-opportunity-summary > div:last-child {
    border-right:0;
}
.customer-worker-opportunity-summary strong {
    color:#355b78;
    font-size:14px;
}
.customer-worker-opportunity-summary span {
    color:#748695;
    font-size:10px;
    line-height:1.25;
}
.customer-worker-opportunity-notice {
    margin:10px 14px 0;
    padding:8px 10px;
    border:1px solid #e1d7b7;
    border-radius:6px;
    background:#fffaf0;
    color:#705f36;
    font-size:11px;
    line-height:1.4;
}
.customer-worker-opportunity-description {
    padding:10px 14px 0;
}
.customer-worker-slot-list {
    gap:10px;
    padding:12px 14px 15px;
}
.customer-worker-slot-card {
    grid-template-columns:minmax(0,1fr) minmax(125px,auto);
    gap:14px;
    padding:12px;
    border-color:#d7e1e8;
    border-radius:8px;
    background:#fff;
}
.customer-worker-slot-card.is-full {
    background:#fbfcfd;
}
.customer-worker-slot-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.customer-worker-slot-heading > div {
    min-width:0;
}
.customer-worker-slot-main h4 {
    color:#294a65;
    font-size:15px;
}
.customer-worker-slot-heading p {
    margin:2px 0 0;
    color:#748594;
    font-size:10px;
}
.customer-worker-slot-availability {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:25px;
    padding:3px 8px;
    border:1px solid #b9dabd;
    border-radius:999px;
    background:#eef8ef;
    color:#2b6f35;
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
}
.customer-worker-slot-availability.is-full {
    border-color:#d5dce1;
    background:#f4f6f7;
    color:#707b84;
}
.customer-worker-slot-facts {
    display:grid;
    grid-template-columns:minmax(0,1.7fr) minmax(100px,.7fr) minmax(100px,.7fr);
    gap:7px;
    margin-top:9px;
}
.customer-worker-slot-facts > div {
    min-width:0;
    padding:7px 8px;
    border-radius:6px;
    background:#f6f9fb;
}
.customer-worker-slot-facts span {
    display:block;
    margin:0 0 2px;
    color:#82919d;
    font-size:9px;
    font-weight:800;
    letter-spacing:.035em;
    text-transform:uppercase;
}
.customer-worker-slot-facts span::after {
    content:none !important;
}
.customer-worker-slot-facts strong {
    display:block;
    color:#435c70;
    font-size:11px;
    line-height:1.35;
}
.customer-worker-slot-description {
    margin-top:9px;
    padding:0;
    color:#5b7081;
    font-size:11px;
}
.customer-worker-visible-roster {
    display:flex;
    gap:7px;
    align-items:baseline;
    margin-top:9px;
    padding:7px 9px;
    border-radius:6px;
    background:#f7fafc;
    color:#5b7081;
}
.customer-worker-visible-roster span {
    flex:0 0 auto;
    color:#7b8c99;
    font-size:9px;
    font-weight:800;
    letter-spacing:.035em;
    text-transform:uppercase;
}
.customer-worker-visible-roster strong {
    color:#496277;
    font-size:11px;
    font-weight:600;
}
.customer-worker-own-signups {
    gap:0;
    margin-top:10px;
    padding:8px 9px;
    border:1px solid #d8e5ee;
    border-radius:7px;
    background:#f8fbfd;
}
.customer-worker-own-signups-label {
    margin-bottom:5px;
    color:#6f8394;
    font-size:9px;
    font-weight:800;
    letter-spacing:.045em;
    text-transform:uppercase;
}
.customer-worker-own-signup {
    padding:6px 0;
    border:0;
    border-top:1px solid #e3ebf0;
    border-radius:0;
    background:transparent;
}
.customer-worker-own-signups-label + .customer-worker-own-signup {
    border-top:0;
}
.customer-worker-own-signup small {
    display:block;
    margin-top:2px;
    color:#728493;
    font-size:10px;
}
.customer-worker-slot-actions {
    align-self:center;
}
.customer-worker-slot-action {
    min-width:125px;
    max-width:180px;
    padding:8px 12px !important;
    font-size:12px !important;
}
.customer-worker-slot-action-state {
    max-width:185px;
    padding:7px 9px;
    border:1px solid #d8e0e6;
    border-radius:6px;
    background:#f6f8f9;
    color:#6f7d88;
    font-size:10px;
    font-weight:700;
    line-height:1.35;
    text-align:center;
}

.customer-worker-signup-modal {
    width:min(690px,100%);
    padding:0;
    overflow:hidden auto;
}
.customer-worker-signup-heading {
    margin:0;
    padding:15px 17px 13px;
    border-bottom:1px solid #dfe7ed;
    background:#f7fafc;
}
.customer-worker-signup-kicker {
    margin-bottom:2px;
    color:#71889b;
    font-size:9px;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.customer-worker-signup-heading h3 {
    margin:0 0 2px;
    color:#294761;
    font-size:19px;
}
.customer-worker-signup-heading p {
    color:#6d8090;
    font-size:11px;
}
.customer-worker-signup-close {
    border-radius:6px !important;
}
.customer-worker-signup-task-summary {
    padding:12px 17px;
    border-bottom:1px solid #e5ebef;
}
.customer-worker-signup-context {
    display:flex;
    flex-wrap:wrap;
    gap:4px 12px;
    margin-bottom:8px;
    color:#667b8c;
    font-size:10px;
}
.customer-worker-signup-context span {
    position:relative;
}
.customer-worker-signup-context span + span::before {
    content:'•';
    position:absolute;
    left:-8px;
    color:#aab7c0;
}
.customer-worker-signup-task-facts {
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:7px;
}
.customer-worker-signup-task-facts > div {
    min-width:0;
    padding:7px 8px;
    border-radius:6px;
    background:#f6f9fb;
}
.customer-worker-signup-task-facts span {
    display:block;
    margin-bottom:2px;
    color:#82919d;
    font-size:8px;
    font-weight:800;
    letter-spacing:.045em;
    text-transform:uppercase;
}
.customer-worker-signup-task-facts strong {
    display:block;
    color:#435c70;
    font-size:10px;
    line-height:1.35;
}
.customer-worker-signup-steps {
    display:grid;
    gap:9px;
    padding:13px 17px 0;
}
.customer-worker-signup-step {
    display:grid;
    grid-template-columns:28px minmax(0,1fr) minmax(210px,.85fr);
    gap:9px;
    align-items:center;
    padding:10px;
    border:1px solid #dbe4eb;
    border-radius:8px;
    background:#fff;
}
.customer-worker-signup-step-number {
    display:flex;
    align-items:center;
    justify-content:center;
    width:27px;
    height:27px;
    border-radius:999px;
    background:#eaf2f8;
    color:#3e6889;
    font-size:11px;
    font-weight:800;
}
.customer-worker-signup-step-copy {
    min-width:0;
}
.customer-worker-signup-step-copy > strong {
    display:block;
    color:#405a70;
    font-size:12px;
}
.customer-worker-signup-step-copy > small {
    display:block;
    margin-top:2px;
    color:#7a8b98;
    font-size:9px;
    line-height:1.35;
}
.customer-worker-signup-step select {
    width:100%;
    margin:0 !important;
    box-sizing:border-box;
}
.customer-worker-signup-preview {
    margin:11px 17px 0;
    padding:9px 10px;
    border-left:3px solid #78a6c9;
    background:#f5f9fc;
    color:#5a6f80;
    font-size:11px;
    line-height:1.45;
}
.customer-worker-signup-preview strong {
    color:#3e5f77;
}
.customer-worker-signup-modal #customer-worker-signup-message {
    margin:7px 17px 0;
}
.customer-worker-signup-actions {
    margin-top:12px;
    padding:12px 17px 15px;
    border-top:1px solid #e5ebef;
    background:#fafcfd;
}

@media(max-width:700px) {
    .customer-worker-opportunity-summary {
        grid-template-columns:1fr;
    }
    .customer-worker-opportunity-summary > div {
        border-right:0;
        border-bottom:1px solid #edf1f4;
    }
    .customer-worker-opportunity-summary > div:last-child {
        border-bottom:0;
    }
    .customer-worker-slot-facts,
    .customer-worker-signup-task-facts {
        grid-template-columns:1fr;
    }
    .customer-worker-signup-step {
        grid-template-columns:28px minmax(0,1fr);
    }
    .customer-worker-signup-step select {
        grid-column:1 / -1;
    }
}
@media(max-width:620px) {
    .customer-worker-opportunity-meta,
    .customer-worker-signup-context {
        display:grid;
        gap:3px;
    }
    .customer-worker-opportunity-meta span + span::before,
    .customer-worker-signup-context span + span::before {
        content:none;
    }
    .customer-worker-slot-heading {
        flex-direction:column;
        gap:7px;
    }
    .customer-worker-slot-availability {
        align-self:flex-start;
    }
    .customer-worker-slot-action-state {
        max-width:none;
        width:100%;
        box-sizing:border-box;
    }
    .customer-worker-signup-backdrop {
        padding:9px;
        align-items:flex-end;
    }
    .customer-worker-signup-modal {
        width:100%;
        max-height:calc(100vh - 18px);
        border-radius:12px 12px 8px 8px;
    }
    .customer-worker-signup-heading,
    .customer-worker-signup-task-summary,
    .customer-worker-signup-steps,
    .customer-worker-signup-actions {
        padding-left:12px;
        padding-right:12px;
    }
    .customer-worker-signup-preview,
    .customer-worker-signup-modal #customer-worker-signup-message {
        margin-left:12px;
        margin-right:12px;
    }
}

/* ========================================================================== */
/* PHASE 5N.7.2.1 — AVAILABLE SIGNUP ACTIVITY FILTER / SCHEDULE BOARD       */
/* ========================================================================== */
.customer-worker-available-toolbar {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin:0 0 12px;
    padding:10px 12px;
    border:1px solid #d8e2e9;
    border-radius:8px;
    background:#f8fafc;
}
.customer-worker-available-filters {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:10px;
}
.customer-worker-available-filter {
    display:grid;
    gap:4px;
    min-width:190px;
    margin:0;
}
.customer-worker-available-filter > span {
    color:#718595;
    font-size:9px;
    font-weight:800;
    letter-spacing:.045em;
    text-transform:uppercase;
}
.customer-worker-available-filter select {
    width:100%;
    min-height:34px;
    margin:0 !important;
    box-sizing:border-box;
}
.customer-worker-view-toggle {
    display:inline-flex;
    gap:0;
    padding:2px;
    border:1px solid #ccd9e2;
    border-radius:7px;
    background:#fff;
}
.customer-worker-view-toggle button {
    min-height:30px;
    padding:5px 10px;
    border:0;
    border-radius:5px;
    background:transparent;
    color:#667b8c;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
}
.customer-worker-view-toggle button.is-active {
    background:#eaf2f8;
    color:#315e80;
}
.customer-worker-board-help {
    margin:0 0 7px;
    color:#748695;
    font-size:10px;
}
.customer-worker-board-scroll {
    width:100%;
    overflow-x:auto;
    padding-bottom:3px;
    border:1px solid #d4e0e8;
    border-radius:9px;
    background:#fff;
}
/* Phase 5N.7.3.1 — Match My Account Schedule Board sizing to Admin Staffing Board. */
.customer-worker-schedule-board {
    width:max-content;
    min-width:0;
    border-collapse:separate;
    border-spacing:0;
    font-size:13px;
}
.customer-worker-schedule-board th,
.customer-worker-schedule-board td {
    min-width:205px;
    padding:4px 8px;
    border-right:1px solid #dde6ec;
    border-bottom:1px solid #dde6ec;
    vertical-align:top;
}
/* Phase 5N.7.2.4 — Match schedule-board worksheet headers to the row-header background. */
.customer-worker-schedule-board thead th {
    position:sticky;
    top:0;
    z-index:2;
    background:#e7edf3;
    color:#405b71;
    text-align:left;
}
.customer-worker-schedule-board thead th:first-child,
.customer-worker-schedule-board tbody th {
    position:sticky;
    left:0;
    z-index:3;
    width:125px;
    min-width:125px;
    max-width:125px;
}
.customer-worker-schedule-board thead th:first-child {
    z-index:4;
    background:#e7edf3;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
}
.customer-worker-schedule-board tbody th {
    background:#e7edf3;
    color:#496379;
    font-size:11px;
    line-height:1.35;
    text-align:left;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
}
.customer-worker-schedule-board tr:last-child > * { border-bottom:0; }
.customer-worker-schedule-board tr > *:last-child { border-right:0; }
.customer-worker-schedule-board thead th strong {
    display:block;
    margin-top:3px;
    color:#315671;
    font-size:11px;
    line-height:1.25;
}
.customer-worker-schedule-board thead th span {
    display:block;
    margin-top:3px;
    color:#7b8d9a;
    font-size:9px;
    font-weight:600;
}
.customer-worker-board-column-date {
    color:#56768f;
    font-size:10px;
    font-weight:800;
}
.customer-worker-board-cell { background:#fff; }
.customer-worker-board-cell.is-na {
    color:#a8b4bd;
    text-align:center;
    vertical-align:middle;
}
.customer-worker-board-slot {
    padding:8px;
    border:1px solid #dbe4e9;
    border-radius:7px;
    background:#fbfcfd;
}
.customer-worker-board-slot + .customer-worker-board-slot { margin-top:7px; }
.customer-worker-board-slot.is-open {
    border-color:#bfdcc3;
    background:#f5fbf6;
}
.customer-worker-board-slot.is-partial {
    border-color:#e4d39e;
    background:#fffaf0;
}
.customer-worker-board-slot.is-full { background:#f5f7f8; }
.customer-worker-board-slot-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.customer-worker-board-slot-top strong {
    color:#2f713a;
    font-size:10px;
    letter-spacing:.03em;
}
.customer-worker-board-slot.is-partial .customer-worker-board-slot-top strong { color:#80651f; }
.customer-worker-board-slot.is-full .customer-worker-board-slot-top strong { color:#727e86; }
.customer-worker-board-slot-top span {
    color:#6c7e8c;
    font-size:9px;
    font-weight:700;
}
.customer-worker-board-slot-shift {
    margin-top:5px;
    color:#4d6679;
    font-size:9px;
    line-height:1.35;
}
.customer-worker-board-slot-credit {
    margin-top:2px;
    color:#728492;
    font-size:9px;
    font-weight:700;
}
.customer-worker-board-roster {
    display:grid;
    gap:2px;
    margin-top:6px;
    padding-top:5px;
    border-top:1px solid rgba(115,137,153,.18);
}
.customer-worker-board-roster span {
    color:#4f687a;
    font-size:9px;
    font-weight:700;
    line-height:1.25;
}
.customer-worker-board-mine {
    margin-top:6px;
    padding:5px 6px;
    border-radius:5px;
    background:rgba(255,255,255,.75);
}
.customer-worker-board-mine > span {
    display:block;
    margin-bottom:2px;
    color:#79909f;
    font-size:8px;
    font-weight:800;
    letter-spacing:.035em;
    text-transform:uppercase;
}
.customer-worker-board-mine > strong {
    color:#3e5f76;
    font-size:9px;
    line-height:1.3;
}
.customer-worker-board-mine small {
    color:#718493;
    font-size:8px;
    font-weight:600;
}
.customer-worker-board-slot-action { margin-top:7px; }
.customer-worker-board-action {
    width:100%;
    min-height:29px;
    padding:5px 8px !important;
    font-size:10px !important;
}
.customer-worker-board-action-state {
    display:block;
    padding:5px 6px;
    border-radius:5px;
    background:#eef2f4;
    color:#75838d;
    font-size:9px;
    font-weight:800;
    text-align:center;
}
@media(max-width:700px) {
    .customer-worker-available-toolbar {
        align-items:stretch;
        flex-direction:column;
    }
    .customer-worker-available-filters { width:100%; }
    .customer-worker-available-filter { min-width:0; flex:1 1 180px; }
    .customer-worker-view-toggle { align-self:stretch; }
    .customer-worker-view-toggle button { flex:1 1 50%; }
    .customer-worker-schedule-board thead th:first-child,
    .customer-worker-schedule-board tbody th {
        width:125px;
        min-width:125px;
        max-width:125px;
    }
}


/* Phase 5N.7.2.2 — Organization filter for Available Signups */

/* ========================================================================== */
/* PHASE 5N.7.3 — MY ASSIGNMENTS UX REDESIGN                                */
/* ========================================================================== */
.customer-worker-assignment-toolbar {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin:0 0 12px;
    padding:10px 11px;
    border:1px solid #d8e2ea;
    border-radius:8px;
    background:#f7fafc;
}
.customer-worker-assignment-filters {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    min-width:0;
}
.customer-worker-assignment-filters label {
    display:block;
    min-width:190px;
    margin:0;
}
.customer-worker-assignment-filters label > span {
    display:block;
    margin:0 0 4px;
    color:#6b7f90;
    font-size:10px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.customer-worker-assignment-filters select {
    width:100%;
    min-height:34px;
    margin:0;
    box-sizing:border-box;
}
.customer-worker-assignment-view-toggle {
    display:inline-flex;
    flex:0 0 auto;
    gap:4px;
    padding:3px;
    border:1px solid #cfd9e1;
    border-radius:8px;
    background:#fff;
}
.customer-worker-assignment-view-toggle button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:auto !important;
    min-height:30px;
    margin:0 !important;
    padding:5px 10px !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#5b7083 !important;
    font-size:11px !important;
    font-weight:800 !important;
    box-shadow:none !important;
}
.customer-worker-assignment-view-toggle button span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:20px;
    min-height:20px;
    padding:1px 6px;
    border-radius:999px;
    background:#eef3f7;
    color:#60778a;
    font-size:10px;
    box-sizing:border-box;
}
.customer-worker-assignment-view-toggle button.is-active {
    background:#e7edf3 !important;
    color:#294b68 !important;
}
.customer-worker-assignment-view-toggle button.is-active span {
    background:#fff;
    color:#294b68;
}
.customer-worker-history-status-filters {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:-2px 0 12px;
}
.customer-worker-history-status-filters button {
    display:inline-flex;
    align-items:center;
    gap:5px;
    width:auto !important;
    min-height:29px;
    margin:0 !important;
    padding:5px 9px !important;
    border:1px solid #d3dde5 !important;
    border-radius:999px !important;
    background:#fff !important;
    color:#607486 !important;
    font-size:10px !important;
    font-weight:800 !important;
    box-shadow:none !important;
}
.customer-worker-history-status-filters button span {
    color:#8796a3;
}
.customer-worker-history-status-filters button.is-active {
    border-color:#9fb8cb !important;
    background:#edf4f8 !important;
    color:#315d7c !important;
}
.customer-worker-assignment-group {
    margin:0;
    padding:0;
    border:0;
}
.customer-worker-assignment-group + .customer-worker-assignment-group {
    margin-top:0;
    padding-top:0;
    border-top:0;
}
.customer-worker-group-heading {
    align-items:flex-start;
    margin:0 0 10px;
    padding-bottom:8px;
    border-bottom:1px solid #e1e7ec;
}
.customer-worker-group-heading > div {
    min-width:0;
}
.customer-worker-group-heading h4 {
    font-size:15px;
}
.customer-worker-group-heading p {
    margin:2px 0 0;
    color:#718392;
    font-size:10px;
    line-height:1.35;
}
.customer-worker-assignment-list.is-upcoming {
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}
.customer-worker-assignment-list.is-history {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.customer-worker-assignment-card {
    position:relative;
    padding:12px 13px;
    overflow:hidden;
    border-left:4px solid #c9d5de;
}
.customer-worker-assignment-card.is-scheduled {
    border-left-color:#6e9fc2;
}
.customer-worker-assignment-card.is-completed {
    border-left-color:#77aa7a;
}
.customer-worker-assignment-card.is-paid {
    border-left-color:#7397b4;
}
.customer-worker-assignment-card.is-no_show {
    border-left-color:#c38b59;
}
.customer-worker-assignment-card.is-cancelled {
    border-left-color:#b7b7b7;
}
.customer-worker-assignment-card.is-next {
    border-color:#abc5d8;
    border-left-color:#5d91b8;
    background:#fbfdff;
    box-shadow:0 2px 7px rgba(45,75,100,.08);
}
.customer-worker-assignment-heading {
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto;
    align-items:start;
    gap:10px;
}
.customer-worker-assignment-date-badge {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:58px;
    padding:4px 4px 5px;
    border:1px solid #d5e0e8;
    border-radius:7px;
    background:#f3f7fa;
    text-align:center;
    box-sizing:border-box;
}
.customer-worker-assignment-date-badge span {
    color:#678095;
    font-size:9px;
    font-weight:900;
    letter-spacing:.08em;
}
.customer-worker-assignment-date-badge strong {
    margin:1px 0 0;
    color:#294b68;
    font-size:20px;
    line-height:1;
}
.customer-worker-assignment-date-badge small {
    margin-top:2px;
    color:#8494a1;
    font-size:9px;
}
.customer-worker-assignment-date-badge.is-empty strong {
    color:#8999a5;
}
.customer-worker-assignment-title {
    min-width:0;
}
.customer-worker-assignment-title h4 {
    margin:2px 0 2px;
    color:#29445f;
    font-size:15px;
}
.customer-worker-assignment-title p {
    margin:0;
    color:#687c8d;
    font-size:11px;
    line-height:1.35;
}
.customer-worker-assignment-content {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(150px,190px);
    gap:10px;
    align-items:stretch;
    margin-top:10px;
}
.customer-worker-assignment-meta {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:0;
}
.customer-worker-assignment-meta > div {
    padding:7px 8px;
    border:1px solid #edf1f4;
    background:#f8fafc;
}
.customer-worker-assignment-credit-result {
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
    padding:8px 10px;
    border:1px solid #dce5eb;
    border-radius:7px;
    background:#f7fafc;
}
.customer-worker-assignment-credit-result span {
    color:#748695;
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.customer-worker-assignment-credit-result strong {
    margin-top:2px;
    color:#38566d;
    font-size:13px;
    line-height:1.25;
}
.customer-worker-assignment-credit-result small {
    margin-top:2px;
    color:#758796;
    font-size:10px;
    line-height:1.3;
}
.customer-worker-assignment-credit-result.is-completed {
    border-color:#c8dfca;
    background:#f1f8f2;
}
.customer-worker-assignment-credit-result.is-completed strong {
    color:#356b3c;
}
.customer-worker-assignment-credit-result.is-paid {
    border-color:#cedde8;
    background:#f2f7fa;
}
.customer-worker-assignment-credit-result.is-no-show {
    border-color:#ead2bb;
    background:#fff8f0;
}
.customer-worker-assignment-credit-result.is-cancelled {
    border-color:#dedede;
    background:#f8f8f8;
}
.customer-worker-assignment-credit-note {
    border-left-color:#8cb2d0;
    background:#f5f9fc;
}
.customer-worker-assignment-credit-note strong {
    color:#405f77;
}
.customer-worker-assignment-actions {
    padding-top:8px;
    border-top:1px solid #edf1f4;
}

@media(max-width:900px) {
    .customer-worker-assignment-list.is-history {
        grid-template-columns:1fr;
    }
}
@media(max-width:760px) {
    .customer-worker-assignment-toolbar {
        align-items:stretch;
        flex-direction:column;
    }
    .customer-worker-assignment-filters {
        width:100%;
    }
    .customer-worker-assignment-filters label {
        flex:1 1 180px;
        min-width:0;
    }
    .customer-worker-assignment-view-toggle {
        align-self:stretch;
    }
    .customer-worker-assignment-view-toggle button {
        flex:1 1 50%;
    }
    .customer-worker-assignment-content {
        grid-template-columns:1fr;
    }
}
@media(max-width:560px) {
    .customer-worker-assignment-heading {
        grid-template-columns:48px minmax(0,1fr);
    }
    .customer-worker-assignment-heading > .customer-worker-own-status {
        grid-column:1 / -1;
        justify-self:start;
    }
    .customer-worker-assignment-meta {
        grid-template-columns:1fr;
    }
    .customer-worker-history-status-filters {
        gap:5px;
    }
    .customer-worker-history-status-filters button {
        flex:1 1 auto;
    }
}

/* ========================================================================== */
/* PHASE 5N.7.4 — WORKER CREDIT PROGRESS UX REDESIGN                        */
/* ========================================================================== */
#account-worker-pane-progress .account-event-discovery-status {
    margin-bottom:10px;
    color:#667b8d;
    font-size:11px;
}
.customer-worker-progress-toolbar {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin:0 0 13px;
    padding:10px 11px;
    border:1px solid #d8e2ea;
    border-radius:8px;
    background:#f7fafc;
}
.customer-worker-progress-filters {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    min-width:0;
}
.customer-worker-progress-filters label {
    display:block;
    min-width:190px;
    margin:0;
}
.customer-worker-progress-filters label > span {
    display:block;
    margin:0 0 4px;
    color:#6b7f90;
    font-size:10px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.customer-worker-progress-filters select {
    width:100%;
    min-height:34px;
    margin:0;
    box-sizing:border-box;
}
.customer-worker-progress-summary-inline {
    display:flex;
    flex:0 0 auto;
    gap:5px;
}
.customer-worker-progress-summary-inline > div {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:68px;
    min-height:50px;
    padding:5px 8px;
    border:1px solid #d6e0e8;
    border-radius:7px;
    background:#fff;
    box-sizing:border-box;
}
.customer-worker-progress-summary-inline strong {
    color:#31516a;
    font-size:16px;
    line-height:1.05;
}
.customer-worker-progress-summary-inline span {
    margin-top:2px;
    color:#748696;
    font-size:9px;
    font-weight:800;
    letter-spacing:.03em;
    text-transform:uppercase;
}
.customer-worker-progress-list.is-detail {
    gap:14px;
}
.customer-worker-progress-card.is-detail {
    overflow:hidden;
    padding:0;
    border-color:#cfdce6;
    border-left:4px solid #6e9fc2;
    border-radius:9px;
    box-shadow:0 1px 2px rgba(37,62,82,.04);
}
.customer-worker-progress-card.is-detail .customer-worker-progress-heading {
    padding:13px 14px 12px;
    border-bottom:1px solid #dde6ed;
    background:#f7fafc;
}
.customer-worker-progress-card.is-detail .customer-worker-progress-heading h4 {
    margin:2px 0 2px;
    color:#29445f;
    font-size:16px;
}
.customer-worker-progress-card.is-detail .customer-worker-progress-heading p {
    color:#667b8d;
    font-size:11px;
}
.customer-worker-progress-org {
    display:block;
    color:#70869a;
    font-size:10px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.customer-worker-progress-person-card {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:6px 9px;
    align-items:baseline;
    margin:12px 14px 0;
    padding:9px 10px;
    border:1px solid #dbe4eb;
    border-radius:7px;
    background:#fff;
}
.customer-worker-progress-person-card > span {
    color:#718493;
    font-size:10px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.customer-worker-progress-person-card > strong {
    min-width:0;
    overflow-wrap:anywhere;
    color:#36526a;
    font-size:13px;
}
.customer-worker-progress-person-card > small {
    color:#758898;
    font-size:10px;
    font-weight:700;
}
.customer-worker-progress-metrics {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin:10px 14px 0;
}
.customer-worker-progress-metrics > div {
    min-width:0;
    padding:9px 10px;
    border:1px solid #dce4ea;
    border-radius:7px;
    background:#f8fafc;
}
.customer-worker-progress-metrics span {
    display:block;
    margin-bottom:3px;
    color:#748696;
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.customer-worker-progress-metrics strong {
    display:block;
    overflow-wrap:anywhere;
    color:#38546c;
    font-size:15px;
    line-height:1.2;
}
.customer-worker-progress-metrics .is-earned {
    border-color:#c7dce9;
    background:#f3f8fb;
}
.customer-worker-progress-metrics .is-earned strong {
    color:#2f6487;
}
.customer-worker-progress-metrics .is-remaining strong {
    color:#5f6670;
}
.customer-worker-progress-completion {
    margin:10px 14px 0;
    padding:9px 10px;
    border:1px solid #dce4ea;
    border-radius:7px;
    background:#fff;
}
.customer-worker-progress-completion > div:first-child {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.customer-worker-progress-completion > div:first-child span {
    color:#667b8c;
    font-size:10px;
    font-weight:800;
    letter-spacing:.03em;
    text-transform:uppercase;
}
.customer-worker-progress-completion > div:first-child strong {
    color:#355a76;
    font-size:12px;
}
.customer-worker-progress-completion .customer-worker-progress-bar {
    height:10px;
    margin-top:7px;
}
.customer-worker-progress-tracking-note {
    margin:10px 14px 0;
    padding:9px 10px;
    border-left:3px solid #91afc6;
    background:#f6f9fb;
    color:#5d7283;
    font-size:11px;
    line-height:1.4;
}
.customer-worker-progress-detail-meta {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:10px 14px 12px;
}
.customer-worker-progress-detail-meta > div {
    min-width:0;
    padding:8px 9px;
    border-radius:6px;
    background:#f7fafc;
}
.customer-worker-progress-detail-meta span {
    display:block;
    margin-bottom:2px;
    color:#7a8b99;
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.customer-worker-progress-detail-meta strong {
    display:block;
    overflow-wrap:anywhere;
    color:#40586d;
    font-size:11px;
    line-height:1.35;
}
.customer-worker-progress-history {
    border-top:1px solid #dde6ed;
    background:#fbfcfd;
}
.customer-worker-progress-history-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px 14px 9px;
}
.customer-worker-progress-history-heading h5 {
    margin:0;
    color:#38546b;
    font-size:12px;
}
.customer-worker-progress-history-heading p {
    margin:2px 0 0;
    color:#7b8c99;
    font-size:10px;
}
.customer-worker-progress-history-heading > span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:25px;
    min-height:25px;
    padding:2px 7px;
    border-radius:999px;
    background:#e7edf3;
    color:#536b7e;
    font-size:10px;
    font-weight:800;
    box-sizing:border-box;
}
.customer-worker-progress-history-list {
    border-top:1px solid #e4eaef;
}
.customer-worker-progress-history-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:9px 14px;
    background:#fff;
}
.customer-worker-progress-history-row + .customer-worker-progress-history-row {
    border-top:1px solid #e7edf1;
}
.customer-worker-progress-history-main {
    min-width:0;
}
.customer-worker-progress-history-main > strong {
    display:block;
    color:#39546b;
    font-size:11px;
    line-height:1.3;
}
.customer-worker-progress-history-main > span {
    display:block;
    margin-top:2px;
    color:#718493;
    font-size:10px;
    line-height:1.35;
}
.customer-worker-progress-history-main > small {
    display:block;
    margin-top:3px;
    color:#6e7e8c;
    font-size:10px;
}
.customer-worker-progress-history-main > small strong {
    color:#50687b;
}
.customer-worker-progress-history-credit {
    min-width:82px;
    text-align:right;
}
.customer-worker-progress-history-credit strong {
    display:block;
    color:#2f6487;
    font-size:12px;
}
.customer-worker-progress-history-credit span {
    display:block;
    margin-top:1px;
    color:#7e8e9b;
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
}
.customer-worker-progress-history-empty {
    padding:12px 14px;
    border-top:1px solid #e4eaef;
    color:#738694;
    font-size:11px;
    line-height:1.4;
}
@media(max-width:820px) {
    .customer-worker-progress-toolbar {
        align-items:stretch;
        flex-direction:column;
    }
    .customer-worker-progress-filters {
        width:100%;
    }
    .customer-worker-progress-filters label {
        flex:1 1 180px;
    }
    .customer-worker-progress-summary-inline {
        width:100%;
    }
    .customer-worker-progress-summary-inline > div {
        flex:1 1 0;
    }
}
@media(max-width:620px) {
    .customer-worker-progress-person-card {
        grid-template-columns:1fr;
        gap:2px;
    }
    .customer-worker-progress-metrics,
    .customer-worker-progress-detail-meta {
        grid-template-columns:1fr;
    }
    .customer-worker-progress-history-row {
        grid-template-columns:1fr;
        gap:6px;
    }
    .customer-worker-progress-history-credit {
        min-width:0;
        text-align:left;
    }
}

/* ========================================================================== */
/* PHASE 5N.7.4.1 — SELF-SERVICE ASSIGNMENT EDITING                           */
/* ========================================================================== */
.customer-worker-assignment-actions {
    gap:7px;
    flex-wrap:wrap;
}
.customer-worker-signup-edit-note {
    display:flex;
    flex-direction:column;
    gap:2px;
    margin:11px 17px 0;
    padding:9px 10px;
    border:1px solid #d6e3ec;
    border-radius:7px;
    background:#f7fafc;
    color:#657b8d;
    font-size:10px;
    line-height:1.4;
}
.customer-worker-signup-edit-note strong {
    color:#405f77;
    font-size:11px;
}


/* ==========================================================================
   PHASE 5N.7.8 — WORKER & VOLUNTEER MOBILE TAB WRAPPING
   Keep the four Worker & Volunteer section tabs inside their container on
   smaller screens by allowing labels to wrap instead of horizontal scrolling.
   ========================================================================== */
@media (max-width: 760px) {
    .account-worker-section-tabs {
        overflow-x: hidden;
    }

    .account-worker-section-tabs .account-section-tab {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 6px !important;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        text-align: center;
        line-height: 1.15;
    }
}

/* Phase 5O.2 / 5O.2.1 — optional Family / Household Members in Account Settings */
#account-workspace-account .account-family-member-card {
    width: 100%;
    margin: 0 !important;
    padding: 14px !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}
.account-family-member-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.account-family-member-heading > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}
.account-family-member-heading h3 {
    margin: 0 0 4px;
    color: #333;
    font-size: 18px;
}
.account-family-member-heading p {
    margin: 0;
    color: #666;
    line-height: 1.45;
}
.account-family-member-add-button {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 190px;
    margin: 0;
}
.account-family-member-status {
    margin-top: 12px;
    color: #777;
    font-size: 13px;
}
.account-family-member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.account-family-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}
.account-family-member-row.is-inactive {
    opacity: .7;
    background: #f7f7f7;
}
.account-family-member-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.account-family-member-main strong {
    color: #222;
}
.account-family-member-meta {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}
.account-family-member-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: 6px;
}
.account-family-member-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: #edf4ff;
    color: #294e7a;
    font-size: 11px;
    font-weight: 700;
}
.account-family-member-badge.is-inactive {
    background: #eee;
    color: #666;
}
.account-family-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    flex: 0 0 auto;
}
.account-family-member-actions button {
    margin: 0;
}
.account-family-member-form {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}
.account-family-member-form[hidden] {
    display: none !important;
}
.account-family-member-form-heading strong {
    display: block;
    font-size: 16px;
    color: #333;
}
.account-family-member-form-heading small {
    display: block;
    margin-top: 3px;
    color: #666;
    line-height: 1.4;
}
.account-family-member-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin-top: 12px;
}
.account-family-member-field {
    min-width: 0;
}
.account-family-member-field-wide {
    grid-column: 1 / -1;
}
.account-family-member-field label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}
.account-family-member-field input,
.account-family-member-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 7px;
}
.account-family-member-optional {
    font-weight: 400;
    color: #666;
}
.account-family-member-address-help {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
    line-height: 1.45;
}
.account-family-member-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.account-family-member-form-actions button {
    margin: 0;
}
@media (max-width: 760px) {
    .account-family-member-heading,
    .account-family-member-row {
        align-items: stretch;
        flex-direction: column;
    }
    .account-family-member-add-button {
        width: 100% !important;
        min-width: 0;
    }
    .account-family-member-actions {
        justify-content: flex-start;
    }
    .account-family-member-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .account-family-member-field-wide {
        grid-column: auto;
    }
}
.account-family-member-edit-button {
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #fff;
    color: #333;
    padding: 6px 10px;
    font-weight: 700;
    cursor: pointer;
}
.account-family-member-edit-button:hover {
    background: #f2f2f2;
}


/* ========================================================================== 
   PHASE 5O.2.2 — MY ACCOUNT ACCOUNT-AREA REORGANIZATION
   Account Holder settings, Family / Household, Purchase History and future
   Payment Methods now share one Account workspace with dedicated tabs.
   ========================================================================== */
.account-account-pane[hidden] {
    display: none !important;
}

.account-account-pane-heading {
    margin: 2px 4px 14px;
}

.account-account-pane-heading h3 {
    margin: 0 0 4px;
    color: #29445f;
    font-size: 18px;
}

.account-account-pane-heading p {
    margin: 0;
    color: #66798b;
    font-size: 13px;
    line-height: 1.45;
}

.account-profile-subheading {
    margin: 14px 0 4px;
    padding: 8px 0 4px;
    border-top: 1px solid #e1e5e8;
    color: #29445f;
    font-size: 15px;
    font-weight: 800;
}

.account-profile-subheading:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.account-payment-methods-placeholder {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 4px 4px;
    padding: 18px;
    border: 1px dashed #bdc8d1;
    border-radius: 8px;
    background: #f8fafb;
    color: #66798b;
    line-height: 1.45;
}

.account-payment-methods-placeholder strong {
    color: #334a5d;
    font-size: 15px;
}

.account-payment-methods-placeholder span {
    font-size: 13px;
}

@media (max-width: 760px) {
    .account-account-section-tabs {
        overflow-x: hidden;
    }

    .account-account-section-tabs .account-section-tab {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 5px !important;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }
}

/* ========================================================================== 
   PHASE 5O.2.3 — FAMILY ACTION BUTTONS + REGISTRATION TAB RESPONSIVENESS
   Match Family / Household row actions to the compact Driver roster treatment
   and keep Registration tabs inside their container on smaller screens.
   ========================================================================== */
.account-family-member-actions {
    flex-wrap: nowrap;
    align-items: center;
}

.account-family-member-actions button {
    width: 70px !important;
    flex: 0 0 70px;
    padding: 6px 10px !important;
    font-size: 13px !important;
    line-height: 1.2;
}

.account-family-member-edit-button {
    border: 0;
    background: #2e7d32;
    color: #fff;
}

.account-family-member-edit-button:hover {
    background: #1b5e20;
    color: #fff;
}

.account-family-member-actions .cancel-button {
    background: #c62828;
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .account-family-member-actions .cancel-button:hover {
        background: #b71c1c;
    }
}

@media (hover: none) {
    .account-family-member-actions .cancel-button:active {
        background: #b71c1c;
    }
}

@media (max-width: 760px) {
    #account-workspace-registrations > .account-section-tabs {
        overflow-x: hidden;
    }

    #account-workspace-registrations > .account-section-tabs .account-section-tab {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 5px !important;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        text-align: center;
        line-height: 1.15;
    }
}

/* ========================================================================== 
   PHASE 5O.3 — FAMILY MEMBER DRIVER LIFECYCLE
   A non-driver Family / Household Member can gain a normal Driver profile
   while retaining the household relationship and Membership history.
   ========================================================================== */
.account-family-member-actions .account-family-member-driver-button {
    width: 96px !important;
    flex: 0 0 96px;
    border: 0;
    border-radius: 4px;
    background: #1565c0;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .account-family-member-actions .account-family-member-driver-button:hover {
        background: #0d47a1;
    }
}


/* ========================================================================== 
   PHASE 5O.4.1 — FAMILY MEMBER OWN PLATFORM ACCOUNT TRANSFER
   ========================================================================== */
.account-family-member-actions .account-family-member-own-account-button {
    width: 118px !important;
    flex: 0 0 118px;
    padding: 6px 8px !important;
    border: 0;
    border-radius: 4px;
    background: #455a64;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.account-family-member-own-account-note {
    margin-top: 4px;
    font-style: italic;
}

@media (hover: hover) and (pointer: fine) {
    .account-family-member-actions .account-family-member-own-account-button:hover {
        background: #37474f;
    }
}

@media (max-width: 760px) {
    .account-family-member-actions {
        flex-wrap: wrap;
    }
}

/* ========================================================================== 
   PHASE 5O.7.1 — ACCOUNT PURCHASE/PAYMENT PANE PADDING
   Purchase History and Payment Methods do not contain the inner account cards
   used by Profile & Settings / Family & Household, so restore the standard
   Account-area content inset for these two standalone panes only.
   ========================================================================== */
#account-account-pane-orders > .account-workspace-surface,
#account-account-pane-payment > .account-workspace-surface {
    padding: 14px;
}
