:root {
    color-scheme: light;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f9f7;
    color: #122021;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(0, 167, 143, 0.12), transparent 30%),
                radial-gradient(circle at bottom right, rgba(0, 167, 143, 0.08), transparent 30%),
                #f5f9f7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.global-header {
    background: #ffffffee;
    border-bottom: 1px solid rgba(15, 38, 41, 0.08);
    position: sticky;
    top: 0;
    z-index: 20;
}

.global-header {
    display: flex;
    align-items: center;
}

.global-header {
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

/* Stack brand and nav vertically so brand appears on first line
   and navigation items appear on the next lines (each on its own row) */
@media (min-width: 0px) {
    .global-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .global-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 0.6rem;
        gap: 0.5rem;
    }
    .nav-item {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.6rem 0.8rem;
    }
}

.global-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #00bf9d 0%, #16a67b 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-image {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.global-nav {
    display: none; /* hidden by default, toggle with .show */
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(0, 191, 157, 0.09);
    color: #0f2629;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
    background: rgba(0, 191, 157, 0.18);
    transform: translateY(-1px);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #00bf9d;
    color: #fff;
    font-size: 0.95rem;
}

.nav-image {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    display: inline-block;
}

.page-content {
    padding: 2rem 0 3rem;
}

/* Navigation is kept in the header but hidden by default; .show toggles it */
.global-nav.show {
    display: flex;
    flex-direction: column;
}

/* Toggle button style */
.toggle-nav-btn {
    background: transparent;
    border: 1px solid rgba(15,38,41,0.06);
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #0f2629;
}

.toggle-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,191,157,0.12);
}

