.overtime-page {
    --ot-ink: var(--h-navy);
    --ot-line: var(--h-gray-200);
    --ot-surface: var(--h-gray-50);
}

.overtime-page .overtime-kicker {
    margin: 0 0 var(--h-space-2);
    color: var(--h-blue);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.overtime-page .overtime-hero h1 {
    max-width: 650px;
}

/* Product form: deliberately close to the real module rather than a decorative dashboard. */
.overtime-form {
    overflow: hidden;
    border: 1px solid var(--ot-line);
    border-radius: 8px;
    background: var(--h-white);
    box-shadow: 0 22px 50px -34px rgba(16, 46, 86, .45);
}

.overtime-form > header,
.overtime-form > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.overtime-form > header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--ot-line);
    color: var(--ot-ink);
    font-size: .82rem;
    font-weight: 700;
}

.overtime-form > header small {
    color: var(--h-text-muted);
    font-weight: 500;
}

.overtime-form-body {
    padding: 18px;
}

.overtime-field,
.overtime-duration {
    display: block;
    min-width: 0;
}

.overtime-field > span,
.overtime-duration > span {
    display: block;
    margin-bottom: 5px;
    color: var(--h-text-muted);
    font-size: .66rem;
    font-weight: 700;
}

.overtime-field > strong {
    display: block;
    overflow: hidden;
    padding: 9px 10px;
    border: 1px solid var(--h-gray-300);
    border-radius: 4px;
    color: var(--ot-ink);
    font-size: .76rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overtime-field-date {
    width: calc(50% - 6px);
}

.overtime-form-times,
.overtime-form-row {
    display: grid;
    gap: 12px;
    margin-top: 13px;
}

.overtime-form-times {
    grid-template-columns: 1fr 1fr 1.35fr;
}

.overtime-form-row {
    grid-template-columns: 1fr 1fr;
}

.overtime-duration {
    padding: 9px 11px;
    border-left: 3px solid var(--h-blue);
    background: var(--h-blue-pale);
}

.overtime-duration > span {
    margin-bottom: 2px;
}

.overtime-duration > strong {
    color: var(--ot-ink);
    font-size: 1rem;
}

.overtime-field-comment {
    margin-top: 13px;
}

.overtime-field-comment > strong {
    color: var(--h-text-muted);
    font-weight: 500;
}

.overtime-form > footer {
    justify-content: flex-end;
    gap: 9px;
    padding: 12px 18px;
    border-top: 1px solid var(--ot-line);
    background: var(--ot-surface);
    font-size: .7rem;
}

.overtime-form > footer span,
.overtime-form > footer strong {
    padding: 7px 11px;
    border-radius: 4px;
}

.overtime-form > footer span {
    border: 1px solid var(--h-gray-300);
    color: var(--h-text-muted);
}

.overtime-form > footer strong {
    background: var(--h-blue);
    color: var(--h-white);
}

.overtime-process {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: start;
    padding: clamp(36px, 5vw, 64px);
    border: 1px solid var(--ot-line);
    background: var(--h-white);
}

.overtime-process-intro h2 {
    max-width: 480px;
    margin: 0 0 var(--h-space-4);
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    line-height: 1.2;
}

.overtime-process-intro > p:last-child {
    max-width: 470px;
    margin: 0;
    color: var(--h-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.overtime-process-list article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--h-space-5);
    align-items: start;
    position: relative;
    padding-bottom: var(--h-space-7);
}

.overtime-process-list article:not(:last-child)::after {
    position: absolute;
    top: 36px;
    bottom: 7px;
    left: 17px;
    width: 1px;
    background: var(--h-blue-mid);
    content: "";
}

.overtime-process-list article:last-child {
    padding-bottom: 0;
}

.overtime-step {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--h-blue-mid);
    border-radius: 50%;
    background: var(--h-blue-pale);
    color: var(--h-blue);
    font-family: var(--h-font-body);
    font-size: .875rem;
    font-weight: 800;
}

.overtime-process-list h3 {
    margin: 4px 0 var(--h-space-2);
    font-family: var(--h-font-body);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.overtime-process-list p {
    margin: 0;
    color: var(--h-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.overtime-step-context {
    display: flex;
    align-items: center;
    gap: var(--h-space-2);
    margin-top: var(--h-space-3);
    color: var(--h-navy);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
}

.overtime-step-context ion-icon {
    flex: 0 0 auto;
    color: var(--h-blue);
    font-size: 17px;
}

.overtime-control {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
    padding: clamp(32px, 5vw, 64px);
    background: var(--ot-surface);
}

.overtime-control-copy h2 {
    margin-bottom: var(--h-space-3);
    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.overtime-control-copy > p:not(.overtime-kicker) {
    color: var(--h-text-muted);
    line-height: 1.7;
}

.overtime-control-copy ul {
    display: grid;
    gap: 12px;
    margin: var(--h-space-6) 0 0;
    padding: 0;
    list-style: none;
}

.overtime-control-copy li {
    display: flex;
    gap: 10px;
    color: var(--h-text-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.overtime-control-copy li ion-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--h-blue);
    font-size: 18px;
}

.overtime-control-copy li strong {
    color: var(--ot-ink);
}

.overtime-settings {
    overflow: hidden;
    border: 1px solid var(--ot-line);
    border-radius: 6px;
    background: var(--h-white);
}

.overtime-settings > header {
    padding: 15px 17px;
    border-bottom: 1px solid var(--ot-line);
    color: var(--ot-ink);
    font-size: .8rem;
    font-weight: 700;
}

.overtime-setting {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 17px;
    border-bottom: 1px solid var(--h-gray-100);
}

.overtime-setting > i {
    position: relative;
    width: 30px;
    height: 17px;
    border-radius: 20px;
    background: var(--h-gray-300);
}

.overtime-setting > i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--h-white);
    content: "";
}

.overtime-setting.is-on > i {
    background: var(--h-blue);
}

.overtime-setting.is-on > i::after {
    left: 16px;
}

.overtime-setting strong,
.overtime-setting small {
    display: block;
}

.overtime-setting strong {
    color: var(--ot-ink);
    font-size: .75rem;
}

.overtime-setting small {
    margin-top: 2px;
    color: var(--h-text-muted);
    font-size: .65rem;
}

.overtime-setting-limit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    color: var(--h-text-muted);
    font-size: .7rem;
}

.overtime-setting-limit strong {
    padding: 6px 10px;
    border: 1px solid var(--h-gray-300);
    border-radius: 4px;
    color: var(--ot-ink);
}

.overtime-trace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: end;
    padding-left: var(--h-space-7);
    border-left: 4px solid var(--h-blue);
}

.overtime-trace h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.overtime-trace > p {
    margin: 0;
    color: var(--h-text-muted);
    line-height: 1.75;
}

@media (max-width: 767px) {
    .overtime-process,
    .overtime-control,
    .overtime-trace {
        grid-template-columns: 1fr;
    }

    .overtime-process {
        gap: var(--h-space-8);
        padding: var(--h-space-7) var(--h-space-5);
    }

    .overtime-control {
        padding: var(--h-space-7) var(--h-space-5);
    }

    .overtime-form-times {
        grid-template-columns: 1fr 1fr;
    }

    .overtime-duration {
        grid-column: 1 / -1;
    }

    .overtime-field-date {
        width: 100%;
    }
}
