:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #17212b;
  --muted: #697681;
  --line: #e3e8ec;
  --navy: #17324d;
  --blue: #1769aa;
  --green: #18865b;
  --amber: #b96c16;
  --red: #c8453c;
  --teal: #087f7b;
  --shadow: 0 8px 24px rgba(23, 50, 77, .06);
  --text-caption: 12px;
  --text-small: 13px;
  --text-body: 14px;
  --text-section: 18px;
  --text-page: 28px;
  --text-page-mobile: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: var(--text-body); line-height: 1.5; display: grid; grid-template-columns: 224px 1fr; }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 7px; padding: 10px 14px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .58; transform: none; }
button svg { width: 17px; height: 17px; flex: 0 0 auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #69b9b4; outline-offset: 2px; }

.authShell { position: fixed; z-index: 2000; inset: 0; display: grid; grid-template-columns: minmax(580px, 1.12fr) minmax(470px, .88fr); min-height: 100dvh; background: #f5f8f5; overflow: auto; }
.authBrand { position: relative; min-height: 100%; padding: 38px clamp(34px, 4vw, 64px) 28px; overflow: hidden; display: flex; flex-direction: column; color: #fff; background: #155f43; }
.authBrand::after { content: ""; position: absolute; right: -120px; top: 240px; width: 330px; height: 2px; background: #f6a800; transform: rotate(-38deg); box-shadow: 0 30px 0 rgba(123,207,197,.75), 0 60px 0 rgba(255,255,255,.22); }
.authBrandName, .authMobileBrand { display: flex; align-items: center; gap: 11px; font-size: 18px; }
.authBrandName > span, .authMobileBrand > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #155f43; background: #fff; }
.authBrandName svg, .authMobileBrand svg { width: 19px; height: 19px; }
.authBrandCopy { position: relative; z-index: 1; max-width: 900px; margin: 54px 0 24px; }
.authEyebrow, .authForm header > span, .authGroupLabel { color: #8bd0b8; font-size: var(--text-caption); font-weight: 800; letter-spacing: .06em; }
.authBrandCopy h1 { max-width: 650px; margin: 9px 0 13px; color: #fff; font-size: clamp(31px, 3vw, 44px); line-height: 1.1; }
.authBrandCopy h1 em { color: #ffb21a; font-style: normal; }
.authBrandCopy > p { max-width: 580px; margin: 0; color: #d3e6dd; font-size: 15px; line-height: 1.65; }
.authMetrics { max-width: 680px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 24px; }
.authMetrics strong, .authMetrics span { display: block; }
.authMetrics strong { color: #ffb21a; font-size: 24px; line-height: 1.1; }
.authMetrics span { margin-top: 4px; color: #d1e4db; font-size: var(--text-caption); font-weight: 700; }
.authBenefits { display: grid; gap: 8px; margin: 0 0 25px; padding: 0; list-style: none; }
.authBenefits li { display: flex; align-items: center; gap: 9px; color: #f4faf7; font-size: var(--text-small); }
.authBenefits i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #ffc04b; background: rgba(255,178,26,.14); }
.authGroupLabel { display: block; margin-bottom: 9px; }
.authFeatureCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.authFeatureCards article { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); }
.authFeatureCards i { width: 17px; height: 17px; margin-bottom: 9px; color: #ffb21a; }
.authFeatureCards strong, .authFeatureCards span { display: block; }
.authFeatureCards strong { margin-bottom: 4px; font-size: var(--text-small); }
.authFeatureCards span { overflow: hidden; color: #c9dfd5; font-size: 11px; line-height: 1.4; }
.authBrandFooter { position: relative; z-index: 1; margin-top: auto; display: flex; justify-content: space-between; gap: 16px; color: #a9cbbb; font-size: var(--text-caption); }
.authBrandFooter span { display: inline-flex; align-items: center; gap: 6px; }
.authBrandFooter svg { width: 14px; height: 14px; }
.authMain { min-height: 100%; display: grid; place-items: center; padding: 42px clamp(38px, 6vw, 100px); background: #f5f8f5; }
.authPanel { width: min(100%, 440px); }
.authMobileBrand { display: none; margin-bottom: 30px; color: var(--navy); }
.authMobileBrand > span { color: #fff; background: var(--navy); }
.authSwitch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 34px; padding: 4px; border: 1px solid #dce5de; border-radius: 8px; background: #e9f0eb; }
.authSwitch button { background: transparent; color: var(--muted); font-weight: 700; }
.authSwitch button.active { background: #fff; color: #155f43; box-shadow: 0 2px 7px rgba(21,95,67,.1); }
.authForm { display: none; gap: 16px; }
.authForm.active { display: grid; }
.authForm header { margin-bottom: 8px; }
.authForm header h2 { margin: 7px 0; color: #10271f; font-size: 27px; }
.authForm header p { margin: 0; color: var(--muted); }
.authForm input { min-height: 44px; border-color: #ccd9d1; background: #fff; }
.authForm input:focus { border-color: #176b48; outline-color: #a8d5c2; }
.passwordField { position: relative; display: block; }
.passwordField input { width: 100%; padding-right: 48px; }
.togglePassword { position: absolute; top: 50%; right: 5px; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; color: var(--muted); background: transparent; transform: translateY(-50%); }
.authOptions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.checkLine { grid-template-columns: 18px 1fr; align-items: start; gap: 9px; color: #52616c; font-weight: 500; }
.checkLine input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--teal); }
.authLink, .authBack { padding: 4px 0; display: inline-flex; align-items: center; gap: 7px; color: var(--teal); background: transparent; font-size: var(--text-small); font-weight: 700; }
.authBack { justify-self: start; margin-bottom: 8px; }
.authSubmit { width: 100%; min-height: 46px; }
.authSubmit { background: #176b48; box-shadow: 0 8px 18px rgba(21,95,67,.16); }
.authSubmit:hover { background: #12583b; }
.authTwoCols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.authMessage { min-height: 21px; margin: 15px 0 0; color: var(--green); font-size: var(--text-small); font-weight: 700; }
.authMessage.error { color: var(--red); }
.authInstall { width: 100%; min-height: 42px; margin-top: 4px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #176b48; background: transparent; border: 1px dashed #aac8b7; font-size: var(--text-small); font-weight: 700; }
.authInstall:hover { background: #eaf3ed; border-style: solid; }

.connectionStatus { position: fixed; z-index: 1000; top: 10px; left: 50%; width: min(620px, calc(100% - 24px)); transform: translateX(-50%); padding: 10px 14px; border: 1px solid #e1a45f; border-radius: 7px; background: #fff4e5; color: #75420e; box-shadow: 0 8px 24px rgba(23, 50, 77, .14); font-size: var(--text-small); font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; }
.connectionStatus svg { width: 17px; height: 17px; flex: 0 0 auto; }

.sidebar { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 24px 14px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; margin-bottom: 34px; }
.brandMark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; }
.brandMark svg { width: 19px; height: 19px; }
.brand strong { display: block; color: var(--navy); }
.brand span, .sidebarFoot span { display: block; color: #81909b; font-size: var(--text-caption); margin-top: 2px; }
.navLabel, .sectionKicker, .summaryKicker, .eyebrow { color: #8a98a3; font-size: var(--text-caption); font-weight: 800; letter-spacing: .06em; }
.navLabel { padding: 0 12px; margin: 0 0 8px; }
nav { display: grid; gap: 4px; }
.navItem { position: relative; min-height: 44px; padding: 10px 10px 10px 14px; text-align: left; color: #53616d; background: transparent; font-weight: 600; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; }
.navItem svg { width: 18px; height: 18px; }
.navCount { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #edf1f3; color: #74818b; font-size: 10px; }
.navItem.active .navCount { background: #cfe7e5; color: #086b68; }
.navItem:hover { background: #f2f6f7; color: var(--navy); }
.navItem.active { background: #eaf3f3; color: #086b68; }
.navItem.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--teal); border-radius: 3px; }
.sidebarFoot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: var(--text-caption); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f0e9da; color: #7f5d25; font-weight: 800; }
.profileButton, .contactMenu { margin-left: auto; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; background: transparent; color: #8a98a3; }
.profileButton svg, .contactMenu svg { width: 15px; height: 15px; }

.app { padding: 34px clamp(24px, 4vw, 58px) 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-bottom: 26px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: var(--text-page); margin: 5px 0; letter-spacing: 0; line-height: 1.2; color: var(--navy); }
h2 { font-size: var(--text-section); margin: 3px 0 0; line-height: 1.3; color: var(--navy); }
.topbar p, .muted { color: var(--muted); }
.topbar p { margin-bottom: 0; font-size: var(--text-body); }
.topActions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.topActions button, .primary, .ghost, .textButton, .alertAction, .mailActions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary { color: #fff; background: var(--teal); font-weight: 700; }
.primary:hover { background: #066b68; }
.ghost { color: var(--navy); background: #fff; border: 1px solid var(--line); font-weight: 600; }
.textButton { padding: 4px; background: transparent; color: var(--teal); font-size: var(--text-small); font-weight: 700; }
.textButton svg { width: 14px; height: 14px; }
.iconButton { position: relative; width: 40px; height: 40px; padding: 0; display: grid !important; place-items: center; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.notificationDot { position: absolute; right: 9px; top: 8px; width: 6px; height: 6px; background: var(--red); border: 2px solid #fff; border-radius: 50%; }
.view { display: none; }
.view.active { display: block; }

.todaySummary { display: grid; grid-template-columns: minmax(330px, 1.25fr) minmax(440px, 1fr); gap: 20px; align-items: center; padding: 22px 24px; margin-bottom: 18px; background: var(--navy); color: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.summaryLead { display: flex; gap: 16px; align-items: center; }
.summaryIcon { position: relative; width: 58px; height: 60px; flex: 0 0 auto; display: grid; grid-template-rows: 22px 1fr; place-items: center; padding: 7px 0 5px; background: #fff; color: var(--navy); border-radius: 8px; }
.summaryIcon svg { width: 16px; height: 16px; color: var(--teal); }
.summaryIcon b { font-size: 20px; line-height: 1; }
.summaryKicker { color: #96c9c6; }
.summaryLead strong { display: block; margin: 5px 0 4px; font-size: var(--text-section); }
.summaryLead p { color: #bccbd6; margin: 0; font-size: var(--text-small); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats article { position: relative; min-width: 0; padding: 2px 12px 2px 34px; border-left: 1px solid rgba(255,255,255,.16); }
.stats article > svg { position: absolute; left: 12px; top: 5px; width: 15px; height: 15px; color: #8fc8c5; }
.stats strong { display: block; font-size: 25px; margin-bottom: 4px; }
.stats span { color: #b9c8d3; font-size: var(--text-caption); white-space: nowrap; }
.stats .metricDanger strong { color: #ffafa8; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 20px; }
.monitorBanner { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid #cfe4e2; border-radius: 8px; background: #f4faf9; }
.monitorIcon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: var(--teal); color: #fff; }
.monitorIcon svg { width: 20px; height: 20px; }
.monitorBanner strong, .monitorBanner p { display: block; }
.monitorBanner strong { margin: 3px 0; color: var(--navy); font-size: var(--text-body); }
.monitorBanner p { margin: 0; color: var(--muted); font-size: var(--text-caption); }
.monitorStatus { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: var(--text-caption); font-weight: 700; }
.monitorStatus svg { width: 14px; height: 14px; }
.dashboardGrid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.recentPanel { grid-column: 1 / -1; }
.panelHead { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.panelHead h2 { margin-bottom: 0; }
.sectionHeading { display: flex; align-items: center; gap: 11px; }
.sectionTitle { margin-bottom: 20px; }
.sectionIcon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #e8f3f2; color: var(--teal); }
.sectionIcon svg { width: 17px; height: 17px; }
.dangerIcon { background: #fbe9e7; color: var(--red); }
.healthDot { color: var(--green); font-size: var(--text-caption); font-weight: 700; }
.healthDot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.formGrid { grid-template-columns: minmax(360px, 1fr) minmax(320px, .8fr); }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: var(--text-caption); font-weight: 700; line-height: 1.25; }
.badge svg { width: 13px; height: 13px; }
.badge.success { color: #0f6440; background: #dff3e9; }
.badge.warning { color: #7d5311; background: #fff0cd; }
.badge.danger { color: #8e2e28; background: #fbe2df; }
.badge.info { color: #135284; background: #e0edf7; }
.badge.neutral { color: #4d5c67; background: #edf1f3; }

.stack { display: grid; gap: 10px; }
.alert { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 7px; padding: 13px; }
.alertMark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff1d9; color: var(--amber); font-weight: 800; }
.alertMark svg { width: 19px; height: 19px; }
.alert.danger .alertMark { background: #fbe4e2; color: var(--red); }
.alertCopy strong { display: block; margin-bottom: 3px; color: var(--navy); }
.alertCopy span { display: block; color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.alertAction { white-space: nowrap; padding: 8px 10px; color: var(--teal); background: #e9f4f3; font-size: var(--text-small); font-weight: 700; }
.alertAction svg { width: 14px; height: 14px; }

.flowList { display: grid; }
.flowItem { position: relative; display: flex; gap: 12px; padding: 4px 0 18px; color: #8b98a2; }
.flowItem:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 29px; bottom: 0; width: 1px; background: #d9e0e4; }
.flowItem > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #cdd6dc; border-radius: 50%; font-size: 11px; font-weight: 800; background: #fff; }
.flowItem > span svg { width: 13px; height: 13px; }
.flowItem strong, .flowItem small { display: block; }
.flowItem strong { margin: 2px 0 3px; font-size: var(--text-body); }
.flowItem small { font-size: var(--text-caption); }
.flowItem.done > span { background: var(--green); color: #fff; border-color: var(--green); }
.flowItem.done strong { color: var(--green); }
.flowItem.current > span { color: var(--teal); border: 2px solid var(--teal); }
.flowItem.current strong { color: var(--navy); }

.timeline, .logList { display: grid; gap: 0; }
.timelineItem, .logItem { display: grid; grid-template-columns: 28px 130px 1fr; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; font-size: var(--text-small); }
.activityIcon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #edf5f4; color: var(--teal); }
.activityIcon svg { width: 13px; height: 13px; }
.timelineItem:first-child, .logItem:first-child { border-top: 0; padding-top: 0; }
.timelineItem time, .logItem time { color: var(--muted); font-size: var(--text-caption); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select { width: auto; min-width: 170px; }
.resultCount { min-width: 56px; padding: 6px 9px; border-radius: 999px; background: #edf2f4; color: #52616c; text-align: center; font-size: var(--text-caption); font-weight: 700; }
.filterPanel { display: grid; gap: 12px; margin: 0 0 17px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; }
.filterPanelHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filterPanelHead > div, .clearFilters { display: inline-flex; align-items: center; gap: 7px; }
.filterPanelHead > div { color: var(--navy); font-size: var(--text-small); }
.filterPanelHead svg { width: 15px; height: 15px; color: var(--teal); }
.clearFilters { padding: 5px 7px; color: #66747e; background: transparent; font-size: var(--text-caption); font-weight: 700; }
.clearFilters:hover { color: var(--teal); background: #e9f4f3; }
.clearFilters svg { width: 13px; height: 13px; }
.quickFilters { display: flex; gap: 6px; flex-wrap: wrap; }
.quickFilters button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--line); background: #fff; color: #5c6973; font-size: var(--text-caption); font-weight: 700; }
.quickFilters button:hover { border-color: #9fcac7; color: var(--teal); }
.quickFilters button.active { border-color: var(--teal); background: #e7f3f2; color: var(--teal); }
.quickFilters button[data-status="overdue"].active { border-color: var(--red); background: #fbe5e3; color: #a9342d; }
.quickFilters button[data-status="pending"].active { border-color: #d89a32; background: #fff1d6; color: #89590f; }
.quickFilters button[data-status="active"].active { border-color: var(--green); background: #e4f3eb; color: #116842; }
.quickFilters button[data-status="paused"].active { border-color: #7b8790; background: #e9edf0; color: #46535d; }
.quickFilters svg { width: 13px; height: 13px; }
.filterGrid { display: grid; grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(130px, 1fr)); gap: 9px; align-items: end; }
.filterGrid label { min-width: 0; }
.filterGrid label > span { display: block; color: #78858f; font-size: var(--text-caption); font-weight: 800; text-transform: uppercase; }
.filterGrid select, .filterGrid input { min-width: 0; min-height: 40px; font-size: var(--text-small); }
.filterGrid .searchBox { min-width: 0; }
.filterGrid .searchBox svg { top: 30px; }
.emptyFilter { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--muted); }
.emptyFilter svg { width: 28px; height: 28px; color: #93a0a9; }
.emptyFilter strong { color: var(--navy); font-size: var(--text-small); }
.emptyFilter span { font-size: var(--text-caption); }
.compactFilter { display: grid; grid-template-columns: auto 64px; align-items: center; gap: 6px; color: var(--muted); font-size: var(--text-caption); }
.compactFilter input { width: 64px; }
.searchBox { position: relative; display: block; min-width: 260px; }
.searchBox svg { position: absolute; z-index: 1; left: 11px; top: 11px; width: 17px; height: 17px; color: #83909a; }
.searchBox input { padding-left: 36px; }
input, select, textarea { width: 100%; min-height: 40px; border: 1px solid #d8e0e5; border-radius: 6px; background: #fff; color: var(--ink); padding: 9px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b8dcd9; border-color: var(--teal); }
textarea { min-height: 150px; resize: vertical; }
.tableWrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: var(--text-caption); font-weight: 700; }
td { font-size: var(--text-small); line-height: 1.45; }
.scheduleRow { cursor: pointer; transition: background .18s ease; }
.scheduleRow:focus-visible { outline: 3px solid #79bdb8; outline-offset: -3px; }
.scheduleRow:hover { background: #f7fafb; }
.scheduleRow td:first-child { border-left: 3px solid transparent; }
.scheduleRow.overdue { background: #fff4f3; }
.scheduleRow.overdue:hover { background: #fdebea; }
.scheduleRow.overdue td:first-child { border-left-color: var(--red); }
.scheduleRow.overdue .scheduleNameButton { color: #a9342d; }
.scheduleRow.overdue .statusCell small { color: #a9342d; font-weight: 700; }
.scheduleRow.pending { background: #fffaf0; }
.scheduleRow.pending td:first-child { border-left-color: #d89a32; }
.scheduleRow.pending .statusCell small { color: #89590f; font-weight: 700; }
.scheduleRow.active { background: #f2faf6; }
.scheduleRow.active td:first-child { border-left-color: var(--green); }
.scheduleRow.active .statusCell small { color: #116842; font-weight: 700; }
.scheduleRow.paused { background: #f4f6f7; }
.scheduleRow.paused td:first-child { border-left-color: #7b8790; }
.scheduleRow.paused .statusCell small { color: #4d5c67; font-weight: 700; }
.rowActions { display: flex; gap: 6px; }
.rowActions button { width: 31px; height: 31px; padding: 0; display: grid; place-items: center; background: #edf2f4; color: #53616d; }
.rowActions button:hover { background: #dfecea; color: var(--teal); }
.rowActions svg { width: 14px; height: 14px; }
.scheduleNameButton { padding: 0; text-align: left; color: var(--navy); background: transparent; font-weight: 800; }
.scheduleNameButton:hover { color: var(--teal); }
.statusCell { display: grid; justify-items: start; gap: 6px; }
.statusCell small { color: var(--muted); font-size: var(--text-caption); }
.form, .settingsList { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: var(--text-small); font-weight: 700; }
.mail { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #f9fbfc; }
.mailHeader { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.mailHeader .mailLogo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--navy); color: #fff; }
.mailHeader .mailLogo svg { width: 16px; height: 16px; }
.mailHeader strong, .mailHeader small { display: block; margin: 0; }
.mailHeader small { color: var(--muted); font-size: var(--text-caption); margin-top: 2px; }
.mail span { color: var(--muted); font-size: var(--text-caption); text-transform: uppercase; }
.mail strong { display: block; margin: 7px 0 14px; }
.mailResponseNote { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--navy); font-size: var(--text-small); font-weight: 700; }
.mailResponseNote svg { width: 16px; height: 16px; color: var(--teal); }
.mailActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.mailActions button { background: var(--teal); color: #fff; }
.mailActions .mailDecline { color: #a63d47; background: #fff1f2; border: 1px solid #efc7cc; }
.mailResponseStatus { margin: 11px 0 0; color: var(--muted); font-size: var(--text-caption); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.contact { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fbfcfd; }
.contactTop { display: flex; align-items: flex-start; margin-bottom: 12px; }
.contactAvatar { width: 42px; height: 42px; display: grid !important; place-items: center; margin: 0 !important; border-radius: 50%; background: #e6f1f0; color: var(--teal) !important; font-weight: 800; }
.contactEmail { display: flex !important; align-items: center; gap: 6px; }
.contactEmail svg { width: 13px; height: 13px; }
.contactMeta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.contactMeta span { display: inline-flex; padding: 5px 8px; margin: 0; border-radius: 999px; background: #edf2f4; color: #5f6c76; font-size: var(--text-caption); }
.contact strong { display: block; margin-bottom: 4px; }
.contact span { display: block; color: var(--muted); font-size: var(--text-caption); margin-top: 5px; }
dialog { border: 0; border-radius: 8px; padding: 0; width: min(540px, calc(100vw - 28px)); box-shadow: 0 20px 60px rgba(23,50,77,.22); }
.scheduleDialog { width: min(760px, calc(100vw - 28px)); max-height: min(90vh, 900px); }
.detailDialog { width: min(900px, calc(100vw - 28px)); max-height: min(90vh, 920px); }
dialog::backdrop { background: rgba(23, 32, 38, .42); }
.detailShell { display: grid; }
.detailHeader { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.detailIdentity, .detailHeaderActions { display: flex; align-items: center; gap: 12px; }
.detailIdentity h2 { margin: 3px 0; font-size: var(--text-section); line-height: 1.3; }
.detailIdentity p { margin: 0; color: var(--muted); font-size: var(--text-caption); }
.detailContent { display: grid; gap: 14px; padding: 18px 20px; background: var(--bg); }
.detailMetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detailMetrics article { position: relative; min-width: 0; padding: 14px 12px 14px 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.detailMetrics article > svg { position: absolute; left: 13px; top: 16px; width: 16px; height: 16px; color: var(--teal); }
.detailMetrics span, .detailMetrics strong { display: block; }
.detailMetrics span { margin-bottom: 5px; color: var(--muted); font-size: var(--text-caption); font-weight: 700; text-transform: uppercase; }
.detailMetrics strong { overflow-wrap: anywhere; color: var(--navy); font-size: var(--text-small); }
.detailMetrics .dangerText { color: var(--red); }
.detailGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detailSection { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.detailWide { grid-column: 1 / -1; }
.detailSectionHead { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.detailSectionHead svg { width: 16px; height: 16px; color: var(--teal); }
.detailSectionHead h3 { margin: 0; color: var(--navy); font-size: 15px; }
.detailSection dl { display: grid; gap: 9px; margin: 0; }
.detailSection dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.detailSection dt { color: var(--muted); font-size: var(--text-caption); }
.detailSection dd { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: var(--text-small); font-weight: 700; }
.detailEscalations { display: grid; gap: 9px; }
.detailEscalations > div { position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; }
.detailEscalations > div > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 800; }
.detailEscalations strong, .detailEscalations small { display: block; }
.detailEscalations strong { color: var(--navy); font-size: var(--text-small); }
.detailEscalations small { margin-top: 2px; color: var(--muted); font-size: var(--text-caption); }
.taskDetail > span { color: var(--muted); font-size: var(--text-caption); text-transform: uppercase; }
.taskDetail > strong { display: block; margin: 5px 0 8px; color: var(--navy); font-size: var(--text-body); }
.taskDetail > p { margin: 0 0 12px; color: #4d5b65; font-size: var(--text-small); line-height: 1.6; }
.taskDetail > div { display: flex; gap: 7px; flex-wrap: wrap; }
.taskDetail small { padding: 5px 8px; border-radius: 999px; background: #edf2f4; color: #5b6872; font-size: var(--text-caption); }
.taskDetail .detailResponseActions { align-items: center; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.detailResponseActions b { padding: 5px 8px; border-radius: 5px; background: #eef7f6; color: #087f79; font-size: var(--text-caption); }
.detailHistory { display: grid; }
.detailHistory > div { display: grid; grid-template-columns: 24px 120px 1fr; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.detailHistory > div:first-child { border-top: 0; padding-top: 0; }
.detailHistory > div > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e7f4ed; color: var(--green); }
.detailHistory svg { width: 12px; height: 12px; }
.detailHistory time { color: var(--muted); font-size: var(--text-caption); }
.detailHistory p { margin: 0; color: #4d5b65; font-size: var(--text-caption); }
.detailFooter { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fff; }
.detailFooter button { display: inline-flex; align-items: center; gap: 7px; }
.modal { display: grid; gap: 14px; padding: 20px; }
.modalHead { display: flex; justify-content: space-between; align-items: center; }
.modalHead h2 { margin: 0; }
.iconBtn { width: 36px; height: 36px; padding: 0; font-size: 22px; background: #edf2f5; }
menu { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 0; }
.wizardSteps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.wizardSteps span { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 6px 14px; color: #87939c; font-size: var(--text-small); font-weight: 700; }
.wizardSteps span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.wizardSteps span.active { color: var(--teal); }
.wizardSteps span.active::after { background: var(--teal); }
.wizardSteps span.completed { color: var(--green); }
.wizardSteps span.completed b { background: var(--green); color: #fff; }
.wizardSteps b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #edf1f3; font-size: 10px; }
.wizardSteps .active b { background: var(--teal); color: #fff; }
.wizardPage { display: none; gap: 14px; }
.wizardPage.active { display: grid; }
.formSection { display: grid; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.formSectionHead { display: flex; align-items: center; gap: 10px; }
.formSectionHead > svg { width: 18px; height: 18px; color: var(--teal); }
.formSectionHead strong, .formSectionHead small { display: block; }
.formSectionHead strong { color: var(--navy); font-size: var(--text-body); }
.formSectionHead small { margin-top: 2px; color: var(--muted); font-size: var(--text-caption); }
.formColumns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formColumns .wide { grid-column: 1 / -1; }
.escalationRows { display: grid; gap: 9px; }
.escalationRow { display: grid; grid-template-columns: 28px minmax(220px, 1fr) 130px 34px; gap: 9px; align-items: end; }
.stepNumber { width: 26px; height: 26px; margin-bottom: 7px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; }
.removeStep { width: 34px; height: 40px; color: #8c5960; background: #f7ecee; }
.removeStep svg { width: 15px; height: 15px; }
.addStepButton { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--teal); background: #e9f4f3; font-size: var(--text-caption); font-weight: 700; }
.addStepButton svg { width: 14px; height: 14px; }
.uploadButton { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; width: 100%; text-align: left; color: var(--navy); background: #fff; border: 1px dashed #c9d4da; }
.uploadButton svg { width: 17px; height: 17px; color: var(--teal); }
.uploadButton span { font-weight: 700; }
.uploadButton small { color: var(--muted); font-size: var(--text-caption); }
.reviewIntro { display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 8px; background: #eaf5ef; color: #145f43; }
.reviewIntro > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.reviewIntro svg { width: 20px; height: 20px; }
.reviewIntro strong { display: block; margin-bottom: 3px; }
.reviewIntro p { margin: 0; color: #47715f; font-size: var(--text-caption); }
.reviewGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reviewCard { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.reviewCard.wide { grid-column: 1 / -1; }
.reviewCard > span { display: block; margin-bottom: 7px; color: #87939c; font-size: var(--text-caption); font-weight: 800; letter-spacing: .06em; }
.reviewCard > strong { display: block; color: var(--navy); font-size: var(--text-body); }
.reviewCard > p { margin: 4px 0 0; color: var(--muted); font-size: var(--text-caption); line-height: 1.5; }
.reviewEscalations { display: grid; gap: 8px; }
.reviewEscalations > div { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; }
.reviewEscalations span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 800; }
.reviewEscalations strong { color: var(--navy); font-size: var(--text-small); }
.reviewEscalations small { color: var(--muted); font-size: var(--text-caption); }
.wizardBack { margin-left: auto; }
#wizardCancel + #wizardBack[hidden] + #wizardNext { margin-left: auto; }

@media (max-width: 980px) {
  .authShell { grid-template-columns: 1fr; }
  .authBrand { display: none; }
  .authMain { min-height: 100dvh; align-items: start; padding: 26px 20px 42px; }
  .authMobileBrand { display: flex; }
  .authSwitch { margin-bottom: 28px; }
}

@media (max-width: 1050px) {
  .todaySummary { grid-template-columns: 1fr; }
  .summaryMetrics { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
  .stats article:first-child { border-left: 0; }
  .filterGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filterSearch { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .authShell { grid-template-columns: 1fr; }
  .authBrand { display: none; }
  .authMain { min-height: 100dvh; align-items: start; padding: 26px 20px 42px; }
  .authMobileBrand { display: flex; }
  .authSwitch { margin-bottom: 28px; }
  body { display: block; }
  .sidebar { position: static; width: 100%; height: auto; overflow: hidden; padding: 14px; }
  .brand { margin-bottom: 14px; }
  .navLabel, .sidebarFoot { display: none; }
  nav { display: flex; width: 100%; max-width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .navItem { min-width: max-content; padding: 9px 12px; }
  .navItem.active::before { top: auto; left: 10px; right: 10px; bottom: 0; width: auto; height: 2px; }
  .app { padding: 22px 16px 40px; }
  .topbar { align-items: stretch; flex-direction: column; }
  #schedules .panelHead { align-items: stretch; flex-direction: column; }
  .resultCount { align-self: flex-start; }
  .dashboardGrid, .two, .formGrid { grid-template-columns: 1fr; }
  .monitorBanner { grid-template-columns: 38px 1fr; }
  .monitorIcon { width: 38px; height: 38px; }
  .monitorStatus { grid-column: 2; }
  .detailHeader { align-items: flex-start; }
  .detailMetrics { grid-template-columns: 1fr 1fr; }
  .detailGrid { grid-template-columns: 1fr; }
  .detailWide { grid-column: auto; }
  .recentPanel { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stats article:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .authTwoCols { grid-template-columns: 1fr; }
  .authOptions { align-items: flex-start; }
  h1 { font-size: var(--text-page-mobile); }
  .topActions { display: grid; grid-template-columns: 1fr 1fr; }
  .topActions .iconButton { display: none !important; }
  .topActions .installButton { grid-column: 1 / -1; }
  .filterGrid { grid-template-columns: 1fr; }
  .filterSearch { grid-column: auto; }
  .quickFilters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .quickFilters::-webkit-scrollbar { display: none; }
  .quickFilters button { min-width: max-content; }
  .clearFilters span { display: none; }
  .todaySummary { padding: 18px; }
  .summaryLead { align-items: flex-start; }
  .alert { grid-template-columns: 38px 1fr; }
  .alertMark { width: 38px; height: 38px; }
  .alertAction { grid-column: 2; justify-self: start; }
  .wizardSteps span { font-size: 0; }
  .wizardSteps b { font-size: 10px; }
  .formColumns, .escalationRow { grid-template-columns: 1fr; }
  .formColumns .wide { grid-column: auto; }
  .stepNumber { margin-bottom: 0; }
  .removeStep { width: 100%; height: 36px; }
  .reviewGrid { grid-template-columns: 1fr; }
  .reviewCard.wide { grid-column: auto; }
  .reviewEscalations > div { grid-template-columns: 25px 1fr; }
  .reviewEscalations small { grid-column: 2; }
  .detailHeader { padding: 14px; }
  .detailContent { padding: 12px; }
  .detailMetrics { grid-template-columns: 1fr; }
  .detailHeaderActions .badge { display: none; }
  .detailSection dl > div { grid-template-columns: 1fr; gap: 3px; }
  .detailHistory > div { grid-template-columns: 24px 1fr; }
  .detailHistory time, .detailHistory p { grid-column: 2; }
  .detailFooter { padding: 12px; }
  .detailFooter .ghost { width: 38px; padding: 0; }
  .detailFooter .ghost span { display: none; }
}
