.eafc-gmm .eafc-gmm__timeline-summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eafc-gmm-space-control);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--eafc-gmm-space-intro);
}

.eafc-gmm .eafc-gmm__timeline-summary p {
    margin-bottom: 0;
}

.eafc-gmm .eafc-gmm__timeline-shell {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--eafc-gmm-color-widget-bg);
    border: 1px solid var(--eafc-gmm-color-border-strong);
    border-radius: var(--eafc-gmm-radius-md);
}

.eafc-gmm .eafc-gmm__timeline-scroll {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.eafc-gmm .eafc-gmm__timeline-grid {
    width: 100%;
    min-width: 0;
}

.eafc-gmm .eafc-gmm__timeline-axis-row,
.eafc-gmm .eafc-gmm__timeline-row {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    min-width: 0;
}

.eafc-gmm .eafc-gmm__timeline-axis-label,
.eafc-gmm .eafc-gmm__timeline-market {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 12px 14px;
    background: var(--eafc-gmm-color-surface);
    border-right: 1px solid var(--eafc-gmm-color-border);
}

.eafc-gmm .eafc-gmm__timeline-axis-label {
    display: flex;
    align-items: center;
    color: var(--eafc-gmm-color-text-muted);
    font-size: 15px;
    font-weight: 600;
}

.eafc-gmm .eafc-gmm__timeline-axis,
.eafc-gmm .eafc-gmm__timeline-lane {
    position: relative;
    min-width: 0;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(8.333333% - 1px),
        color-mix(in srgb, var(--eafc-gmm-color-border) 60%, transparent) calc(8.333333% - 1px),
        color-mix(in srgb, var(--eafc-gmm-color-border) 60%, transparent) 8.333333%
    );
}

.eafc-gmm .eafc-gmm__timeline-axis::after,
.eafc-gmm .eafc-gmm__timeline-lane::after {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 66.666667%;
    background: color-mix(in srgb, var(--eafc-gmm-color-info) 8%, transparent);
    content: '';
    pointer-events: none;
}

.eafc-gmm .eafc-gmm__timeline-axis {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    min-height: 42px;
    align-items: center;
}

