body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f7f7f7;
}

.container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 10px;
}

.calculator, .references {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

.isd-form {
    display: grid;
    gap: 18px;
}

.calculator input {
    width: calc(100% - 22px); /* Adjust for border and padding */
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    -moz-appearance: textfield;
}

.container input,
.container select,
.container textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
}

.case-picker-card {
    padding: 18px 20px 20px;
    border-radius: 16px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(145deg, #0b2a4a 0%, #163a64 58%, #245a8d 100%);
    color: #eff6ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.case-picker-kicker,
.case-input-kicker {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-picker-kicker {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #dbeafe;
}

.case-picker-title,
.case-input-title {
    margin: 12px 0 6px;
    text-align: left;
    font-size: 24px;
}

.case-picker-copy,
.case-input-copy {
    margin: 0 0 16px;
    line-height: 1.5;
}

.case-picker-copy {
    color: #dbeafe;
}

.case-picker-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #f8fafc;
}

.case-picker-card select {
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(191, 219, 254, 0.55);
    border-radius: 12px;
    background: rgba(248,250,252,0.98);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15,23,42,0.14);
}

.case-input-card {
    padding: 18px 20px 20px;
    border-radius: 16px;
    border: 1px solid #d7dee8;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.case-input-kicker {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

.case-input-copy {
    color: #475569;
}

.case-input-placeholder {
    display: block;
    margin-top: 4px;
    padding: 18px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-align: center;
}

.case-b-maneuver-group {
    margin: 6px 0 14px;
    padding: 14px;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    background: #f8fafc;
}

.case-b-maneuver-label {
    margin-bottom: 4px;
}

.case-b-maneuver-copy {
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.case-b-maneuver-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.case-b-maneuver-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.case-b-maneuver-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.case-b-maneuver-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    flex: 0 0 auto;
}

.case-b-maneuver-arrow {
    width: 28px;
    height: 28px;
}

.case-b-maneuver-arrow path,
.case-b-maneuver-arrow circle {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.25;
}

.case-b-maneuver-option-left .case-b-maneuver-visual {
    border-color: #93c5fd;
    background: #eff6ff;
}

.case-b-maneuver-option-left .case-b-maneuver-arrow path,
.case-b-maneuver-option-left .case-b-maneuver-arrow circle {
    stroke: #2563eb;
}

.case-b-maneuver-option-right .case-b-maneuver-visual {
    border-color: #86efac;
    background: #f0fdf4;
}

.case-b-maneuver-option-right .case-b-maneuver-arrow path,
.case-b-maneuver-option-right .case-b-maneuver-arrow circle {
    stroke: #16a34a;
}

.case-b-maneuver-option-crossing .case-b-maneuver-visual {
    border-color: #fcd34d;
    background: #fffbeb;
}

.case-b-maneuver-option-crossing .case-b-maneuver-arrow path,
.case-b-maneuver-option-crossing .case-b-maneuver-arrow circle {
    stroke: #d97706;
}

.case-b-maneuver-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-b-maneuver-title {
    display: block;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.case-b-maneuver-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
}

.case-b-maneuver-option:has(input[type="checkbox"]:checked) {
    border-color: #1d4ed8;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12);
}

.case-b-geometry-group {
    margin: 6px 0 14px;
    padding: 14px;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    background: #f8fafc;
}

.case-b-geometry-label {
    margin-bottom: 4px;
}

.case-b-geometry-panel {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
}

.case-b-width-help {
    margin: -2px 0 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.case-b-inline-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 10px;
    font-weight: 600;
    color: #0f172a;
}

.case-b-inline-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
}

#dynamicInputs:not(.case-input-placeholder) {
    margin-top: 4px;
}

#dynamicInputs label {
    display: block;
    font-weight: 700;
    color: #0b2a4a;
}

#dynamicInputs note,
#dynamicInputs normal {
    display: block;
}

.calculator input[type=number]::-webkit-outer-spin-button,
.calculator input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.speed-buttons, .work-speed-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.calculator-lede {
    text-align: center;
    color: #475569;
    margin-bottom: 5px;
}

