/* Figma input segments: keep native radios, values and recalculation hooks. */
#s .game-wrapper.ui-flat-v2 .binary-segmented,
#s .game-wrapper.ui-flat-v2 .numeric-segmented {
    display: inline-flex; width: max-content; max-width: 100%; padding: 2px;
    background: #f2f4f7; border: 0; border-radius: 8px; gap: 0;
    vertical-align: middle; box-sizing: border-box;
}
#s .game-wrapper.ui-flat-v2 .numeric-segmented {
    display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
    background: #e5e5ea;
}
#s .game-wrapper.ui-flat-v2 .binary-option,
#s .game-wrapper.ui-flat-v2 .numeric-option { position: relative; flex: 0 1 auto; min-width: 0; }
#s .game-wrapper.ui-flat-v2 .binary-option input,
#s .game-wrapper.ui-flat-v2 .numeric-option input {
    position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0;
}
#s .game-wrapper.ui-flat-v2 .binary-option label,
#s .game-wrapper.ui-flat-v2 .numeric-option label {
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin: 0; padding: 6px 20px; box-sizing: border-box;
    border: 0; border-radius: 7px; background: transparent; box-shadow: none;
    color: #8b929e; font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px; font-weight: 500; font-style: normal;
    line-height: 19.5px; text-shadow: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
#s .game-wrapper.ui-flat-v2 .numeric-option label { padding-right: 16px; padding-left: 16px; }
#s .game-wrapper.ui-flat-v2 .binary-option label::before,
#s .game-wrapper.ui-flat-v2 .binary-option label::after,
#s .game-wrapper.ui-flat-v2 .numeric-option label::before,
#s .game-wrapper.ui-flat-v2 .numeric-option label::after { content: none; display: none; }
#s .game-wrapper.ui-flat-v2 .binary-option input:checked + label,
#s .game-wrapper.ui-flat-v2 .numeric-option input:checked + label {
    background: #fff; color: #0d1117; box-shadow: inset 0 0 0 1px #e5e8ee;
}
#s .game-wrapper.ui-flat-v2 .binary-option input:focus-visible + label,
#s .game-wrapper.ui-flat-v2 .numeric-option input:focus-visible + label { outline: 2px solid #1c5ed6; outline-offset: 2px; }
#s .game-wrapper.ui-flat-v2 .binary-option input:not(:disabled):not(:checked) + label:hover,
#s .game-wrapper.ui-flat-v2 .numeric-option input:not(:disabled):not(:checked) + label:hover { background: #e5e8ee; color: #0d1117; }
#s .game-wrapper.ui-flat-v2 .binary-option input:not(:disabled) + label:active,
#s .game-wrapper.ui-flat-v2 .numeric-option input:not(:disabled) + label:active { background: #e5e8ee; }
#s .game-wrapper.ui-flat-v2 .binary-option input:disabled + label,
#s .game-wrapper.ui-flat-v2 .numeric-option input:disabled + label { cursor: not-allowed; }
/* Figma 5029:1678; retain the user's equal-width option requirement. */
#s .game-wrapper.ui-flat-v2 .numeric-segmented .numeric-option label {
    padding: 6px 16px; border-radius: 8px; color: rgba(60, 60, 67, .6);
    font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: -.247px;
    background: transparent; box-shadow: none;
}
#s .game-wrapper.ui-flat-v2 .numeric-segmented .numeric-option input:checked + label {
    background: #fff; color: #000; box-shadow: none;
}
#s .game-wrapper.ui-flat-v2 .choice-segmented { grid-auto-columns: minmax(0, 1fr); }
#s .game-wrapper.ui-flat-v2 .choice-segmented .numeric-option label { white-space: normal; overflow-wrap: break-word; }
/* Yes/no reference: gray track, white No, cyan Yes. Numeric levels stay separate. */
#s .game-wrapper.ui-flat-v2 .binary-segmented {
    width: 10.4rem; padding: 3px; gap: 0; border-radius: 8px; background: #e5e5ea;
}
#s .game-wrapper.ui-flat-v2 .binary-segmented .binary-option { flex: 1 1 0; }
#s .game-wrapper.ui-flat-v2 .binary-segmented .binary-option label {
    height: 30px; min-height: 30px; padding: 0 12px; border-radius: 7px;
    background: transparent; color: #8e8e93; box-shadow: none; font-size: 13px; line-height: 1;
}
#s .game-wrapper.ui-flat-v2 .binary-segmented .binary-option input[value="0"]:checked + label {
    background: #fff; color: #1e1e1e; box-shadow: none;
}
#s .game-wrapper.ui-flat-v2 .binary-segmented .binary-option input[value="1"]:checked + label {
    background: #50b5cb; color: #fff; box-shadow: none;
}
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .form-padding { padding: 2.8rem 3rem; }
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .form-group { margin: 0 0 4rem; }
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .form-group > label {
    display: block; color: #00507b; font-size: 2rem; font-weight: 600; margin: 0 0 2rem;
    padding: 0; background: none; box-shadow: none; text-shadow: none;
}
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .help-block { color: #8e8e93; font-size: 1.3rem; line-height: 1.8; margin-top: 1.8rem; }
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .help-block br + br { display: none; }
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .bootstrap-touchspin { display: flex; align-items: center; gap: .8rem; width: max-content; }
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .input-group-btn { display: block; width: auto; }
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .btn-touchspin {
    width: 4.4rem; height: 4.8rem; padding: 0; margin: 0; border: 0; border-radius: 1rem;
    background: #fff; color: #50b5cb; font-size: 2.8rem; line-height: 4.8rem; box-shadow: none; text-shadow: none;
}
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .btn-touchspin::before,
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .btn-touchspin::after { content: none; display: none; }
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .bootstrap-touchspin input {
    width: 6.8rem; height: 4.8rem; border: 1px solid #fff; border-radius: 1rem;
    background: #e5e5ea; color: #1e1e1e; box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    text-align: center; font-size: 1.8rem; padding: .5rem;
}
#s .game-wrapper.ui-flat-v2 .cityhall-projects-panel .btn-touchspin:disabled { color: #c7c7cc; cursor: not-allowed; }