.page-heading {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-header {
    padding: 1.25rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #00bf9d 0%, #16a67b 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-text {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.brand-text .brand-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.brand-text .brand-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: #54686d;
}

.hero {
    display: grid;
    gap: 1.25rem;
    padding: 1rem 0 1.5rem;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy {
    margin: 0;
    max-width: 36rem;
    font-size: 1.05rem;
    color: #4f696f;
}

.card {
    background: white;
    border: 1px solid rgba(15, 38, 41, 0.08);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(15, 38, 41, 0.08);
    padding: 2rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.field-group {
    display: grid;
    gap: 0.65rem;
}

.field-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #13201f;
}

input[type=text], select {
    width: 100%;
    padding: 1rem 1rem;
    border: 1px solid #dbe4e1;
    border-radius: 16px;
    font-size: 1rem;
    background: #f8fbfa;
    color: #13201f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type=text]::placeholder {
    color: #999;
    opacity: 1;
}

select option:disabled {
    color: #999;
}

input[type=text]:focus, select:focus {
    border-color: #05b88e;
    box-shadow: 0 0 0 4px rgba(0, 191, 157, 0.12);
}

.search-input-wrapper {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    list-style: none;
    margin: 0.25rem 0 0 0;
    padding: 0;
    background: white;
    border: 1px solid #dbe4e1;
    border-top: none;
    border-radius: 0 0 16px 16px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(15, 38, 41, 0.1);
}

.suggestions-list li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #13201f;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f3f2;
    transition: background-color 0.15s ease;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background-color: #f0f9f7;
}

.suggestions-list li.active {
    background-color: #e8f7f4;
    color: #0c5d52;
    font-weight: 600;
}

button[type=submit] {
    border: none;
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #00bf9d 0%, #009c7b 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.button-primary {
    background: linear-gradient(135deg, #00bf9d 0%, #009c7b 100%);
    color: white;
}

.button-secondary {
    background: #eaf4f2;
    color: #0d433e;
}

.button-danger {
    background: #ffe6e6;
    color: #8a2b2b;
}

.admin-container {
    width: calc(100% - 2rem);
    max-width: none;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.admin-sidebar,
.admin-main {
    background: #fff;
    border: 1px solid rgba(15, 38, 41, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 38, 41, 0.04);
}

.admin-main {
    min-width: 0;
}

.admin-create-table {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #d9e8e4;
    border-radius: 12px;
    background: #f8fbfa;
}

.admin-create-table summary {
    cursor: pointer;
    font-weight: 700;
    color: #0d433e;
}

.admin-create-note {
    margin: 0.75rem 0 1rem;
    color: #4b5f5d;
    font-size: 0.9rem;
}

.admin-create-errors {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #f2b8b8;
    border-radius: 8px;
    background: #fff1f1;
    color: #8a2b2b;
}

.admin-create-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.admin-create-table-name {
    display: grid;
    gap: 0.35rem;
    max-width: 28rem;
    font-weight: 700;
}

.admin-create-table input,
.admin-create-table select {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cededa;
    border-radius: 8px;
    background: #fff;
}

.admin-create-columns-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-create-columns-heading h4 {
    margin: 0;
}

.admin-create-column-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) auto 36px;
    gap: 0.75rem;
    align-items: end;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3ece9;
}

.admin-create-column-row > label:not(.admin-required-column) {
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-required-column {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    white-space: nowrap;
}

.admin-required-column input {
    width: 18px;
    height: 18px;
}

.admin-remove-column {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #f2b8b8;
    border-radius: 8px;
    background: #fff1f1;
    color: #8a2b2b;
    font-size: 1.35rem;
    line-height: 1;
}

.admin-remove-column:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.admin-create-submit {
    margin-top: 1rem;
}

.admin-sidebar h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.admin-selected-table {
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: #eefbf7;
    border: 1px solid #d9f1ea;
}

.selected-table-label {
    font-size: 0.75rem;
    color: #4b5f5d;
    margin-bottom: 0.25rem;
}

.selected-table-name {
    font-weight: 700;
    color: #0d433e;
    word-break: break-word;
}

.admin-table-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-table-list a {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    color: #153b39;
    text-decoration: none;
    background: #f6f9f8;
}

.admin-table-list a.active {
    background: #dffaf4;
    color: #0f6c5e;
    font-weight: 700;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.csv-upload-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.admin-add-row {
    background: #f8fbfa;
    border: 1px solid #e5efec;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-row-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 1rem;
}

.admin-row-form label,
.admin-table td input {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.admin-row-form input,
.admin-table td input {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #dfe9e6;
    background: #fff;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    padding: 0.7rem 0.6rem;
    border: 1px solid #e3ece9;
    text-align: left;
    vertical-align: top;
    background: #fff;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-table th {
    background: #f2f8f6;
    font-weight: 700;
}

.admin-actions-cell {
    width: 100px;
    min-width: 100px;
    text-align: center;
}

.admin-action-heading {
    width: 100px;
    min-width: 100px;
    text-align: center !important;
}

.admin-table th:last-child,
.admin-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
}

.admin-table th:nth-last-child(2),
.admin-table td:nth-last-child(2) {
    position: sticky;
    right: 100px;
    z-index: 2;
    box-shadow: -8px 0 12px rgba(15, 38, 41, 0.06);
}

.admin-table th:last-child,
.admin-table th:nth-last-child(2) {
    z-index: 3;
}

.admin-actions-cell button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-width: 64px;
    white-space: nowrap;
}

.delete-form {
    display: contents;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 660px) {
    .admin-create-column-row {
        grid-template-columns: minmax(0, 1fr) 36px;
    }

    .admin-create-column-row > label:not(.admin-required-column) {
        grid-column: 1 / -1;
    }
}

button[type=submit]:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(0, 191, 157, 0.25);
}

.results-section {
    margin-top: 2rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.section-heading .sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #4f6f73;
    font-size: 0.95rem;
}

.select-inline {
    width: 200px;
}

.result-cards {
    display: grid;
    gap: 1.25rem;
}

.ride-card {
    background: #fff;
    border: 1px solid rgba(15, 38, 41, 0.08);
    border-radius: 22px;
    padding: 1.6rem;
}

.ride-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    background: #f2f7f6;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #2c4d52;
    font-size: 0.95rem;
    font-weight: 600;
}

.ride-rate {
    font-size: 1.45rem;
    font-weight: 800;
    color: #009c7b;
    text-align: right;
}

.ride-button {
    margin-top: 1rem;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 16px;
    padding: 1rem;
    background: #00b394;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.ride-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.ride-application-message {
    min-height: 1.4rem;
    margin: 0.65rem 0 0;
    color: #087560;
    font-weight: 700;
    text-align: center;
}

.ride-empty-message {
    padding: 2rem 1rem;
    color: #60716f;
    text-align: center;
}

.nav-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: #f2f7f6;
    font-weight: 700;
}

.nav-member a,
.nav-member button {
    color: #087560;
    font: inherit;
}

.nav-member form {
    margin-left: auto;
}

.nav-member button {
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.auth-shell {
    display: grid;
    place-items: start center;
    min-height: 60vh;
}

.auth-panel {
    width: min(520px, 100%);
    padding: 1.75rem;
    border: 1px solid #dce8e5;
    border-radius: 8px;
    background: #fff;
}

.auth-panel h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.auth-panel > p {
    color: #526865;
    line-height: 1.7;
}

.auth-provider-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-provider-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd8d5;
    border-radius: 6px;
    background: #fff;
    color: #122021;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-provider-button small {
    margin-left: auto;
    color: #73817f;
    font-weight: 600;
}

.auth-provider-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.auth-provider-google {
    border-color: #9ba9b5;
}

.auth-provider-apple {
    background: #111;
    color: #fff;
}