.isd-lede,
.isd-lede-detail {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.isd-lede {
    margin-top: 8px;
}

.isd-lede-detail {
    margin-bottom: 18px;
}

.tool-category-label {
    width: fit-content;
    margin: 0 auto 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e7f3fe;
    border: 1px solid #c7ddf7;
    color: #0b2a4a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mode-toggle {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d4d7dd;
    border-radius: 999px;
    padding: 6px;
    background: #f1f5f9;
    margin: 16px auto 18px;
}

.mode-button {
    border: none;
    background: transparent;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
}

.mode-button.active {
    background: #0b2a4a;
    color: #fff;
}

.calculator-panel + .calculator-panel {
    margin-top: 24px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 8px 0 6px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #0b2a4a;
    margin-bottom: 4px;
}

.sight-distance-form .sight-type-group {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    background: #f8fbff;
}

.sight-distance-form .sight-type-group legend {
    padding: 0 8px;
    font-weight: 700;
    color: #0b2a4a;
}

.sight-distance-form .sight-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sight-distance-form .sight-type-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 16px;
    margin-bottom: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.sight-distance-form .sight-type-option input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.sight-distance-form .sight-type-option span {
    display: block;
    line-height: 1.35;
}

.sight-distance-form .sight-type-option-wide {
    grid-column: 1 / -1;
}

.sight-distance-form .sight-type-option:has(input[type="radio"]:checked) {
    border-color: #1d4ed8;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12);
}

.curve-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 16px;
}

.curve-mode-button {
    flex: 1 1 240px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #0b2a4a;
    font-weight: 700;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.curve-mode-button.active {
    background: #0b2a4a;
    border-color: #0b2a4a;
    color: #fff;
}

.curve-panel.hidden {
    display: none;
}

.curve-helper-note {
    margin-top: 8px;
    margin-bottom: 16px;
}

.curve-helper-note p {
    margin: 0;
}

.inverse-steps {
    margin-top: 20px;
}

.inverse-steps h3 {
    margin: 0 0 12px;
    text-align: left;
    color: #0b2a4a;
}

.inverse-step-viewer {
    padding: 18px;
    border: 1px solid #d7dee8;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.inverse-step-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.inverse-step-nav {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0b2a4a;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
}

.inverse-step-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.inverse-step-counter {
    margin: 0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.inverse-step-stage {
    margin: 0;
}

.inverse-step-image {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #d7dee8;
    background: #fff;
    margin-bottom: 12px;
}

.inverse-step-caption {
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}

.equation-card {
    min-width: 260px;
    flex: 1 1 280px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #d7dee8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.equation-card h3 {
    margin: 0 0 8px;
    text-align: left;
}

.equation-condition {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.equation-math {
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #0f172a;
}

.equation-math math {
    display: block;
    width: 100%;
}

.equation-math math[display="block"] {
    margin: 0;
}

.speed-button {
    width: calc(50% - 10px);
    padding: 10px;
    margin: 5px 0;
    background: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.speed-button:hover, .speed-button.selected {
    background: #0056b3;
}

.work-speed {
    background: #ffecd1;
    color: #000;
}

.work-speed:hover, .work-speed.selected {
    background: #e6c48f; /* Darker shade of peach for hover and selected state */
    color: #000; /* Keep text color black for visibility */
}

.calculate-button {
    width: 100%;
    padding: 10px;
    background: #28a745;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.calculate-button:hover {
    background: #218838;
}

.result, .formula, .formula-details, .note {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.case-results,
.case-b-results {
    display: grid;
    gap: 14px;
    font-size: 16px;
    font-weight: 400;
    color: #0f172a;
}

.result-summary-title {
    font-size: 20px;
    font-weight: 800;
    color: #0b2a4a;
}

.result-section {
    border: 1px solid #d7dee8;
    border-radius: 12px;
    padding: 14px 16px;
    background: #f8fafc;
}

.result-section-primary {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

.result-section-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0b2a4a;
}

.result-metric-grid {
    display: grid;
    gap: 10px;
}

.result-metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.result-metric:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.result-metric-label {
    font-weight: 600;
    color: #334155;
}

.result-metric-value {
    font-weight: 800;
    color: #0f172a;
    text-align: right;
    white-space: nowrap;
}

.result-metric-value-stacked {
    white-space: normal;
}

.result-metric-value-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.result-metric-value-line {
    display: block;
}

.result-metric-value-design {
    color: #1d4ed8;
    font-size: 0.94em;
}

.result-metric-value-primary {
    color: #1d4ed8;
}

.result-section-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.formula, .formula-details {
    background-color: #e7f3fe;
    border-left: 6px solid #2196f3;
    border-radius: 4px;
    padding: 10px;
}

.note {
    font-size: 14px;
    text-align: center;
}

.content {
    padding: 16px 0;
}

#output {
    margin-top: 16px;
    padding: 16px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.highlight {
    background-color: #fffd8a;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
}

#chart-container {
    width: 50%;
    min-width: 260px;
}

h1, h2 {
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.table-container {
    margin-bottom: 20px;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th, .table-container td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table-container th {
    background-color: #f2f2f2;
}

.drawing-container {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

#sight-triangle,
#roundabout-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
}

.work-zone-speed {
    background: #ffecd1; /* Light peach background for normal state */
    color: #000; /* Black text for contrast */
}

.hidden {
    display: none;
}

.label-with-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    outline: none;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #475569;
    border-radius: 999px;
    background: #fff;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.tooltip-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(440px, 85vw);
    padding: 12px 14px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
}

.tooltip-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.info-tooltip:hover .tooltip-bubble,
.info-tooltip:focus-within .tooltip-bubble,
.info-tooltip:focus .tooltip-bubble {
    opacity: 1;
    visibility: visible;
}

.site-header {
    width: min(100%, 1100px);
    margin: 0 auto 26px;
    padding: 32px 32px 28px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.85));
    border-radius: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
}

.site-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.8);
    margin: 0;
}

.site-identity h1 {
    margin: 0;
    font-size: 30px;
    color: #fff;
}

.site-tagline {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 15px;
}

.site-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
    background: rgba(248, 250, 252, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.slider {
    width: 100%;
}

footer {
    max-width: 920px;
    margin: 40px auto 0;
    padding: 20px 10px;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    background: transparent;
}

.external-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.external-links h2 {
    margin: 0 0 4px;
}

@media (max-width: 600px) {
    .site-header {
        padding: 18px 20px;
        margin: 12px auto 18px;
    }
    .site-identity h1 {
        font-size: 22px;
    }
    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }
    .site-nav a {
        padding: 8px 14px;
    }
    .speed-button, .work-speed {
        width: 100%;
        margin: 5px 0;
    }
    .calculate-button {
        font-size: 14px;
    }
    .result, .formula, .formula-details, .note {
        font-size: 14px;
    }
    .case-picker-card,
    .case-input-card {
        padding: 16px;
    }
    .case-picker-title,
    .case-input-title {
        font-size: 20px;
    }
    .case-results,
    .case-b-results {
        font-size: 14px;
    }
    .result-summary-title {
        font-size: 18px;
    }
    .result-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .result-metric-value {
        text-align: left;
        white-space: normal;
    }
    .result-metric-value-stack {
        align-items: flex-start;
    }
    th, td {
        font-size: 14px;
    }
    h1, h2 {
        font-size: 20px;
    }
    #output {
        flex-direction: column;
    }
    #chart-container {
        width: 100%;
    }
    .sight-distance-form .sight-type-options {
        grid-template-columns: 1fr;
    }
    .sight-distance-form .sight-type-option-wide {
        grid-column: auto;
    }
    .curve-mode-toggle {
        flex-direction: column;
    }
    .curve-mode-button {
        width: 100%;
    }
    .inverse-step-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .inverse-step-counter {
        text-align: center;
    }
    .equation-card {
        width: 100%;
    }
}

