/* Working examples on first-run pages: the Windows desktop, the Authenticator vault, Cloud Drive, and uptime monitors. Colors are fixed so each one looks like the product it shows. */

/* ------------------------------------------------------------ Page layout */
.fl-show { max-width: 1200px; }
.fl-show-title { margin: 0; font-size: 22px; font-weight: 600; line-height: 30px; letter-spacing: -.016em; text-wrap: balance; color: var(--text); }
.fl-show-lead { margin: 2px 0 16px; max-width: 680px; font-size: 14px; line-height: 21px; color: var(--text-2); }
.fl-show-grid { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 20px; align-items: start; }
.fl-show-demo { min-width: 0; }
.fl-show-side { position: sticky; top: calc(var(--topbar-h, 56px) + 16px); overflow: hidden; }
.fl-show-side .fl-side { border-left: 0; background: var(--surface); }
.fl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px 20px; margin: 16px 0 0; }
.fl-row > div { min-width: 0; }
.fl-row dt { margin: 0; font-size: 13px; font-weight: 600; line-height: 19px; color: var(--text); }
.fl-row dd { margin: 1px 0 0; font-size: 13px; line-height: 19px; color: var(--text-2); }
@media (max-width: 1040px) {
  .fl-show-grid { grid-template-columns: minmax(0, 1fr); }
  .fl-show-side { position: static; }
}

