/* Trading Session Converter: styles specific to this tool.
   Shared layout classes (ps-*) come from consistency-rule-calculator.css.
   Colours below adapt to the existing theme through currentColor / rgba;
   change the three accent variables if you want exact brand colours. */

.ps-page {
    --sc-lon: #4f8cff;
    --sc-ny: #f5a524;
    --sc-ov: #2ecc8f;
    --sc-line: rgba(128, 128, 128, .28);
    --sc-bg: rgba(128, 128, 128, .08);
}

/* select + time inputs match the other fields */
.sc-select,
.sc-hours input[type="time"],
#date {
    width: 100%;
    font: inherit;
    color: inherit;
    background: var(--sc-bg);
    border: 1px solid var(--sc-line);
    border-radius: 10px;
    padding: 11px 12px;
    min-height: 44px;
    box-sizing: border-box;
    color-scheme: light dark;
}

.sc-select option { color: #111; background: #fff; }

/* live clock block */
.sc-now {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 18px 0 6px;
    padding: 14px 16px;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    background: var(--sc-bg);
}
.sc-now-label { font-size: .8rem; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.sc-now strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.sc-now-zone { font-size: .85rem; opacity: .7; }

/* session hours editor */
.sc-hours { display: grid; gap: 10px; margin: 8px 0 14px; }
.sc-hours-row {
    display: grid;
    grid-template-columns: 82px 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}
.sc-hours-name { font-weight: 600; }

/* session cards */
.sc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.sc-card {
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    padding: 14px;
    background: var(--sc-bg);
    min-width: 0;
}
.sc-card.is-open { border-color: var(--sc-ov); box-shadow: 0 0 0 1px var(--sc-ov) inset; }
.sc-card { border-top: 3px solid var(--c, var(--sc-line)); }
.sc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sc-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--sc-line);
    white-space: nowrap;
}
.sc-badge.open { background: var(--sc-ov); border-color: var(--sc-ov); color: #04130c; }
.sc-badge.closed { opacity: .75; }
.sc-time { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.35; }
.sc-time i { font-style: normal; opacity: .55; margin: 0 2px; }
.sc-sub { font-size: .8rem; opacity: .7; margin-top: 6px; }
.sc-day { font-size: .62em; font-weight: 700; color: var(--sc-ny); margin-left: 2px; white-space: nowrap; }

/* overlap highlight */
.sc-overlap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid var(--sc-ov);
    background: rgba(46, 204, 143, .1);
}
.sc-overlap span { font-size: .85rem; opacity: .85; }
.sc-overlap strong { font-variant-numeric: tabular-nums; }

/* 24h timeline */
.sc-tl { margin: 4px 0 18px; }
.sc-lane { display: grid; grid-template-columns: 38px 1fr; gap: 8px; align-items: center; margin-bottom: 7px; }
.sc-lane-name { font-size: .72rem; font-weight: 700; opacity: .7; }
.sc-track {
    position: relative;
    height: 16px;
    border-radius: 6px;
    background: var(--sc-bg);
    border: 1px solid var(--sc-line);
    overflow: hidden;
}
.sc-seg { position: absolute; top: 0; bottom: 0; }
.sc-seg.lon { background: var(--sc-lon); }
.sc-seg.ny { background: var(--sc-ny); }
.sc-seg.ov { background: var(--sc-ov); }
.sc-nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4d5e; z-index: 2; }
.sc-axis { position: relative; height: 18px; margin-left: 46px; font-size: .7rem; opacity: .65; }
.sc-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sc-axis span:first-child { transform: none; }
.sc-axis span:last-child { transform: translateX(-100%); }

@media (max-width: 560px) {
    .sc-cards { grid-template-columns: 1fr; }
    .sc-hours-row { grid-template-columns: 70px 1fr auto 1fr; }
}

/* overlap list + wider lane labels for four sessions */
.sc-ovlist { margin-bottom: 16px; }
.sc-overlap em { font-style: normal; opacity: .7; }
.sc-lane { grid-template-columns: 52px 1fr; }
.sc-lane-name { font-size: .62rem; }
.sc-axis { margin-left: 60px; }