.afOpsSettingsCard{position:relative;overflow:hidden}
.afOpsSettingsCard:before{content:"";position:absolute;right:-30px;top:-45px;width:120px;height:120px;border-radius:50%;background:linear-gradient(135deg,rgba(17,103,255,.14),rgba(37,168,255,.04));pointer-events:none}
.afOpsSettingsCard .afOpsVersion{display:inline-flex;align-items:center;margin-top:9px;padding:5px 9px;border-radius:999px;background:#eef6ff;color:#1167ff;font-size:12px;font-weight:800}
.afOpsOverlay .sheet{width:min(100%,520px);max-height:94dvh;padding:0;overflow:hidden;background:#f3f8ff}
/* Size the scroll area from the actual header, including the setup return button. */
#afOperationsOverlay .sheet{display:flex;flex-direction:column;height:min(91dvh,920px);max-height:100%;min-height:0;overflow:hidden}
#afOperationsOverlay .afOpsHeader,#afOperationsOverlay .afOpsTabs{flex:0 0 auto}
#afOperationsOverlay .afOpsHeader{position:relative}
#afOperationsOverlay #af360ReturnToSetup{max-width:calc(100% - 52px);white-space:normal;margin-bottom:8px}
.afOpsHeader{position:sticky;top:0;z-index:4;padding:18px 18px 12px;background:linear-gradient(145deg,#075bff,#0044c9);color:#fff;box-shadow:0 10px 28px rgba(7,91,255,.18)}
.afOpsHeader .closeX{top:13px;right:13px;background:rgba(255,255,255,.18);color:#fff}
.afOpsEyebrow{font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;opacity:.82}
.afOpsHeader h2{margin:4px 44px 3px 0;font-size:25px;color:#fff}
.afOpsHeader p{margin:0;max-width:400px;font-size:13px;line-height:1.35;opacity:.9}
.afOpsContextHelp{display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin-top:10px;padding:7px 11px;border:1px solid rgba(255,255,255,.42);border-radius:13px;background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.afOpsContextHelp:active{transform:scale(.99)}
.afOpsTabs{display:flex;gap:7px;overflow-x:auto;padding:11px 14px;background:#fff;border-bottom:1px solid #dce9fb;scrollbar-width:none}
.afOpsTabs::-webkit-scrollbar{display:none}
.afOpsTab{flex:0 0 auto;border:1px solid #dbe9fd;border-radius:999px;background:#f6f9ff;color:#526179;padding:9px 12px;min-height:40px;font-size:13px;font-weight:800;cursor:pointer}
.afOpsTab.active{border-color:#1167ff;background:#1167ff;color:#fff;box-shadow:0 7px 18px rgba(17,103,255,.2)}
.afOpsContent{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 14px calc(32px + env(safe-area-inset-bottom))}
.afOpsHero,.afOpsCard{margin:0 0 12px;padding:15px;border:1px solid #dce9fb;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(8,40,92,.07)}
.afOpsPriority{border-color:#b9d7ff;background:linear-gradient(145deg,#fff,#f5faff)}
.afOpsCloudCard{border-color:#b8e4cb;background:linear-gradient(145deg,#fff,#f3fff8)}
.afOpsCloudTop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.afOpsCloudTop>div{min-width:0}.afOpsCloudTop .afOpsPill{flex:0 0 auto}
.afOpsAdvanced summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none;color:#0b2342}
.afOpsAdvanced summary::-webkit-details-marker{display:none}.afOpsAdvanced summary:after{content:'›';flex:0 0 auto;color:#1167ff;font-size:25px;font-weight:800;transform:rotate(90deg);transition:transform .18s ease}
.afOpsAdvanced[open] summary:after{transform:rotate(-90deg)}.afOpsAdvanced summary strong,.afOpsAdvanced summary span{display:block}.afOpsAdvanced summary strong{font-size:15px}.afOpsAdvanced summary span{margin-left:auto;color:#667085;font-size:11px;text-align:right}.afOpsAdvancedBody{padding-top:13px;border-top:1px solid #e6eef9}
.afOpsHero{background:linear-gradient(145deg,#092b66,#075bff);color:#fff;border:0}
.afOpsHero strong{display:block;font-size:20px;line-height:1.1}
.afOpsHero span{display:block;margin-top:6px;font-size:13px;line-height:1.4;opacity:.9}
.afOpsCard h3{margin:0 0 5px;color:#0b2342;font-size:18px}
.afOpsCard h4{margin:0 0 4px;color:#0b2342;font-size:15px}
.afOpsCard p{margin:0;color:#667085;font-size:13px;line-height:1.45}
.afOpsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px}
.afOpsMetric{padding:12px;border:1px solid #e1ebfa;border-radius:17px;background:#f8fbff;min-width:0}
.afOpsMetric span{display:block;color:#667085;font-size:11px;font-weight:700}
.afOpsMetric strong{display:block;margin-top:3px;color:#0b2342;font-size:17px;overflow-wrap:anywhere}
.afOpsPhase{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf2f9}
.afOpsPhase:last-child{border-bottom:0}
.afOpsPhaseIcon{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#eef6ff;color:#1167ff;font-weight:900}
.afOpsPhaseText strong,.afOpsPhaseText span{display:block}
.afOpsPhaseText strong{font-size:14px;color:#0b2342}
.afOpsPhaseText span{margin-top:2px;color:#667085;font-size:12px;line-height:1.3}
.afOpsPill{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#eef6ff;color:#1167ff;font-size:11px;font-weight:800;white-space:nowrap}
.afOpsPill.ok{background:#ecfdf3;color:#027a48}.afOpsPill.warn{background:#fff7e8;color:#b54708}.afOpsPill.blocked{background:#f2f4f7;color:#667085}.afOpsPill.danger{background:#fef3f2;color:#b42318}
.afOpsActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.afOpsActions .btn{flex:1 1 145px;min-width:0}
.afOpsChoice{display:flex;gap:10px;align-items:flex-start;width:100%;padding:12px;margin-top:9px;border:1px solid #dce9fb;border-radius:17px;background:#f8fbff;text-align:left;color:#0b2342;cursor:pointer}
.afOpsChoice.active{border-color:#1167ff;background:#eef6ff;box-shadow:0 0 0 2px rgba(17,103,255,.08)}
.afOpsChoice i{width:33px;height:33px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#fff;color:#1167ff;font-style:normal;font-size:18px}
.afOpsChoice strong,.afOpsChoice span{display:block}.afOpsChoice strong{font-size:14px}.afOpsChoice span{margin-top:3px;color:#667085;font-size:12px;line-height:1.35}
.afOpsNotice{margin:0 0 12px;padding:11px 12px;border:1px solid #fbcf85;border-radius:16px;background:#fff7e8;color:#8a4b08;font-size:12px;line-height:1.4}
.afOpsNotice.ok{border-color:#abefc6;background:#ecfdf3;color:#027a48}.afOpsNotice.info{border-color:#c7dcff;background:#eef6ff;color:#1557b0}.afOpsNotice.danger{border-color:#fda29b;background:#fef3f2;color:#b42318}
.afOpsProgress{height:9px;margin-top:8px;border-radius:999px;background:#eaf2ff;overflow:hidden}.afOpsProgress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#075bff,#25a8ff)}
.afOpsGuidedStep{display:flex;align-items:center;gap:10px;margin-top:11px;padding:11px;border:1px solid #dce9fb;border-radius:16px;background:#f8fbff}.afOpsGuidedStep>i{width:35px;height:35px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#1167ff;color:#fff;font-style:normal;font-weight:900}.afOpsGuidedStep strong,.afOpsGuidedStep span{display:block}.afOpsGuidedStep strong{color:#0b2342;font-size:13px}.afOpsGuidedStep span{margin-top:2px;color:#667085;font-size:11px}
.afOpsRule,.afOpsRun,.afOpsMember,.afOpsConnection,.afOpsReceipt,.afOpsAudit{padding:12px;margin-top:9px;border:1px solid #e2ebf8;border-radius:17px;background:#fbfdff}
.afOpsRuleTop,.afOpsRunTop,.afOpsMemberTop,.afOpsConnectionTop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.afOpsMemberTop>div{min-width:0}.afOpsMemberTop>.afOpsPill{flex:0 0 auto}
.afOpsPauseButton{flex:0 0 auto!important;min-width:118px;white-space:nowrap;overflow-wrap:normal;word-break:keep-all}
.afOpsRule strong,.afOpsRun strong,.afOpsMember strong,.afOpsConnection strong{color:#0b2342;font-size:14px}
.afOpsMeta{display:block;margin-top:3px;color:#667085;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.afOpsFields{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:8px;margin-top:10px}
.afOpsFields.afOpsMemberFields{grid-template-columns:minmax(0,1fr)}
.afOpsMemberFields input{width:100%}
.afOpsFields.three{grid-template-columns:1fr .65fr .75fr}
.afOpsFields.afOpsRuleSchedule{grid-template-columns:minmax(0,.9fr) minmax(0,1.65fr) minmax(0,.7fr)}
.afOpsFields label,.afOpsField label{display:block;margin-bottom:5px;color:#667085;font-size:11px;font-weight:800}
.afOpsFields input,.afOpsFields select,.afOpsField input,.afOpsField select,.afOpsField textarea{min-width:0;border-radius:13px;padding:10px;font-size:14px}
.afOpsField{margin-top:10px}
.afOpsScheduleHelp{margin:12px 0 2px;padding:10px 12px;border:1px solid #c7dcff;border-radius:14px;background:#eef6ff;color:#1557b0;font-size:12px;line-height:1.45}
.afOpsToggle{display:inline-flex;align-items:center;gap:7px;color:#526179;font-size:12px;font-weight:800}.afOpsToggle input{width:19px;height:19px;margin:0}
.afOpsEmpty{padding:18px 12px;text-align:center;color:#667085;font-size:13px;line-height:1.4}
.afOpsRunActions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.afOpsRunActions .btn{padding:8px 10px;min-height:34px;font-size:12px}
.afOpsTimeline{position:relative;margin-top:9px;padding-left:18px}.afOpsTimeline:before{content:"";position:absolute;left:5px;top:7px;bottom:7px;width:2px;background:#dbe8fb}
.afOpsAudit{position:relative;margin:0 0 8px;padding:10px 11px}.afOpsAudit:before{content:"";position:absolute;left:-18px;top:15px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#1167ff;box-shadow:0 0 0 2px #dbe8fb}
.afOpsAudit strong{display:block;color:#0b2342;font-size:13px}.afOpsAudit span{display:block;margin-top:2px;color:#667085;font-size:11px}
.afOpsHomeCard{cursor:pointer}
.afOpsHomeCard .afOpsHomeTop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.afOpsHomeCard h2{margin:2px 0 0;color:#0b2342;font-size:20px;letter-spacing:-.03em}
.afOpsExceptionList{display:grid;gap:7px;margin-top:10px}
.afOpsException{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px;border:1px solid #fde1dc;border-radius:14px;background:#fff8f7}
.afOpsException i{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#fef3f2;color:#b42318;font-style:normal;font-weight:900}
.afOpsException strong{display:block;color:#344054;font-size:12px}.afOpsException span{display:block;margin-top:2px;color:#667085;font-size:11px}
.afOpsHomeOk{margin-top:9px;padding:10px;border-radius:14px;background:#ecfdf3;color:#027a48;font-size:12px;font-weight:800}
.afOpsStartChoices{margin:12px 0 14px;padding:12px;border:1px solid #dce9fb;border-radius:19px;background:#f8fbff}
.afOpsStartChoices>strong{display:block;margin-bottom:8px;color:#0b2342;font-size:14px}
.afOpsStartGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.afOpsStartButton{border:1px solid #d3e3fb;border-radius:15px;background:#fff;padding:11px 9px;color:#0b2342;font-size:12px;font-weight:800;line-height:1.25;cursor:pointer}.afOpsStartButton.primary{border-color:#1167ff;background:#eef6ff;color:#075bff}
.afOpsExternalLock{display:flex;gap:9px;align-items:flex-start;margin-top:10px;padding:10px;border-radius:14px;background:#f2f4f7;color:#526179;font-size:12px;line-height:1.35}.afOpsExternalLock i{font-style:normal}
.afOpsTab:focus-visible,.afOpsChoice:focus-visible,.afOpsStartButton:focus-visible,.afOpsContextHelp:focus-visible,.afOpsOverlay button:focus-visible,.afOpsOverlay input:focus-visible,.afOpsOverlay select:focus-visible{outline:3px solid #78aaff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.afOpsOverlay *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:390px){.afOpsGrid,.afOpsStartGrid{grid-template-columns:1fr}.afOpsFields,.afOpsFields.three{grid-template-columns:1fr}.afOpsContent{padding-left:10px;padding-right:10px}.afOpsTab{padding:8px 10px}.afOpsPhase{grid-template-columns:34px minmax(0,1fr)}.afOpsPhaseIcon{width:34px;height:34px}.afOpsPhase>.afOpsPill{grid-column:2;justify-self:start}.afOpsException{grid-template-columns:30px minmax(0,1fr)}.afOpsException>.afOpsPill{grid-column:2;justify-self:start}}
@media(max-width:600px){.afOpsFields.afOpsRuleSchedule{grid-template-columns:1fr}.afOpsRuleSchedule select,.afOpsRuleSchedule input{width:100%;min-height:44px}}
@media(min-width:720px){.afOpsOverlay .sheet{border-radius:30px}.afOpsContent{padding:18px}}
/* On a short screen, let the header scroll away so it cannot hide the form. */
@media(max-height:600px){#afOperationsOverlay .sheet{overflow-y:auto}#afOperationsOverlay .afOpsContent{flex:0 0 auto;overflow:visible}}

/* Host-selected arrival/departure reminders. */
.afOpsStayGroup{margin-top:18px;padding:16px;border:1px solid var(--af-ops-border,#dce5ef);border-radius:16px;background:var(--af-ops-surface,#fff)}
.afOpsStayGroup h4{margin:0;font-size:17px}
.afOpsStayPeriod{border:0;padding:12px 0 0;margin:0;min-width:0}
.afOpsStayPeriod legend{font-weight:600;padding:0}
.afOpsStayPeriod .afOpsActions{display:flex;flex-wrap:wrap;gap:8px}
.afOpsStayPeriod .afOpsToggle{min-height:44px;min-width:76px;flex:1 1 76px;justify-content:center;gap:6px;padding:8px 6px;white-space:nowrap}
.afOpsStayPeriod input{accent-color:#1269df;width:18px;height:18px;flex:0 0 18px}
.afOpsStayNotifications>.afOpsActions{margin-top:16px}