/* ------------------------------------------------------------ The Windows desktop */
/* isolation keeps the desktop's own layers (its taskbar is z-index 1500) inside it, below the sidebar when it opens as a sheet. */
.wd { --wd-font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif; min-width: 0; isolation: isolate; font-family: var(--wd-font); font-size: 12.5px; line-height: 17px; color: #1B1D22; }
.wd button { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: default; text-align: inherit; }
.wd button:focus-visible, .wd a:focus-visible, .wd input:focus-visible, .wd textarea:focus-visible { outline: 2px solid #5CB2F2; outline-offset: 1px; }
.wd [hidden] { display: none !important; }
.wd-frame { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; box-shadow: var(--shadow-md); }
.wd-chrome { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--gray-75); font-size: 12px; color: var(--text-2); }
.wd-chrome .wd-ico { width: 12px; height: 12px; }
.wd-chrome-host { white-space: nowrap; }
.wd-chrome-tag { margin-left: auto; font-weight: 500; white-space: nowrap; }
.wd-ico { display: inline-grid; flex: none; place-items: center; width: 16px; height: 16px; }
.wd-ico svg { display: block; width: 100%; height: 100%; }
.wd-ico-light { color: #fff; }
.wd-trunc { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wd-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; min-height: 430px; max-height: 620px; width: 100%; user-select: none; background: #17191F radial-gradient(90% 90% at 50% 38%, #272A33 0%, #17191F 72%); }
.wd-screen[data-wall="night"] { background: #0B0D12 radial-gradient(90% 90% at 50% 38%, #1B1F2A 0%, #0B0D12 72%); }
.wd-screen[data-wall="indigo"] { background: #1E1B4B radial-gradient(90% 90% at 50% 38%, #3B3786 0%, #1E1B4B 72%); }
.wd-wall { position: absolute; left: 50%; top: 42%; width: min(46%, 360px); transform: translate(-50%, -50%); opacity: .14; pointer-events: none; }
.wd-dim { position: absolute; inset: 0; z-index: 2000; background: #000; opacity: 0; pointer-events: none; }
.wd-night { position: absolute; inset: 0; z-index: 1999; background: rgba(255, 150, 60, .13); pointer-events: none; }

.wd-icons { position: absolute; left: 6px; top: 6px; display: grid; grid-auto-rows: 72px; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 72px); height: calc(100% - 60px); justify-content: start; gap: 2px; transition: opacity .1s; }
.wd-icons.wd-flash { opacity: 0; }
.wd .wd-dicon { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 74px; padding: 6px 2px 4px; border-radius: 4px; font-size: 11.5px; line-height: 14px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.wd .wd-dicon:hover { background: rgba(255, 255, 255, .1); }
.wd .wd-dicon:focus { background: rgba(255, 255, 255, .16); }
.wd-dicon .wd-ico { width: 34px; height: 34px; }

/* Taskbar */
.wd-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; height: 48px; background: rgba(28, 30, 36, .88); backdrop-filter: blur(24px); border-top: 1px solid rgba(255, 255, 255, .07); }
.wd-bar-apps { display: flex; align-items: center; gap: 1px; }
.wd .wd-task { position: relative; display: grid; place-items: center; width: 38px; height: 40px; border-radius: 5px; }
.wd .wd-task:hover { background: rgba(255, 255, 255, .08); }
.wd .wd-task.is-front { background: rgba(255, 255, 255, .11); }
.wd-task .wd-ico { width: 23px; height: 23px; }
.wd .wd-task.is-open::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 6px; height: 3px; border-radius: 2px; background: #9AA3B2; transform: translateX(-50%); }
.wd .wd-task.is-front::after { width: 14px; background: #5CB2F2; }
.wd-bar-tray { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; color: #fff; }
.wd .wd-tray { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px; border-radius: 5px; color: #fff; }
.wd .wd-tray:hover { background: rgba(255, 255, 255, .08); }
.wd .wd-clock { flex-direction: column; align-items: flex-end; justify-content: center; gap: 0; font-size: 11.5px; line-height: 15px; font-variant-numeric: tabular-nums; }
.wd .wd-show-desk { align-self: stretch; width: 8px; border-left: 1px solid rgba(255, 255, 255, .16); margin-left: 4px; }
.wd .wd-show-desk:hover { background: rgba(255, 255, 255, .12); }
.wd.is-narrow .wd-wide { display: none; }
.wd.is-narrow .wd-bar { justify-content: flex-start; padding-left: 4px; }

/* Windows */
.wd-win { position: absolute; z-index: 10; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 18px 48px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .28); }
.wd-win.is-max { left: 0; top: 0; right: 0; bottom: 48px; border-radius: 0; box-shadow: none; }
.wd-open-anim { animation: wd-open .14s ease-out; }
@keyframes wd-open { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.wd-win-head { display: flex; flex: none; align-items: center; gap: 8px; height: 32px; padding-left: 10px; background: #F3F3F3; color: #888; font-size: 12px; touch-action: none; }
.wd-win.is-front .wd-win-head { color: #1B1D22; }
.wd-win-title { flex: 1; }
.wd-win-btns { display: flex; align-self: stretch; }
.wd .wd-win-btn { display: grid; place-items: center; width: 44px; color: inherit; }
.wd .wd-win-btn:hover { background: rgba(0, 0, 0, .07); }
.wd .wd-win-close:hover { background: #C42B1C; color: #fff; }
.wd-win-btn .wd-ico { width: 10px; height: 10px; }
.wd-win-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wd-win-grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none; }
.wd-win.is-max .wd-win-grip, .wd.is-narrow .wd-win-btn.wd-win-max { display: none; }
.wd.is-narrow .wd-win-btn { width: 40px; }
.wd-status { display: flex; flex: none; align-items: center; min-height: 24px; padding: 0 12px; border-top: 1px solid #EDEDED; background: #FAFAFA; font-size: 11.5px; color: #555; }
.wd-status-split { justify-content: space-between; gap: 12px; }
.wd-input { min-width: 0; height: 28px; box-sizing: border-box; padding: 0 10px; border: 1px solid #D5D5D5; border-bottom-color: #A5A5A5; border-radius: 4px; background: #fff; font: inherit; color: #1B1D22; user-select: text; }
.wd-input::placeholder { color: #666; }

.wd-tools { display: flex; flex: none; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid #EDEDED; background: #F9F9F9; }
.wd-tools-2 { padding-top: 4px; padding-bottom: 4px; background: #fff; }
.wd .wd-tool { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border-radius: 4px; }
.wd .wd-tool:hover:not(:disabled) { background: rgba(0, 0, 0, .06); }
.wd .wd-tool:disabled { opacity: .4; }
.wd .wd-tool-icon { width: 28px; padding: 0; justify-content: center; }
.wd-tool .wd-ico { width: 14px; height: 14px; }

/* File Explorer */
.wd-ex { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.wd-crumb { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; height: 28px; padding: 0 10px; overflow: hidden; border: 1px solid #E2E2E2; border-radius: 4px; background: #fff; white-space: nowrap; }
.wd-crumb-sep { color: #888; }
.wd-ex-search { width: 120px; }
.wd-ex-main { display: flex; flex: 1; min-height: 0; }
.wd-ex-nav { display: flex; flex: none; flex-direction: column; gap: 1px; width: 124px; padding: 6px; overflow: auto; border-right: 1px solid #EDEDED; background: #FBFBFB; }
.wd .wd-ex-place { display: flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 6px; border-radius: 4px; white-space: nowrap; }
.wd .wd-ex-place:hover { background: rgba(0, 0, 0, .05); }
.wd .wd-ex-place.is-on { background: #E5F1FB; }
.wd-ex-list { flex: 1; min-width: 0; overflow: auto; }
.wd .wd-ex-row { display: grid; grid-template-columns: minmax(120px, 1fr) 84px 92px 56px; gap: 8px; align-items: center; width: 100%; min-height: 26px; padding: 0 10px; box-sizing: border-box; }
.wd .wd-ex-row:hover:not(.wd-ex-head) { background: #F2F7FC; }
.wd .wd-ex-row.is-on { background: #CCE8FF; }
.wd-ex-head { min-height: 26px; border-bottom: 1px solid #EDEDED; font-size: 11.5px; color: #555; }
.wd-ex-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wd-ex-name .wd-ico { width: 16px; height: 16px; }
.wd-ex-cell { overflow: hidden; color: #555; white-space: nowrap; text-overflow: ellipsis; }
.wd-ex-size { text-align: right; }
.wd-ex-none { margin: 0; padding: 20px 12px; color: #555; }
.wd.is-narrow .wd-ex-nav, .wd.is-narrow .wd-ex-type, .wd.is-narrow .wd-ex-search { display: none; }
.wd.is-narrow .wd-ex-row { grid-template-columns: minmax(0, 1fr) 76px 52px; }
.wd-pc { padding: 10px 14px; }
.wd-pc h3 { margin: 8px 0 8px; font-size: 12px; font-weight: 600; }
.wd .wd-drive { display: flex; gap: 10px; align-items: center; width: min(280px, 100%); padding: 8px; border-radius: 4px; }
.wd .wd-drive:hover { background: #F2F7FC; }
.wd-drive > .wd-ico { width: 36px; height: 36px; }
.wd-drive-text { display: grid; flex: 1; gap: 3px; min-width: 0; }
.wd-drive-text strong { font-weight: 500; }
.wd-drive-text small { font-size: 11.5px; color: #555; }
.wd-meter { height: 12px; border: 1px solid #BCBCBC; background: #E6E6E6; }
.wd-meter-fill { display: block; width: 22%; height: 100%; background: #26A0DA; }
.wd-pc-folders { display: flex; flex-wrap: wrap; gap: 6px; }
.wd .wd-pc-folder { display: inline-flex; align-items: center; gap: 7px; width: 118px; padding: 7px; border-radius: 4px; }
.wd .wd-pc-folder:hover { background: #F2F7FC; }
.wd-pc-folder .wd-ico { width: 22px; height: 22px; }

/* Browser */
.wd-web { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.wd-web-tabs { display: flex; flex: none; padding: 4px 8px 0; background: #E8EAED; }
.wd-web-tab { display: flex; align-items: center; gap: 6px; width: min(200px, 60%); height: 28px; padding: 0 10px; border-radius: 8px 8px 0 0; background: #F9F9F9; }
.wd-web-tab .wd-ico { width: 14px; height: 14px; }
.wd-web-lock { display: grid; flex: none; place-items: center; width: 20px; color: #555; }
.wd-web-lock .wd-ico { width: 12px; height: 12px; }
.wd-web-address { flex: 1; border-radius: 14px; background: #F1F3F4; border-color: transparent; }
.wd-web-page { flex: 1; min-height: 0; overflow: auto; background: #fff; }
.wd-web-home { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 16px; }
.wd-web-mark .wd-ico { width: 44px; height: 44px; }
.wd-web-home form { width: min(360px, 100%); }
.wd-web-search { width: 100%; height: 36px; padding: 0 16px; border-radius: 18px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); border-color: #E2E2E2; }
.wd-web-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.wd .wd-web-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; padding: 8px 2px; border-radius: 6px; font-size: 11.5px; }
.wd .wd-web-tile:hover { background: #F1F3F4; }
.wd-web-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 600; color: #fff; }
.wd-web-note { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 400px; margin: 0 auto; padding: 28px 20px; }
.wd-web-note h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 22px; }
.wd-web-note p { margin: 0; font-size: 13px; line-height: 19px; color: #444; }
.wd a.wd-cta { display: inline-flex; align-items: center; height: 34px; margin-top: 4px; padding: 0 14px; border-radius: 6px; background: var(--indigo-600); font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; }
.wd a.wd-cta:hover { background: var(--indigo-700); }
.wd .wd-link { color: #0B5CAD; }
.wd .wd-link:hover { text-decoration: underline; }

/* Spreadsheet */
.wd-sh { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.wd-sh-menu { display: flex; flex: none; gap: 14px; padding: 5px 12px; border-bottom: 1px solid #EDEDED; background: #fff; }
.wd-sh-menu .is-on { color: #137A45; box-shadow: 0 2px 0 #1B9A58; font-weight: 500; }
.wd-sh-line { display: flex; flex: none; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-bottom: 1px solid #E2E2E2; background: #fff; }
.wd-sh-where { width: 44px; padding-right: 6px; border-right: 1px solid #E2E2E2; font-size: 11.5px; color: #333; }
.wd-sh-fx { font-style: italic; color: #666; }
.wd-sh-bar { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: #1B1D22; outline: none; }
.wd-sh-scroll { flex: 1; min-height: 0; overflow: auto; background: #fff; }
.wd-sh-grid { width: 100%; min-width: 380px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.wd-sh-grid th { width: 28px; height: 22px; padding: 0; border: 1px solid #E2E2E2; background: #F4F4F4; font-size: 11px; font-weight: 400; color: #555; text-align: center; }
.wd-sh-grid thead th { font-weight: 400; }
.wd-sh-grid thead th:not(:first-child) { width: auto; }
.wd-sh-grid td { height: 23px; padding: 0; border: 1px solid #E2E2E2; }
.wd-sh-cell { display: block; width: 100%; height: 22px; box-sizing: border-box; padding: 0 6px; border: 0; background: none; font: inherit; color: #1B1D22; user-select: text; }
.wd-sh-cell:focus { outline: 2px solid #1B9A58; outline-offset: -2px; }
.wd-sh-num { text-align: right; }
.wd-sh-label { display: block; padding: 0 6px; font-weight: 600; }
.wd-sh-right { text-align: right; }
.wd-sh-total td { background: #F1F8F4; }
.wd .wd-sh-sum { display: block; width: 100%; height: 22px; padding: 0 6px; font-weight: 600; text-align: right; }

/* Notepad */
.wd-notepad { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.wd-note { flex: 1; min-height: 0; padding: 8px 12px; border: 0; resize: none; background: #fff; font: 13px/19px Consolas, "Cascadia Mono", ui-monospace, monospace; color: #1B1D22; outline: none; user-select: text; }

/* Calculator */
.wd-calc { display: flex; flex: 1; flex-direction: column; min-height: 0; background: #F3F3F3; }
.wd-calc-screen { flex: none; padding: 6px 12px 6px; text-align: right; }
.wd-calc-line { min-height: 16px; font-size: 11.5px; color: #555; }
.wd-calc-out { display: block; overflow: hidden; font-size: 28px; font-weight: 600; line-height: 36px; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.wd-calc-keys { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; min-height: 0; }
.wd .wd-calc-key { display: grid; place-items: center; min-height: 30px; border-radius: 4px; background: #F9F9F9; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.wd .wd-calc-key:hover { background: #EDEDED; }
.wd .wd-calc-key.is-num { background: #fff; font-weight: 600; }
.wd .wd-calc-key.is-eq { background: #2B6CB8; color: #fff; }
.wd .wd-calc-key.is-eq:hover { background: #245C9E; }

/* Settings */
.wd-set { display: flex; flex: 1; min-height: 0; background: #F3F3F3; }
.wd-set-nav { display: flex; flex: none; flex-direction: column; gap: 2px; width: 128px; padding: 8px; }
.wd .wd-set-tab { min-height: 28px; padding: 0 10px; border-radius: 4px; }
.wd .wd-set-tab:hover { background: rgba(0, 0, 0, .05); }
.wd .wd-set-tab.is-on { background: #E9E9E9; font-weight: 500; box-shadow: inset 2px 0 0 #2B6CB8; }
.wd-set-main { flex: 1; min-width: 0; padding: 12px 14px; overflow: auto; }
.wd-set-main h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 21px; }
.wd-set-card { overflow: hidden; border: 1px solid #E5E5E5; border-radius: 6px; background: #fff; }
.wd-set-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid #F0F0F0; }
.wd-set-row:first-child { border-top: 0; }
.wd-set-row span { color: #555; }
.wd-set-row strong { font-weight: 500; }
.wd-set-note { margin: 8px 0 0; font-size: 11.5px; color: #555; }
.wd-set-walls { display: flex; flex-wrap: wrap; gap: 8px; }
.wd .wd-set-wall { display: flex; align-items: flex-end; width: 104px; height: 64px; padding: 5px 7px; border-radius: 6px; color: #fff; font-size: 11.5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.wd .wd-set-wall.is-on { box-shadow: 0 0 0 2px #2B6CB8; }
.wd .wd-wall-ink { background: #22252D; }
.wd .wd-wall-night { background: #0B0D12; }
.wd .wd-wall-indigo { background: #2E2A6E; }
.wd.is-narrow .wd-set-nav { width: 100px; }

/* Popups */
.wd-pop { position: absolute; z-index: 1600; color: #fff; border-radius: 8px; background: rgba(36, 38, 46, .94); backdrop-filter: blur(26px); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.wd-start { left: 50%; bottom: 56px; width: min(420px, calc(100% - 16px)); transform: translateX(-50%); }
.wd-start-top { padding: 14px 18px 10px; }
.wd-start-search { width: 100%; height: 30px; box-sizing: border-box; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .1); border-bottom-color: #5CB2F2; border-radius: 15px; background: rgba(255, 255, 255, .07); font: inherit; color: #fff; user-select: text; }
.wd-start-search::placeholder { color: #C7CBD3; }
.wd-start h4 { margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: #fff; }
.wd-start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 2px; }
.wd .wd-start-app { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 4px; font-size: 11.5px; line-height: 14px; text-align: center; color: #fff; }
.wd .wd-start-app:hover, .wd .wd-start-recent:hover { background: rgba(255, 255, 255, .08); }
.wd-start-app .wd-ico { width: 28px; height: 28px; }
.wd-start-none { margin: 0; padding: 10px 0; color: #C7CBD3; }
.wd-start-recents { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; }
.wd .wd-start-recent { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 6px; border-radius: 4px; color: #fff; }
.wd-start-recent .wd-ico { width: 24px; height: 24px; }
.wd-start-recent > span:last-child { display: grid; min-width: 0; }
.wd-start-recent strong { font-weight: 400; }
.wd-start-recent small { font-size: 11px; color: #C7CBD3; }
.wd-start-foot { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 8px 8px; background: rgba(0, 0, 0, .18); }
.wd-start-user { display: flex; align-items: center; gap: 8px; }
.wd-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo-500); font-size: 11.5px; font-weight: 600; }
.wd-start-foot .wd-ico { width: 16px; height: 16px; }
.wd-power { right: calc(50% - 200px); bottom: 104px; z-index: 1700; padding: 4px; }
.wd.is-narrow .wd-power { right: 16px; }
.wd .wd-menu-item { display: block; width: 100%; min-width: 130px; padding: 6px 12px; border-radius: 4px; color: #fff; white-space: nowrap; }
.wd .wd-menu-item:hover { background: rgba(255, 255, 255, .1); }
.wd-context { padding: 4px; }
.wd-context hr { margin: 4px 6px; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.wd-cal { right: 8px; bottom: 56px; width: 244px; padding: 12px; }
.wd-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wd-cal-head strong { font-weight: 600; }
.wd-cal-nav { display: flex; }
.wd-cal-nav .wd-task { width: 26px; height: 26px; }
.wd-cal-nav .wd-ico { width: 14px; height: 14px; }
.wd-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; text-align: center; font-size: 11.5px; line-height: 28px; font-variant-numeric: tabular-nums; }
.wd-cal-day { color: #C7CBD3; }
.wd-cal-date.is-today { border-radius: 50%; background: #5CB2F2; color: #0B0D12; font-weight: 600; }
.wd-quick { right: 8px; bottom: 56px; display: grid; gap: 10px; width: 250px; padding: 12px; }
.wd-qs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wd .wd-qs-tile { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 6px; background: rgba(255, 255, 255, .08); font-size: 11px; line-height: 14px; color: #fff; text-align: center; }
.wd .wd-qs-tile.is-on { background: #2B6CB8; }
.wd-qs-slide { display: flex; align-items: center; gap: 8px; }
.wd-qs-slide input { flex: 1; min-width: 0; accent-color: #5CB2F2; }
.wd-boot { position: absolute; inset: 0; z-index: 1800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #0B0D12; color: #E5E7EB; font-size: 13px; }
.wd-boot img { width: 130px; opacity: .85; }
.wd-spin { width: 22px; height: 22px; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: wd-spin .9s linear infinite; }
@keyframes wd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wd-open-anim { animation: none; } .wd-spin { animation-duration: 2.4s; } }
@media (max-width: 639px) { .wd-screen { aspect-ratio: auto; height: 460px; } }

/* ------------------------------------------------------------ The Authenticator vault */
.dv { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); font-size: 13px; line-height: 19px; color: var(--text); }
.dv button { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.dv button:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: -2px; }
.dv-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
.dv-search { flex: 1; min-width: 0; height: 32px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--text); }
.dv-tag, .dd-tag { padding: 2px 8px; border-radius: 999px; background: var(--gray-75); font-size: 11.5px; font-weight: 500; line-height: 16px; color: var(--text-2); }
.dv .dv-add { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; white-space: nowrap; }
.dv .dv-add:hover { background: var(--gray-50); }
.dv-hint { padding: 8px 12px; border-bottom: 1px solid var(--indigo-100); background: var(--indigo-50); font-size: 12.5px; color: var(--indigo-800); }
.dv-main { display: grid; grid-template-columns: 152px minmax(0, 1fr); }
.dv-rail { display: flex; flex-direction: column; gap: 1px; padding: 8px; border-right: 1px solid var(--border-subtle); }
.dv .dv-folder { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--text-2); }
.dv .dv-folder:hover { background: var(--gray-75); }
.dv .dv-folder.is-on { background: var(--indigo-50); color: var(--indigo-700); font-weight: 600; }
.dv-count { font-variant-numeric: tabular-nums; }
.dv-list { min-width: 0; min-height: 348px; }
.dv .dv-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 14px; box-sizing: border-box; border-bottom: 1px solid var(--gray-75); }
.dv .dv-row:hover { background: var(--gray-50); }
.dv-mark { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.dv-text { display: grid; flex: 1; min-width: 0; }
.dv-text strong { overflow: hidden; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.dv-text small { overflow: hidden; font-size: 12px; line-height: 17px; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.dv-copied { font-size: 12px; font-weight: 500; color: #137A45; }
.dv-code { font-size: 17px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-code.is-low { color: #B4342A; }
.dv-ring { flex: none; width: 18px; height: 18px; transform: rotate(-90deg); }
.dv-none { margin: 0; padding: 24px 14px; color: var(--text-3); }
@media (max-width: 639px) {
  .dv-main { grid-template-columns: minmax(0, 1fr); }
  .dv-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .dv .dv-folder { flex: none; gap: 6px; }
  .dv-code { font-size: 15px; }
  .dv-top { flex-wrap: wrap; }
  .dv-search { flex-basis: 100%; }
}

/* ------------------------------------------------------------ Cloud Drive */
.dd { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); font-size: 13px; line-height: 19px; color: var(--text); }
.dd button { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.dd button:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: -2px; }
.dd-top { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-bottom: 1px solid var(--border-subtle); }
.dd-crumb { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.dd-crumb strong { font-weight: 600; }
.dd-crumb-sep { color: var(--text-3); }
.dd .dd-crumb-link { color: var(--text-2); }
.dd .dd-crumb-link:hover { text-decoration: underline; }
.dd .dd-upload { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--gray-900); font-weight: 500; color: #fff; }
.dd .dd-upload:hover { background: var(--gray-800); }
.dd-ico { display: inline-grid; flex: none; place-items: center; width: 16px; height: 16px; }
.dd-ico svg { display: block; width: 100%; height: 100%; }
.dd-main { display: grid; grid-template-columns: 144px minmax(0, 1fr); }
.dd-rail { display: flex; flex-direction: column; gap: 1px; padding: 8px; border-right: 1px solid var(--border-subtle); }
.dd-group { padding: 10px 8px 3px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.dd .dd-place { padding: 6px 8px; border-radius: 6px; color: var(--text-2); white-space: nowrap; }
.dd .dd-place:hover { background: var(--gray-75); }
.dd .dd-place.is-on { background: var(--indigo-50); color: var(--indigo-700); font-weight: 600; }
.dd-list { display: flex; flex-direction: column; min-width: 0; min-height: 348px; }
.dd-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px 32px; gap: 8px; align-items: center; min-height: 46px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--gray-75); }
.dd-row.is-new { background: #F1F8F4; }
.dd-head { min-height: 34px; border-bottom-color: var(--border-subtle); font-size: 12px; font-weight: 500; color: var(--text-3); }
.dd-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.dd .dd-name-link:hover { color: var(--indigo-700); }
.dd-trunc { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd-cell { overflow: hidden; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.dd-size { text-align: right; font-variant-numeric: tabular-nums; }
.dd .dd-delete { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--text-3); }
.dd .dd-delete:hover { background: var(--gray-75); color: var(--text); }
.dd .dd-restore { grid-column: 4; justify-self: end; font-size: 12.5px; font-weight: 500; color: var(--indigo-700); white-space: nowrap; }
.dd .dd-restore:hover { text-decoration: underline; }
.dd-progress { display: grid; grid-column: 2 / 5; gap: 3px; min-width: 0; }
.dd-state { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--indigo-700); }
.dd-state .dd-ico { width: 12px; height: 12px; }
.dd-bar { height: 4px; overflow: hidden; border-radius: 2px; background: var(--gray-100); }
.dd-bar-fill { display: block; height: 100%; background: var(--indigo-600); transition: width .07s linear; }
.dd-none { margin: 0; padding: 24px 14px; color: var(--text-3); }
.dd-foot { display: flex; align-items: center; margin-top: auto; padding: 10px 14px; font-size: 12px; color: var(--text-3); }
.dd-foot-lock { display: inline-flex; align-items: center; gap: 6px; }
.dd-foot-lock .dd-ico { width: 13px; height: 13px; }
@media (max-width: 639px) {
  .dd-main { grid-template-columns: minmax(0, 1fr); }
  .dd-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .dd .dd-place { flex: none; }
  .dd-group { display: none; }
  .dd-row { grid-template-columns: minmax(0, 1fr) 58px 32px; }
  .dd-shared { display: none; }
  .dd-progress { grid-column: 2 / 4; }
  .dd .dd-restore { grid-column: 3; }
}

/* ------------------------------------------------------------ Uptime monitors */
.du { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); font-size: 13px; line-height: 19px; color: var(--text); }
.du button { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.du button:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: -2px; }
.du-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
.du-filters { display: flex; gap: 2px; }
.du .du-filter { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; color: var(--text-2); }
.du .du-filter:hover { background: var(--gray-75); }
.du .du-filter.is-on { background: var(--indigo-50); color: var(--indigo-700); font-weight: 600; }
.du-count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.du-filter.is-on .du-count { color: inherit; }

.du-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 176px 56px 90px 64px; gap: 12px; align-items: center; width: 100%; box-sizing: border-box; padding: 0 14px; }
.du-head { min-height: 32px; border-bottom: 1px solid var(--border-subtle); font-size: 12px; font-weight: 500; color: var(--text-3); }
.du .du-item { min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--gray-75); }
.du .du-item:hover { background: var(--gray-50); }
.du .du-item.is-on { background: var(--indigo-25); box-shadow: inset 2px 0 0 var(--indigo-500); }
.du-name { display: grid; min-width: 0; }
.du-name strong { overflow: hidden; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.du-name small { overflow: hidden; font-size: 12px; line-height: 17px; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.du-resp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.du-spark-box { display: block; flex: none; width: 96px; height: 26px; color: var(--success-fill); }
.du-spark-box svg { display: block; overflow: visible; }
.du-spark { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.du-fail { fill: var(--danger-fill); }
.du-beat { fill: var(--success-fill); }
.du-track { fill: var(--gray-100); }
.du-fill { fill: var(--success-fill); }
.du-ms { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.du-ms, .du-num, .du-ago { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.du-ago { color: var(--text-3); }
.du-flags { display: flex; gap: 4px; }
.du-flag { position: relative; display: block; line-height: 0; }
.du-flag .flag { width: 18px; height: 13px; }
.du-flag.is-down::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 7px; height: 7px; border: 1.5px solid var(--surface); border-radius: 50%; background: var(--danger-fill); }
.du-flag-none { font-size: 10px; font-weight: 600; color: var(--text-3); }

.du-detail { padding: 12px 14px 14px; background: var(--surface-2); }
.du-detail-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.du-detail-title strong { font-size: 13.5px; font-weight: 600; }
.du-detail-state { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.du-detail-state.is-down { color: var(--danger); font-weight: 500; }
.du-detail-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: start; }
.du-label { font-size: 12px; font-weight: 500; color: var(--text-3); }
.du-regions { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.du-regions .du-label { margin-bottom: 4px; }
.du-region { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.du-region-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.du-region-name .flag { width: 18px; height: 13px; }
.du-region-result { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.du-region-result.is-down { color: var(--danger); font-weight: 500; }
.du-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--success-fill); }
.du-dot.is-down { background: var(--danger-fill); }
.du-note { margin: 6px 0 0; font-size: 12px; line-height: 17px; color: var(--text-3); }

.du-alerts { min-width: 0; }
.du-alerts-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6px; }
.du-tabs { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--gray-100); }
.du .du-tab { height: 24px; padding: 0 10px; border-radius: 5px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.du .du-tab.is-on { background: var(--surface); box-shadow: var(--shadow-xs); color: var(--text); }
.du-msg { min-width: 0; min-height: 150px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12.5px; line-height: 18px; }
.du-mail-row { display: flex; gap: 8px; min-width: 0; padding-bottom: 4px; }
.du-mail-row span { flex: none; width: 52px; color: var(--text-3); }
.du-mail-row strong { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.du-mail-row + .du-kv { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.du-kv { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 2px 8px; margin: 0; }
.du-kv dt { color: var(--text-3); }
.du-kv dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.du-slack-who { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.du-slack-logo { width: 16px; height: 16px; }
.du-slack-app { padding: 0 4px; border-radius: 3px; background: var(--gray-100); font-size: 10.5px; font-weight: 600; line-height: 15px; color: var(--text-3); }
.du-slack-time { font-size: 11.5px; color: var(--text-3); }
.du-slack-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.du-slack-title .du-dot { width: 10px; height: 10px; }
.du-slack-name { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 4px; }
.du-slack-link { color: #1264A3; overflow-wrap: anywhere; }
.du-slack-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px 12px; margin-top: 6px; }
.du-slack-fields div { display: flex; flex-direction: column; min-width: 0; }
.du-slack-fields strong { font-weight: 700; }
.du-slack-btn { display: inline-flex; align-items: center; height: 26px; margin-top: 8px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 5px; font-weight: 600; }
.du-slack-btn.is-danger { border-color: #E01E5A; color: #E01E5A; }
.du-hook-line { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 6px; font-family: var(--font-mono); font-size: 12px; }
.du-hook-method { flex: none; padding: 0 5px; border-radius: 4px; background: var(--indigo-50); font-weight: 600; color: var(--indigo-700); }
.du-hook-url { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.du-hook-body { margin: 0; padding: 8px 10px; overflow-x: auto; border-radius: 6px; background: var(--gray-900); font-family: var(--font-mono); font-size: 11.5px; line-height: 17px; color: #E6E8EC; white-space: pre; }

/* Narrower: the regions and last check move to the panel below the list. */
@media (max-width: 1240px) and (min-width: 1041px), (max-width: 760px) {
  .du-row { grid-template-columns: minmax(0, 1fr) 64px 160px 56px; }
  .du-c5, .du-c6 { display: none; }
  .du-spark-box { width: 76px; overflow: hidden; }
}
@media (max-width: 639px) {
  .du-top { padding: 8px 10px; }
  .du-head { display: none; }
  .du-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "resp up"; gap: 4px 10px; padding: 10px 12px; }
  .du .du-item { min-height: 0; padding: 10px 12px; }
  .du-c1 { grid-area: name; }
  .du-c2 { grid-area: status; justify-self: end; }
  .du-c3 { grid-area: resp; }
  .du-c4 { grid-area: up; justify-self: end; }
  .du-c4::after { content: " uptime"; color: var(--text-3); }
  .du-c4.is-none { visibility: hidden; }
  .du-detail { padding: 12px; }
  .du-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .du-msg { min-height: 0; }
}

/* Example incidents, and one alert on its own */
.du-top-title { font-size: 13.5px; font-weight: 600; }
.du-irow { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 180px) 120px 64px; gap: 12px; align-items: center; width: 100%; box-sizing: border-box; padding: 0 14px; }
.du-cause { overflow: hidden; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.du-i5 { text-align: right; }
.du-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.du-step { position: relative; display: flex; gap: 10px; padding-bottom: 10px; }
.du-step:last-child { padding-bottom: 0; }
.du-step:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 1px; background: var(--border-strong); }
.du-step-mark { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--danger-fill); }
.du-step.is-now .du-step-mark { background: var(--surface); box-shadow: inset 0 0 0 2px var(--danger-fill); }
.du-step.is-done .du-step-mark { background: var(--success-fill); }
.du-step-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.du-step-head strong { font-weight: 550; }
.du-step p { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--text-3); }
.du-single { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.du-single-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.du-single .du-msg { min-height: 0; }
@media (max-width: 639px) {
  .du-irow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "cause length"; gap: 4px 10px; padding: 10px 12px; }
  .du-i1 { grid-area: status; justify-self: end; }
  .du-i2 { grid-area: name; }
  .du-i3 { grid-area: cause; font-size: 12.5px; }
  .du-i4 { display: none; }
  .du-i5 { grid-area: length; }
}
