/* Compact sleep flow, integrated with the original night control */
.sf-root{margin:14px 0 22px;padding:20px 22px 22px;border:1px solid #273341;border-radius:19px;background:radial-gradient(ellipse at 95% 0%,rgba(133,117,250,.11),transparent 50%),#0c1119;color:#e9ecf5}
.sf-root *{box-sizing:border-box}
.sf-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #27303c;padding-bottom:15px;margin-bottom:14px}
.sf-head h2{font-size:clamp(21px,2.8vw,29px);line-height:1.2;margin:3px 0 5px;letter-spacing:-.045em}
.sf-head p{font-size:12px;line-height:1.6;margin:0;color:#a6b0bd;max-width:580px}
.sf-kicker{font-size:10px;letter-spacing:.17em;color:#9c92ef;font-weight:800}
.sf-moon{font-size:45px;color:#aaa2ff;line-height:1}
.sf-add{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 7px}
.sf-add>button{border:0;background:none;color:#b9c8e5;font-size:12px;font-weight:700;padding:8px 0;cursor:pointer}
.sf-add>button:hover,.sf-link:hover{color:#fff}
.sf-add>button:first-child{color:#9ed6d3}
.sf-add>button:nth-child(2){color:#f1bf85}
.sf-add .sf-link{margin-left:auto;color:#8a93a1}
.sf-item{padding:13px 0 17px;border-top:1px solid #27303b;background:none}
.sf-item-top,.sf-item-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center}
.sf-item-top{margin-bottom:12px}
.sf-item-top b{font-size:13px;letter-spacing:-.01em}
.sf-item-top small{font-size:10px;color:#7d8798;font-weight:500}
.sf-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:8px;vertical-align:2px}
.sf-dot.cue{background:#83d9c9}.sf-dot.wake{background:#ebac74}
.sf-link{background:none;border:none;padding:3px 0;color:#98a4b7;cursor:pointer;font-size:11px}
.sf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:13px;row-gap:11px}
.sf-root label{color:#aeb7c6;font-size:10px;letter-spacing:.01em;display:flex;flex-direction:column;gap:6px;min-width:0}
.sf-root input:not([type=checkbox]):not([type=range]):not([type=file]),.sf-root select,.sf-root textarea{background:#111922;border:1px solid #303b48;border-radius:7px;min-width:0;width:100%;font:inherit;color:#e8edf9;padding:9px 9px;font-size:12px;outline:none}
.sf-root textarea{resize:vertical;line-height:1.45;min-height:52px}
.sf-root input:focus,.sf-root textarea:focus,.sf-root select:focus{border-color:#817bd5}
.sf-root input[type=range]{width:100%;margin:4px 0 0;accent-color:#a99cf6}
.sf-root input[type=checkbox]{accent-color:#a99cf6}
.sf-root output{font-weight:700;color:#d9d3ff;font-size:11px}
.sf-time-pair{display:flex;gap:8px;min-width:0}.sf-time-pair label{flex:1;min-width:0}
.sf-voice{border-left:2px solid #6663a1;margin:14px 0 6px;padding-left:13px}
.sf-voice>label{max-width:680px}
.sf-voice-extra{margin-top:10px;grid-template-columns:repeat(3,minmax(0,1fr));max-width:680px}
.sf-details{margin-top:13px;grid-template-columns:repeat(4,minmax(0,1fr))}
.sf-check{display:flex!important;flex-direction:row!important;gap:8px!important;align-items:center;line-height:1.5!important;font-size:11px!important;color:#b8c1d0}
.sf-item-bottom{margin-top:10px;color:#788594;font-size:11px}
.sf-preview{color:#a8b4ef}
.sf-upload{margin-top:11px;max-width:350px}
.sf-root input[type=file]{font-size:11px;color:#b4c0cc}
.sf-footer{border-top:1px solid #27303b;padding-top:15px;margin-top:10px}
.sf-note{font-size:11px;line-height:1.65;color:#8e9ba9;max-width:780px;margin:12px 0}
.sf-footer .sf-note{margin-bottom:12px}
#sfStatus{font-size:12px;color:#9dcfc0;min-height:17px;margin-bottom:9px}
#sfStatus.sf-bad{color:#ffc0a7}
.sf-start{width:100%;min-height:49px;cursor:pointer;border:0;border-radius:9px;background:#b8affb;color:#151629;font-size:14px;font-weight:800;letter-spacing:-.01em}
.sf-start:hover{background:#c9c2ff}
.sf-start:disabled{opacity:.55;cursor:not-allowed}
.sf-empty{font-size:12px;color:#9ea9b4}
.sf-running{padding:17px 0 5px}
.sf-live-dot{font-size:12px;color:#99dcbd;font-weight:750}
.sf-running-clock{font-size:12px;color:#9da9b7;margin:7px 0 16px}
.sf-upcoming{border-top:1px solid #26333c;border-bottom:1px solid #26333c}
.sf-upcoming>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #27303b;font-size:12px;color:#adb9c8}
.sf-upcoming>div:last-child{border:0}
.sf-upcoming b{font-size:19px;font-variant-numeric:tabular-nums;color:#e9eaf6}
.sf-end{margin-top:15px;cursor:pointer;background:transparent;color:#f5b5a8;border:1px solid #78464a;padding:10px 16px;border-radius:8px;font-size:12px}
.sf-snooze{margin:14px auto 0;display:block;cursor:pointer;color:#d9d8f0;background:none;border:1px solid #6d6797;border-radius:8px;padding:10px 15px}
.sf-snooze[hidden],#sfPlanner[hidden],#sfRunning[hidden],.night-controls[hidden]{display:none!important}
@media(max-width:780px){.sf-root{padding:17px 14px;margin-top:12px;border-radius:14px}.sf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-details{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-head h2{font-size:23px}.sf-root label{font-size:11px}.sf-moon{font-size:32px}}
@media(max-width:390px){.sf-grid{gap:8px}.sf-item-top b{font-size:12px}.sf-root select{font-size:11px}.sf-add{gap:10px}}