/* the settings page: every knob, in the same components as the rest of clockworks */
.settings { padding-top: 32px; padding-bottom: 56px; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.shead h1 { margin: 8px 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.shead .lede { font-size: 16px; margin: 0; max-width: 680px; }
.settings .who .mname { font-size: 18px; font-weight: 700; }
.settings .who .meta { font-size: 13px; color: var(--caption); }
.block { margin-bottom: 16px; }
.block h2 { font-size: 18px; margin-bottom: 6px; }
.block > .sub { margin: 0 0 16px; font-size: 14px; color: var(--caption); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--strong); min-width: 0; }
label.wide { margin-top: 16px; }
label small { font-weight: 400; color: var(--caption); font-size: 12px; line-height: 1.45; }
input[type="text"], input[type="url"], input[type="number"], input[type="password"], input[type="datetime-local"], select { height: 48px; border: 1px solid var(--input); border-radius: 12px; padding: 0 14px; font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--card); outline: 0; width: 100%; min-width: 0; }
input.mono { font-family: var(--mono); font-size: 13px; }
input:focus, select:focus { border-color: var(--strong); }
input[readonly] { background: var(--page); color: var(--caption); }
.pct { display: flex; align-items: center; border: 1px solid var(--input); border-radius: 12px; padding: 0 14px 0 0; background: var(--card); }
.pct input { border: 0; border-radius: 12px 0 0 12px; font-family: var(--mono); font-size: 16px; }
.pct i { font-style: normal; font-size: 12px; color: var(--caption); white-space: nowrap; padding-left: 8px; }
.pct.fixed { background: var(--page); }
.two { display: flex; gap: 8px; } .two input { font-family: var(--mono); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--input); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { height: 64px; border: 0; background: transparent; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--strong); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-right: 1px solid var(--divider); }
.seg button:last-child { border-right: 0; }
.seg button small { font-weight: 400; font-size: 12px; color: var(--caption); }
.seg button.on { background: var(--text); color: #fff; } .seg button.on small { color: #D9D6CD; }
.adv { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.toggle { display: flex; align-items: center; gap: 10px; height: 48px; font-weight: 500; color: var(--text); }
.toggle input { width: 44px; height: 26px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: var(--input); position: relative; cursor: pointer; margin: 0; flex-shrink: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked { background: var(--green); } .toggle input:checked::after { left: 21px; }
.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; margin-top: 12px; }
.bar { margin-top: 4px; }
.save .actions { margin-top: 12px; }
.msg { margin: 12px 0 0; font-size: 14px; color: var(--strong); } .msg.bad { color: var(--red); } .msg.ok { color: var(--green); }
.preview { margin-top: 12px; font-size: 13px; color: var(--caption); } .preview pre { white-space: pre-wrap; font-size: 12px; background: var(--muted); border: 1px solid var(--divider); border-radius: 10px; padding: 12px; overflow: auto; max-height: 360px; }
.sub.err { color: var(--red); }
@media (max-width: 960px) { .grid3, .grid4, .adv, .toggles { grid-template-columns: 1fr; } .seg { grid-template-columns: 1fr 1fr; } .seg button { border-bottom: 1px solid var(--divider); } }

/* a new machine: the launch facts, and what comes after the save */
#n-facts { margin-top: 12px; } #n-facts div { border: 1px solid var(--divider); border-radius: 10px; padding: 12px; } #n-facts b { display: block; font-family: var(--mono); font-weight: 500; font-size: 14px; margin-top: 4px; word-break: break-all; }
ol.setup.small { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--secondary); } ol.setup.small li { margin-bottom: 8px; } ol.setup.small b { color: var(--text); font-weight: 600; } ol.setup.small a { color: inherit; }
.next-steps { margin-top: 16px; border: 1px solid var(--green-border); background: var(--green-tint); border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.6; }
.next-steps h3 { margin: 0 0 8px; font-size: 15px; } .next-steps ol { margin: 0; padding-left: 20px; } .next-steps li { margin-bottom: 6px; } .next-steps a { color: inherit; font-weight: 600; }

/* quick setup: three bundles and a custom state */
.seg.presets button { height: auto; padding: 14px 14px 12px; align-items: flex-start; text-align: left; gap: 6px; }
.seg.presets button .t { font-size: 15px; font-weight: 600; }
.seg.presets button small { white-space: normal; line-height: 1.4; }
.seg.presets button:disabled { cursor: default; color: var(--caption); }
.seg.presets button.on:disabled { background: var(--muted); color: var(--text); }
#k-preset-note { margin-top: 10px; }
@media (max-width: 960px) { .seg.presets { grid-template-columns: 1fr; } }
