.tool-card-mark.workday,
.workspace-mark.workday {
    color: #9a3412;
    background: linear-gradient(145deg, #ffedd5, #fed7aa);
}

.workday-calculator {
    display: grid;
    gap: 18px;
}

.workday-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, .92), transparent 28%),
        linear-gradient(135deg, #fff7ed 0%, #fff 58%, #fffbeb 100%);
    box-shadow: 0 14px 34px rgba(154, 52, 18, .07);
}

.workday-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.workday-intro h2 {
    margin: 0;
    color: #1f2937;
    font-size: 23px;
    line-height: 1.4;
}

.workday-intro p {
    max-width: 760px;
    margin: 9px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.workday-local-badge {
    display: grid;
    flex: 0 0 auto;
    gap: 3px;
    min-width: 116px;
    padding: 13px 15px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    color: #166534;
    background: rgba(240, 253, 244, .9);
    text-align: center;
}

.workday-local-badge b { font-size: 14px; }
.workday-local-badge small { font-size: 12px; }

.workday-form,
.workday-result,
.workday-source-note {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
}

.workday-form { padding: 22px; }

.workday-date-grid,
.workday-alternating-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.workday-date-grid label,
.workday-alternating-settings label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.workday-date-grid label > span b { color: #dc2626; }

.workday-date-grid input,
.workday-alternating-settings input,
.workday-alternating-settings select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    color: #0f172a;
    background: #fff;
    font: inherit;
}

.workday-date-grid input:focus,
.workday-alternating-settings input:focus,
.workday-alternating-settings select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

.workday-alternating-settings small {
    color: #64748b;
    font-weight: 400;
    line-height: 1.5;
}

.workday-schedule-fieldset {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.workday-schedule-fieldset legend {
    margin-bottom: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.workday-schedule-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.workday-schedule-option {
    position: relative;
    cursor: pointer;
}

.workday-schedule-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.workday-schedule-option span {
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 14px 15px;
    border: 1px solid #dbe3ec;
    border-radius: 13px;
    color: #475569;
    background: #f8fafc;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.workday-schedule-option span b {
    color: #1e293b;
    font-size: 15px;
}

.workday-schedule-option span small {
    font-size: 12px;
    line-height: 1.5;
}

.workday-schedule-option input:checked + span {
    border-color: #fb923c;
    color: #9a3412;
    background: #fff7ed;
    box-shadow: 0 0 0 2px rgba(251, 146, 60, .12);
}

.workday-schedule-option input:focus-visible + span {
    outline: 3px solid rgba(249, 115, 22, .22);
    outline-offset: 2px;
}

.workday-alternating-settings {
    margin-top: 13px;
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #fffaf5;
}

.workday-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
}

.workday-rules label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.workday-rules input {
    width: 16px;
    height: 16px;
    accent-color: #ea580c;
}

.workday-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
}

.workday-actions > span {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
}

.workday-error,
.workday-warning {
    margin: 14px 0 0;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    color: #b91c1c;
    background: #fef2f2;
    font-size: 13px;
    line-height: 1.6;
}

.workday-result { padding: 22px; }

.workday-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.workday-result-heading > div > span {
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.workday-result-heading h3 {
    margin: 5px 0 3px;
    color: #0f172a;
    font-size: 24px;
}

.workday-result-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.workday-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.workday-summary-grid article {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 8px;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #64748b;
    background: #f8fafc;
}

.workday-summary-grid article.primary {
    border-color: #fdba74;
    color: #9a3412;
    background: #fff7ed;
}

.workday-summary-grid small {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 700;
}

.workday-summary-grid strong {
    color: #0f172a;
    font-size: 29px;
    line-height: 1;
}

.workday-summary-grid article.primary strong { color: #c2410c; }
.workday-summary-grid span { font-size: 12px; }

.workday-warning {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.workday-breakdown-grid {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(480px, 1.28fr);
    gap: 16px;
    margin-top: 18px;
}

.workday-breakdown-grid > section {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.workday-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.workday-section-heading h3 {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
}

.workday-section-heading small {
    color: #64748b;
    font-size: 11px;
}

.workday-table-wrap {
    overflow: auto;
}

.workday-detail-wrap { max-height: 440px; }

.workday-table {
    width: 100%;
    border-collapse: collapse;
    color: #475569;
    font-size: 12px;
}

.workday-table th,
.workday-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    white-space: nowrap;
}

.workday-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #334155;
    background: #fff;
    font-weight: 800;
}

.workday-table tr:last-child td { border-bottom: 0; }

.workday-status {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-weight: 800;
}

.workday-status.rest {
    color: #64748b;
    background: #e2e8f0;
}

.workday-status.adjusted {
    color: #9a3412;
    background: #ffedd5;
}

.workday-source-note {
    padding: 14px 17px;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.workday-source-note summary {
    color: #334155;
    font-weight: 800;
    cursor: pointer;
}

.workday-source-note p { margin: 9px 0 0; }
.workday-source-note a { color: #c2410c; }

@media (max-width: 960px) {
    .workday-breakdown-grid { grid-template-columns: 1fr; }
    .workday-detail-wrap { max-height: 390px; }
}

@media (max-width: 720px) {
    .workday-intro {
        align-items: flex-start;
        padding: 20px;
    }
    .workday-local-badge { display: none; }
    .workday-intro h2 { font-size: 20px; }
    .workday-form,
    .workday-result { padding: 16px; }
    .workday-date-grid,
    .workday-alternating-settings,
    .workday-schedule-options { grid-template-columns: 1fr; }
    .workday-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workday-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .workday-actions > span {
        margin-left: 0;
        text-align: left;
    }
    .workday-result-heading { align-items: flex-start; }
}

@media (max-width: 460px) {
    .workday-intro { padding: 17px; }
    .workday-summary-grid { grid-template-columns: 1fr 1fr; }
    .workday-summary-grid article { padding: 14px; }
    .workday-result-heading { flex-direction: column; }
    .workday-result-heading button { width: 100%; }
}