#speedDialog {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

#speedDialogContent {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border-radius: 10px;
}

#speedDialogContent button {
    width: 100px;
    padding: 10px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

#speedDialogContent button#keep40 {
    background: #007bff;
    color: #fff;
}

#speedDialogContent button#use45 {
    background: #28a745;
    color: #fff;
}

.mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 6px;
}

.mode-label {
    font-weight: 600;
    color: #0b2a4a;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dbeafe;
    transition: 0.3s;
    border-radius: 34px;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.25);
}

.switch-toggle input:checked + .toggle-slider {
    background-color: #0b2a4a;
    box-shadow: inset 0 0 0 1px #0b2a4a;
}

.switch-toggle input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.mode-panel {
    margin-top: 14px;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

#sign-placement-table {
    width: 100%;
    border-collapse: collapse;
}

#sign-placement-table th,
#sign-placement-table td {
    text-align: center;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

#sign-placement-table thead th {
    background: #f1f5f9;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.condition-a-cell {
    background: #fffbea;
    font-weight: 700;
}

.table-highlight-row {
    background: #f8fafc;
}

.table-highlight-col {
    background: #eef2ff;
}

.table-highlight-cell {
    background: #fffd8a;
    font-weight: 800;
}

.table-highlight-row .condition-a-cell {
    background: #fffbea;
}

#table-context {
    text-align: left;
    font-weight: 400;
}