.auth-provider-line {
    border-color: #06c755;
    color: #057d39;
}

.auth-provider-meta {
    border-color: #1877f2;
    color: #1256ad;
}

.auth-provider-amazon {
    border-color: #ff9900;
}

.auth-provider-tiktok {
    border-color: #3d3d3d;
}

.auth-policy-note {
    margin: 1.25rem 0 0;
    font-size: 0.88rem;
}

.card-registration-form {
    margin-top: 1.5rem;
}

.card-registration-form .button-primary {
    margin-top: 1.25rem;
}

.auth-error-message {
    min-height: 1.4rem;
    color: #a12626;
    font-weight: 700;
}

.auth-setup-notice {
    margin-top: 1.25rem;
    padding: 1rem;
    border-left: 4px solid #c78a11;
    background: #fff7df;
    color: #684600;
}

.auth-message-panel .button-primary,
.auth-message-panel .button-secondary {
    margin-top: 1rem;
}

.myride-section {
    max-width: 900px;
    margin: 0 auto;
}

.myride-created-message {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid #009c7b;
    background: #e9f7f3;
    color: #0d433e;
    overflow-wrap: anywhere;
}

.myride-list {
    display: grid;
    gap: 1.25rem;
}

.myride-card {
    padding: 1.5rem;
    border: 1px solid #dce8e5;
    border-radius: 8px;
    background: #fff;
}

.myride-card.is-created {
    border-color: #009c7b;
    box-shadow: 0 0 0 3px rgba(0, 156, 123, 0.12);
}