.eafc-gmm .eafc-gmm__timeline-tick {
    position: relative;
    z-index: 2;
    padding-left: 5px;
    color: var(--eafc-gmm-color-text-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    white-space: nowrap;
}

.eafc-gmm .eafc-gmm__timeline-tick--next::after {
    display: block;
    color: var(--eafc-gmm-color-info);
    font-size: 12px;
    font-weight: 600;
    content: '翌日';
}

.eafc-gmm .eafc-gmm__timeline-row {
    min-height: 42px;
    border-top: 1px solid var(--eafc-gmm-color-border);
}

.eafc-gmm .eafc-gmm__timeline-details {
    min-width: 0;
    background: var(--eafc-gmm-color-surface);
    border-right: 1px solid var(--eafc-gmm-color-border);
}

.eafc-gmm .eafc-gmm__timeline-market {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 5px 10px;
    border-right: 0;
    cursor: pointer;
    list-style: none;
}

.eafc-gmm .eafc-gmm__timeline-market::-webkit-details-marker {
    display: none;
}

.eafc-gmm .eafc-gmm__timeline-market-label {
    display: flex;
    gap: 6px;
    min-width: 0;
    align-items: baseline;
    color: var(--eafc-gmm-color-text);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.eafc-gmm .eafc-gmm__timeline-market-label strong {
    flex: 0 0 auto;
    font-size: inherit;
}

.eafc-gmm .eafc-gmm__timeline-market-label span {
    overflow: hidden;
    color: var(--eafc-gmm-color-text-muted);
    text-overflow: ellipsis;
}

.eafc-gmm .eafc-gmm__timeline-detail-cue {
    color: var(--eafc-gmm-color-info);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.eafc-gmm .eafc-gmm__timeline-detail-cue::before {
    margin-right: 3px;
    content: '+';
}

.eafc-gmm .eafc-gmm__timeline-details[open] .eafc-gmm__timeline-detail-cue::before {
    content: '−';
}

.eafc-gmm .eafc-gmm__timeline-detail-panel {
    display: grid;
    gap: 5px;
    padding: 10px;
    border-top: 1px solid var(--eafc-gmm-color-border);
}

.eafc-gmm .eafc-gmm__timeline-detail-panel p {
    margin: 0;
}

.eafc-gmm .eafc-gmm__timeline-timezone {
    color: var(--eafc-gmm-color-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.eafc-gmm .eafc-gmm__timeline-mobile-primary {
    display: none;
}

.eafc-gmm .eafc-gmm__timeline-market strong {
    color: var(--eafc-gmm-color-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.eafc-gmm .eafc-gmm__timeline-market-name,
.eafc-gmm .eafc-gmm__timeline-local-hours,
.eafc-gmm .eafc-gmm__timeline-mobile-detail {
    margin-bottom: 0;
    color: var(--eafc-gmm-color-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.eafc-gmm .eafc-gmm__timeline-source {
    width: fit-content;
    font-size: 14px;
    font-weight: 600;
}

.eafc-gmm .eafc-gmm__timeline-lane {
    min-height: 42px;
    overflow: hidden;
}

.eafc-gmm .eafc-gmm__timeline-band {
    position: absolute;
    z-index: 2;
    min-width: 2px;
    height: 14px;
    border: 1px solid color-mix(in srgb, var(--eafc-gmm-color-text) 45%, transparent);
    border-radius: 4px;
}

.eafc-gmm .eafc-gmm__timeline-band--normal {
    top: 14px;
    background: var(--eafc-gmm-color-accent-strong);
}

.eafc-gmm .eafc-gmm__timeline-band--standard {
    top: 6px;
    background: var(--eafc-gmm-color-accent-strong);
}

.eafc-gmm .eafc-gmm__timeline-band--summer {
    top: 22px;
    background: var(--eafc-gmm-color-warning);
    border-style: dashed;
}

.eafc-gmm .eafc-gmm__timeline-current-line {
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--eafc-gmm-color-danger);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--eafc-gmm-color-bg) 55%, transparent);
    pointer-events: none;
}

.eafc-gmm .eafc-gmm__timeline-current-line::before {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--eafc-gmm-color-danger);
    border-radius: 50%;
    content: '';
    transform: translateX(-50%);
}

.eafc-gmm .eafc-gmm__timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 12px;
    margin: 0;
    background: var(--eafc-gmm-color-surface);
    border-top: 1px solid var(--eafc-gmm-color-border);
    list-style: none;
}

.eafc-gmm .eafc-gmm__timeline-legend li {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
    font-size: 13px;
}

.eafc-gmm .eafc-gmm__timeline-key {
    display: inline-block;
    width: 28px;
    height: 12px;
    border: 1px solid var(--eafc-gmm-color-border-strong);
    border-radius: 3px;
}

.eafc-gmm .eafc-gmm__timeline-key--standard {
    background: var(--eafc-gmm-color-accent-strong);
}

.eafc-gmm .eafc-gmm__timeline-key--summer {
    background: var(--eafc-gmm-color-warning);
    border-style: dashed;
}

.eafc-gmm .eafc-gmm__timeline-key--current {
    width: 2px;
    background: var(--eafc-gmm-color-danger);
    border: 0;
    border-radius: 0;
}

.eafc-gmm .eafc-gmm__timeline-key--next {
    background: color-mix(in srgb, var(--eafc-gmm-color-info) 14%, transparent);
}

.eafc-gmm .eafc-gmm__timeline-mobile-details {
    display: grid;
    gap: 4px;
}

.eafc-gmm .eafc-gmm__approval-card {
    padding: clamp(20px, 3vw, 32px);
    background: var(--eafc-gmm-color-surface);
    border: 1px solid var(--eafc-gmm-color-border-strong);
    border-radius: var(--eafc-gmm-radius-md);
}

.eafc-gmm .eafc-gmm__currency-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eafc-gmm-space-control);
    padding: 0;
    margin: var(--eafc-gmm-space-intro) 0;
    list-style: none;
}

.eafc-gmm .eafc-gmm__currency-list li {
    min-width: 64px;
    padding: 8px 12px;
    margin-bottom: 0;
    color: var(--eafc-gmm-color-text-muted);
    background: var(--eafc-gmm-color-surface-raised);
    border: 1px solid var(--eafc-gmm-color-border);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.eafc-gmm .eafc-gmm__strength-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.eafc-gmm .eafc-gmm__strength-periods button {
    min-width: 58px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--eafc-gmm-color-text-muted);
    background: var(--eafc-gmm-color-surface-raised);
    border: 1px solid var(--eafc-gmm-color-border);
    border-radius: var(--eafc-gmm-radius-sm);
    cursor: not-allowed;
    opacity: 1;
}

.eafc-gmm .eafc-gmm__strength-preview {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.eafc-gmm .eafc-gmm__strength-row {
    display: grid;
    grid-template-columns: 54px minmax(120px, 1fr) minmax(250px, auto);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    background: var(--eafc-gmm-color-surface-raised);
    border: 1px solid var(--eafc-gmm-color-border);
    border-radius: var(--eafc-gmm-radius-sm);
}

.eafc-gmm .eafc-gmm__strength-row > strong {
    font-variant-numeric: tabular-nums;
}

.eafc-gmm .eafc-gmm__strength-bar {
    display: block;
    height: 10px;
    background: var(--eafc-gmm-color-border-strong);
    border-radius: 999px;
}

.eafc-gmm .eafc-gmm__strength-row dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 8px;
    margin: 0;
}

.eafc-gmm .eafc-gmm__strength-row dl div,
.eafc-gmm .eafc-gmm__strength-quality div {
    min-width: 0;
}

.eafc-gmm .eafc-gmm__strength-row dt,
.eafc-gmm .eafc-gmm__strength-row dd,
.eafc-gmm .eafc-gmm__strength-quality dt,
.eafc-gmm .eafc-gmm__strength-quality dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.eafc-gmm .eafc-gmm__strength-row dt,
.eafc-gmm .eafc-gmm__strength-quality dt {
    color: var(--eafc-gmm-color-text-muted);
    font-weight: 600;
}

.eafc-gmm .eafc-gmm__strength-quality {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    margin: 18px 0;
    background: var(--eafc-gmm-color-widget-bg);
    border: 1px solid var(--eafc-gmm-color-border);
    border-radius: var(--eafc-gmm-radius-sm);
}

@media (max-width: 1023px) {
    .eafc-gmm .eafc-gmm__timeline-axis-row,
    .eafc-gmm .eafc-gmm__timeline-row {
        grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    }

    .eafc-gmm .eafc-gmm__timeline-tick:nth-child(even) {
        visibility: hidden;
    }

    .eafc-gmm .eafc-gmm__strength-quality {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .eafc-gmm .eafc-gmm__timeline-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scrollbar-gutter: stable;
    }

    .eafc-gmm .eafc-gmm__timeline-grid {
        width: 900px;
        min-width: 900px;
    }
}

@media (max-width: 767px) {
    .eafc-gmm .eafc-gmm__timeline-shell {
        overflow: visible;
        background: transparent;
        border: 0;
    }

    .eafc-gmm .eafc-gmm__timeline-scroll,
    .eafc-gmm .eafc-gmm__timeline-grid {
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .eafc-gmm .eafc-gmm__timeline-axis-row {
        display: none;
    }

    .eafc-gmm .eafc-gmm__timeline-row {
        display: block;
        min-height: 0;
        margin-bottom: 10px;
        border: 1px solid var(--eafc-gmm-color-border);
        border-radius: var(--eafc-gmm-radius-md);
    }

    .eafc-gmm .eafc-gmm__timeline-market {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 0;
        padding: 14px;
        border-right: 0;
        border-radius: var(--eafc-gmm-radius-md);
    }

    .eafc-gmm .eafc-gmm__timeline-details {
        border-right: 0;
        border-radius: inherit;
    }

    .eafc-gmm .eafc-gmm__timeline-market-label {
        display: grid;
        gap: 2px;
        font-size: 16px;
        line-height: 1.55;
        white-space: normal;
    }

    .eafc-gmm .eafc-gmm__timeline-market-label span {
        overflow: visible;
        text-overflow: clip;
    }

    .eafc-gmm .eafc-gmm__timeline-mobile-primary {
        display: grid;
        grid-column: 1 / -1;
        gap: 8px;
        justify-items: start;
    }

    .eafc-gmm .eafc-gmm__timeline-detail-cue {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        min-height: 44px;
        padding: 10px 0 10px 10px;
        font-size: 16px;
    }

    .eafc-gmm .eafc-gmm__timeline-detail-panel {
        gap: 8px;
        padding: 14px;
    }

    .eafc-gmm .eafc-gmm__timeline-market strong,
    .eafc-gmm .eafc-gmm__timeline-market-name,
    .eafc-gmm .eafc-gmm__timeline-local-hours,
    .eafc-gmm .eafc-gmm__timeline-mobile-detail,
    .eafc-gmm .eafc-gmm__timeline-source {
        font-size: 16px;
        line-height: 1.65;
    }

    .eafc-gmm .eafc-gmm__timeline-timezone {
        font-size: 16px;
        line-height: 1.65;
    }

    .eafc-gmm .eafc-gmm__timeline-lane {
        display: none;
    }

    .eafc-gmm .eafc-gmm__timeline-mobile-details {
        display: grid;
        gap: 6px;
    }

    .eafc-gmm .eafc-gmm__timeline-legend {
        padding: 14px 0;
        background: transparent;
        border-top: 0;
    }

    .eafc-gmm .eafc-gmm__timeline-legend li,
    .eafc-gmm .eafc-gmm__currency-list li {
        font-size: 16px;
    }

    .eafc-gmm .eafc-gmm__strength-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .eafc-gmm .eafc-gmm__strength-row dl {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .eafc-gmm .eafc-gmm__strength-quality {
        grid-template-columns: minmax(0, 1fr);
    }
}