.myride-card-header,
.myride-route,
.myride-fare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.myride-card-header h2 {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.myride-label {
    display: block;
    color: #60716f;
    font-size: 0.8rem;
    font-weight: 700;
}

.myride-status {
    flex: 0 0 auto;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #dff4ed;
    color: #087560;
    font-size: 0.85rem;
    font-weight: 700;
}

.myride-route {
    margin: 1.25rem 0;
    padding: 1rem;
    background: #f2f7f6;
}

.myride-route > div {
    flex: 1;
    min-width: 0;
}

.myride-route-arrow {
    color: #009c7b;
    font-size: 1.4rem;
    font-weight: 700;
}

.myride-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.myride-details div {
    min-width: 0;
}

.myride-details dt {
    color: #60716f;
    font-size: 0.8rem;
    font-weight: 700;
}

.myride-details dd {
    margin: 0.25rem 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.myride-fare {
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e3ece9;
}

.myride-fare strong {
    margin-left: auto;
    color: #00836a;
    font-size: 1.4rem;
}

.myride-fare small {
    flex-basis: 100%;
    color: #60716f;
    text-align: right;
}

.ride-payment-label,
.myride-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ride-payment-label {
    margin: 0.8rem 0;
    font-size: 0.88rem;
    font-weight: 700;
}

.ride-payment-method {
    width: auto;
}

.myride-actions {
    margin-top: 1rem;
}

.button-danger {
    border: 1px solid #b42318;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    background: #fff;
    color: #b42318;
    font-weight: 700;
    cursor: pointer;
}

.myride-cancel-message {
    min-height: 1.4rem;
    color: #7a271a;
    font-weight: 700;
}

.myride-empty {
    padding: 2.5rem 1rem;
    text-align: center;
}

.myride-empty .button-primary {
    width: auto;
    margin-top: 1rem;
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .hero-copy {
        max-width: 28rem;
    }
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 660px) {
    .section-heading {
        flex-direction: column;
        align-items: start;
    }
    .select-inline {
        width: 100%;
    }
}

.card-highlight {
    background: #e8faf7;
    border-color: rgba(0, 191, 157, 0.18);
}

.hero-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(0, 191, 157, 0.12);
    display: grid;
    place-items: center;
}

.hero-icon-image {
    width: 36px;
    height: 36px;
}

.form-intro {
    margin-bottom: 1.25rem;
}

.section-copy {
    margin: 0.5rem 0 0;
    color: #5f6d73;
    line-height: 1.7;
}

.button-secondary,
.button-primary {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.button-secondary {
    background: #3bb19a;
    color: #fff;
    margin: 1rem 0;
}

.button-primary {
    background: linear-gradient(135deg, #00bf9d 0%, #009c7b 100%);
    color: white;
}

.button-secondary:hover,
.button-primary:hover {
    opacity: 0.95;
}

.form-section {
    margin-top: 2rem;
}

.section-block {
    margin: 1.75rem 0 1rem;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-note {
    margin: 0;
    color: #5f6d73;
    font-size: 0.9rem;
}

.rideshare-details-refresh-message {
    min-height: 1.4rem;
    margin-top: 0.5rem;
    font-weight: 700;
}

.rideshare-details-refresh-message.success {
    color: #087560;
}

.rideshare-details-refresh-message.error {
    color: #a12626;
}

.create-confirmation-dialog {
    width: min(560px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #122021;
    box-shadow: 0 24px 70px rgba(15, 38, 41, 0.24);
}

.create-confirmation-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.create-confirmation-dialog::backdrop {
    background: rgba(15, 38, 41, 0.58);
}

.create-confirmation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e3ece9;
}

.create-confirmation-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.create-confirmation-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b5f5d;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.create-confirmation-body {
    min-height: 0;
    padding: 1.25rem;
    overflow-y: auto;
}

.create-confirmation-list {
    margin: 0;
}

.create-confirmation-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #edf2f0;
}

.create-confirmation-list dt {
    color: #5f6d73;
    font-weight: 600;
}

.create-confirmation-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    text-align: right;
}

.create-confirmation-list .create-confirmation-total {
    color: #087560;
    font-size: 1.08rem;
}

.create-confirmation-message {
    min-height: 1.5rem;
    margin: 1rem 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.create-confirmation-message.success {
    color: #087560;
}

.create-confirmation-message.error {
    color: #a12626;
}

.create-confirmation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #e3ece9;
}

.create-confirmation-actions .button-secondary,
.create-confirmation-actions .button-primary {
    width: 100%;
    min-height: 52px;
    margin: 0;
}

.create-confirmation-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

input[type=date], input[type=time] {
    width: 100%;
    padding: 1rem 1rem;
    border: 1px solid #dbe4e1;
    border-radius: 16px;
    font-size: 1rem;
    background: #f8fbfa;
    color: #13201f;
    outline: none;
}

.date-entry .date-prompt {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #7c8a91;
}

input[type=date]:focus, input[type=time]:focus {
    border-color: #05b88e;
    box-shadow: 0 0 0 4px rgba(0, 191, 157, 0.12);
}

@media (max-width: 660px) {
    .auth-panel {
        padding: 1.25rem;
    }

    .auth-provider-button {
        justify-content: flex-start;
    }

    .myride-card {
        padding: 1.1rem;
    }

    .myride-route {
        align-items: flex-start;
        flex-direction: column;
    }

    .myride-route-arrow {
        transform: rotate(90deg);
    }

    .myride-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .create-confirmation-list > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .create-confirmation-list dd {
        text-align: left;
    }

    .create-confirmation-actions {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.25rem;
    }
    .hero {
        padding: 0.75rem 0 1rem;
    }
    .hero-preview {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-copy,
    .section-copy {
        max-width: 100%;
    }
    .field-group {
        gap: 0.5rem;
    }
    .field-group label {
        font-size: 0.92rem;
    }
    .button-secondary,
    .button-primary {
        padding: 0.9rem 1rem;
    }
    .global-header {
        padding: 0.75rem 0;
    }
    .page-content {
        padding: 1.5rem 0 2rem;
    }
    .card-highlight {
        padding: 1rem;
    }
    .section-block {
        margin: 1.25rem 0 0.75rem;
    }
    .grid-two {
        grid-template-columns: 1fr;
    }
}

.card-highlight {
    background: #e8faf7;
    border-color: rgba(0, 191, 157, 0.18);
    padding: 1.5rem;
}

.hero-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(0, 191, 157, 0.12);
    display: grid;
    place-items: center;
}

.hero-icon-image {
    width: 32px;
    height: 32px;
}

.form-section h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.form-intro {
    margin-bottom: 1.25rem;
}

.section-copy {
    margin: 0;
    color: #5f6d73;
    line-height: 1.7;
}

.button-secondary,
.button-primary {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.button-secondary {
    background: #3bb19a;
    color: #fff;
    margin: 1.25rem 0;
}

.button-primary {
    background: linear-gradient(135deg, #00bf9d 0%, #009c7b 100%);
    color: white;
    margin-top: 1.75rem;
}

.button-secondary:hover,
.button-primary:hover {
    opacity: 0.95;
}

.section-block {
    margin: 1.75rem 0 1rem;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-note {
    margin: 0;
    color: #5f6d73;
    font-size: 0.9rem;
}

input[type=date], input[type=time] {
    width: 100%;
    padding: 1rem 1rem;
    border: 1px solid #dbe4e1;
    border-radius: 16px;
    font-size: 1rem;
    background: #f8fbfa;
    color: #13201f;
    outline: none;
}

input[type=date]:focus, input[type=time]:focus {
    border-color: #05b88e;
    box-shadow: 0 0 0 4px rgba(0, 191, 157, 0.12);
}

@media (max-width: 660px) {
    .grid-two {
        grid-template-columns: 1fr;
    }
}
