
:root { --cit-red: #b10000; --cit-red2: #d4140f; --cit-red-deep: #860000; --cit-tint: #fdeceb; --cit-ink: #15171b; --cit-ink2: #4d535c; --cit-ink3: #737a84; --cit-line: #e3e5e8; --cit-soft: #f4f5f7; --cit-glow: #ff6b63; --cit-ok: #2fbf62; --cit-mono: "PT Mono", ui-monospace, Consolas, monospace; --cit-tb: 48px; --cit-bar: 40px; }
@view-transition { navigation: auto; }

/* ═══ Plain view & the content of every window ═══════════ */
.hws .cit-os, .hws .cit-os-edit { display: none; }
.hws .cit-os-edit { display: block; padding: 10px 16px; background: #15171b; color: #fff; font: 700 14px/1.4 "PT Sans", sans-serif; }
.hws .hwx-cit-plain-header { border-bottom: 1px solid var(--cit-line); background: #fff; }
.hws .hwx-cit-plain-header .hws-logo img { width: 120px; height: auto; }
.hws .cit-modeswitch { border: 0; background: var(--cit-ink); color: #fff; padding: 9px 14px; border-radius: 8px; font: 700 14px "PT Sans", sans-serif; cursor: pointer; white-space: nowrap; }
.hws .cit-modeswitch:hover { background: var(--cit-red); }
.hws .hwx-cit-footer .hws-logo img { width: 150px; height: auto; }

.hws .cit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 2px solid transparent; font: 700 15px/1.2 "PT Sans", sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.hws .cit-btn:hover { transform: translateY(-1px); }
.hws .cit-btn-red { background: var(--cit-red); color: #fff; }
.hws .cit-btn-red:hover { background: var(--cit-red-deep); }
.hws .cit-btn-line { background: #fff; color: var(--cit-ink); border-color: #cfd3d8; }
.hws .cit-btn-line:hover { border-color: var(--cit-ink); }
.hws .cit-sysbtn { padding: 7px 16px; border-radius: 6px; border: 1px solid #c7cbd1; background: linear-gradient(#fff, #eef0f2); font: 400 14.5px "PT Sans", sans-serif; color: var(--cit-ink); min-width: 86px; cursor: pointer; }
.hws .cit-sysbtn:disabled { opacity: .45; cursor: default; }
.hws .cit-sysbtn.cit-primary { border-color: var(--cit-red); box-shadow: inset 0 0 0 1px var(--cit-red); }
.hws .cit-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hws .cit-empty { padding: 12px; border: 1.5px dashed #c9a227; background: #fff4c2; border-radius: 10px; font-size: 14px; }
.hws .cit-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hws .cit-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 400 13px var(--cit-mono); color: var(--cit-ink3); }
.hws .cit-crumbs a { color: var(--cit-ink2); text-decoration: none; }
.hws .cit-crumbs a:hover { color: var(--cit-red); }
.hws .cit-log { margin: 0; background: #0b0c0f; color: #cfd3d8; font: 400 13.5px/1.7 var(--cit-mono); border-radius: 10px; padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hws .cit-log a { color: #ff8a84; }
.hws .cit-ok { color: #45d07a; } .hws .cit-warn { color: #ffb44d; } .hws .cit-hl { color: #ff6b63; } .hws .cit-dim { color: #7d8590; }

/* Welcome */
.hws .hwx-cit-welcome > .hws-in { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: stretch; gap: 0; max-width: none; padding: 0; }
.hws .cit-leafside { height: 100%; min-height: 220px; background: linear-gradient(160deg, #c4110e, #6d0000); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 72px; box-sizing: border-box; gap: 8px; color: rgba(255,255,255,.7); font: 400 13px var(--cit-mono); position: relative; overflow: hidden; }
.hws .hwx-cit-welcome > .hws-in > .hws-code:first-child { align-self: stretch; }
.hws .cit-leafside::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M0 30h34l14 14h30M78 44v30l14 14h28M18 120v-22l14-14h26'/%3E%3Ccircle cx='78' cy='44' r='3' fill='%23fff' fill-opacity='.2'/%3E%3C/svg%3E"); }
.hws .cit-leafside img { width: 96px; position: relative; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)) brightness(1.15); }
.hws .cit-leafside span { position: relative; }
.hws .hwx-cit-w-main { padding: 30px 32px 30px; }
.hws .cit-headline em { font-style: normal; color: var(--cit-red); }
.hws .hwx-cit-hint { background: var(--cit-soft); border-radius: 10px; padding: 10px 13px; }
html:not(.js-os) .hws .hwx-cit-hint { display: none; }
.hws .hwx-cit-home-more { border-top: 1px solid var(--cit-line); padding-top: 18px; margin-top: 4px; width: 100%; }
.hws .hwx-cit-linkcard .hws-btn-link { padding: 0; text-align: left; justify-content: flex-start; }
.hws .hwx-cit-linkcard { transition: border-color .15s; }
.hws .hwx-cit-linkcard:hover { border-color: var(--cit-red); }
.hws .hwx-cit-linklist .hws-btn-link { padding: 8px 12px; border: 1px solid var(--cit-line); border-radius: 10px; width: 100%; justify-content: flex-start; color: var(--cit-ink); }
.hws .hwx-cit-linklist .hws-btn-link:hover { border-color: var(--cit-red); color: var(--cit-red); }

/* Plain English ⟷ Nerd */
.hws .hwx-cit-say-nerd, .hws .cit-nerdtxt { display: none; }
html.nerd .hws .hwx-cit-say-plain, html.nerd .hws .cit-plain { display: none; }
html.nerd .hws .hwx-cit-say-nerd { display: block; font-family: var(--cit-mono); }
html.nerd .hws .cit-nerdtxt { display: inline; font-family: var(--cit-mono); font-weight: 400; }
.hws .cit-viewswitch { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--cit-ink3); }
.hws .cit-viewswitch button { border: 1px solid var(--cit-line); background: #fff; padding: 5px 11px; border-radius: 6px; font: 700 13.5px "PT Sans", sans-serif; color: var(--cit-ink2); cursor: pointer; }
.hws .cit-viewswitch .cit-nerdbtn { font-family: var(--cit-mono); font-weight: 400; }
.hws .cit-viewswitch button[aria-pressed="true"] { background: var(--cit-ink); border-color: var(--cit-ink); color: #fff; }

/* Fix-It */
.hws .cit-fx-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hws .cit-fx-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--cit-line); border-radius: 12px; background: #fff; color: var(--cit-ink); text-decoration: none; font: 700 15.5px/1.3 "PT Sans", sans-serif; transition: border-color .12s, transform .12s, box-shadow .12s; }
.hws .cit-fx-opt:hover { border-color: var(--cit-red); transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(177,0,0,.6); }
.hws .cit-fx-opt i { font-style: normal; font-size: 24px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--cit-soft); flex: none; }
.hws .cit-fx-running { font: 700 18px "PT Sans", sans-serif; margin: 0 0 10px; }
.hws .cit-fx-run .cit-log { min-height: 180px; }
.hws .cit-fx-run .cit-progress { height: 8px; border-radius: 4px; background: var(--cit-soft); overflow: hidden; margin-top: 12px; }
.hws .cit-fx-run .cit-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cit-red), var(--cit-glow)); transition: width .3s; }
.hws .cit-fix h1 { font: 700 clamp(26px, 3vw, 34px)/1.15 "PT Sans", sans-serif; margin: 0; }
.hws .cit-fix h2 { font: 700 13px "PT Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cit-ink3); margin: 20px 0 6px; }
.hws .cit-fix-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hws .cit-replay { margin-bottom: 16px; font-size: 13px; }
.hws .cit-urgency { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 13px "PT Sans", sans-serif; background: var(--cit-soft); color: var(--cit-ink2); }
.hws .cit-urgency.hot { background: var(--cit-tint); color: var(--cit-red); }
.hws .cit-fix-plain { font-size: 18px; line-height: 1.55; margin: 0; }
.hws .cit-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.hws .cit-steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.hws .cit-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cit-red); color: #fff; font: 700 14px "PT Sans", sans-serif; }
.hws .cit-nerd { margin-top: 14px; border: 1px dashed #cfd3d8; border-radius: 10px; }
.hws .cit-nerd summary { cursor: pointer; padding: 9px 13px; font: 700 14px "PT Sans", sans-serif; color: var(--cit-ink2); }
.hws .cit-nerd p { margin: 0; padding: 0 13px 12px; font: 400 13.5px/1.6 var(--cit-mono); color: var(--cit-ink2); }
.hws .cit-svc { display: inline-flex; padding: 8px 12px; border-radius: 10px; background: var(--cit-soft); color: var(--cit-ink); text-decoration: none; font: 700 15px "PT Sans", sans-serif; }
.hws .cit-svc:hover { color: var(--cit-red); }
.hws .cit-fix-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cit-line); }

/* File Explorer */
.hws .hwx-cit-explorer > .hws-in { max-width: none; padding: 0; gap: 0; }
.hws .hwx-cit-explorer > .hws-in > .hws-code, .hws .hwx-cit-explorer > .hws-in > .hwx-cit-ex-cols { width: 100%; }
.hws .hwx-cit-ex-cols > .hws-code { align-self: stretch; }
.hws .cit-exbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid var(--cit-line); background: var(--cit-soft); }
.hws .cit-expath { font: 400 13.5px var(--cit-mono); color: var(--cit-ink2); background: #fff; border: 1px solid var(--cit-line); border-radius: 6px; padding: 5px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hws .cit-expath b { color: var(--cit-ink); }
.hws .hwx-cit-ex-cols { gap: 0 !important; align-items: stretch; }
.hws .hwx-cit-ex-cols > :first-child { flex: 0 0 220px !important; max-width: 220px; }
.hws .hwx-cit-ex-cols > :last-child { flex: 1 1 auto !important; }
.hws .cit-folders { display: grid; gap: 2px; align-content: start; padding: 10px 8px; background: #fafbfc; border-right: 1px solid var(--cit-line); height: 100%; }
.hws .cit-folders a { text-decoration: none; border-radius: 7px; padding: 9px 10px; font: 700 14.5px "PT Sans", sans-serif; color: var(--cit-ink2); }
.hws .cit-folders a:hover { background: #eef0f2; }
.hws .cit-folders a[aria-current="page"] { background: var(--cit-tint); color: var(--cit-red); }
.hws .hwx-cit-ex-main { padding: 22px 26px 28px; }
.hws .cit-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; width: 100%; }
.hws .cit-files li { display: grid; gap: 2px; padding: 12px 14px 12px 46px; border-radius: 10px; border: 1px solid var(--cit-line); position: relative; }
.hws .cit-files li::before { content: "📄"; position: absolute; left: 14px; top: 12px; font-size: 18px; }
html.nerd .hws .cit-files li::before { content: "⚙️"; }
.hws .cit-files b { font-size: 16px; }
.hws .cit-cap { color: var(--cit-ink2); font-size: 15px; }

/* Glossary links: Leafy explains them in Confidence OS */
html.js-os .hws main a[href*="/glossary#"], .hws .cit-jg { text-decoration: underline dotted var(--cit-red) 2px; text-underline-offset: 3px; cursor: help; color: inherit; }

/* Questions */
.hws .hwx-cit-faq { width: 100%; }

/* Switch to Us: the setup wizard (every step, one after another, without script) */
.hws .cit-setup { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 100%; }
.hws .cit-st-banner { background: linear-gradient(170deg, #c4110e, #5a0000); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 24px 12px; text-align: center; gap: 2px; }
.hws .cit-st-banner img { width: 70px; margin: 10px 0 auto; filter: brightness(1.15) drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
.hws .cit-st-banner b { font: 700 22px "PT Sans Narrow", "PT Sans", sans-serif; text-transform: uppercase; }
.hws .cit-st-banner span { font-size: 13px; opacity: .8; }
.hws .cit-st-main { display: flex; flex-direction: column; padding: 24px 26px 16px; }
.hws .cit-st-page h1 { font: 700 23px/1.2 "PT Sans", sans-serif; margin: 0 0 10px; }
.hws .cit-st-page h2 { font: 700 21px/1.2 "PT Sans", sans-serif; margin: 0 0 10px; }
.hws .cit-setup:not(.cit-wizard) .cit-st-page { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--cit-line); }
.hws .cit-wizard .cit-st-page { flex: 1; }
.hws .cit-st-list { padding-left: 20px; display: grid; gap: 8px; color: var(--cit-ink2); }
.hws .cit-eula { max-height: 150px; overflow: auto; border: 1px solid #c7cbd1; border-radius: 4px; padding: 10px 12px; font: 400 14px/1.6 var(--cit-mono); background: #fafbfc; margin: 10px 0; }
.hws .cit-eula p { margin: 0 0 6px; }
.hws .cit-st-accept label { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 15px; }
.hws .cit-st-scan { margin-top: 16px; font: 400 13.5px var(--cit-mono); color: var(--cit-ink2); }
.hws .cit-st-prog { height: 20px; border: 1px solid #c7cbd1; border-radius: 4px; padding: 2px; background: #fff; margin-top: 8px; }
.hws .cit-st-prog i { display: block; height: 100%; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--cit-red) 0 12px, var(--cit-red2) 12px 14px); transition: width .4s; }
.hws .cit-st-nav { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--cit-line); }
.hws .cit-shake { animation: cit-shake .35s; }
@keyframes cit-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* Network Map */
.hws .cit-netmap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 100%; }
.hws .cit-nm-map { background: #12151a; display: grid; place-items: center; padding: 12px; }
.hws .cit-nm-map svg { width: 100%; height: auto; }
.hws .cit-nm-water { fill: #1c2731; } .hws .cit-nm-river { fill: none; stroke: #1c2731; stroke-width: 7; stroke-linecap: round; }
.hws .cit-nm-wlabel { fill: #5f7a90; font: italic 400 14px "PT Sans", sans-serif; letter-spacing: .08em; }
.hws .cit-nm-ring { fill: none; stroke: #343a44; stroke-dasharray: 3 6; }
.hws .cit-nm-rlabel { fill: #6b737e; font: 400 11.5px var(--cit-mono); }
.hws .cit-nm-hq { fill: var(--cit-red2); }
.hws .cit-nm-hq-pulse { fill: var(--cit-red2); opacity: .25; animation: cit-hq 2s ease-out infinite; transform-origin: 72px 213px; }
@keyframes cit-hq { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.hws .cit-nm-towns a { cursor: pointer; }
.hws .cit-nm-towns circle { fill: #ff5a52; transition: r .15s; }
.hws .cit-nm-towns a:hover circle, .hws .cit-nm-towns a.on circle { r: 9; }
.hws .cit-nm-towns text { fill: #e6e8eb; font: 700 14px "PT Sans", sans-serif; }
.hws .cit-nm-towns a.on text { fill: #ff8a84; }
.hws .cit-nm-path { fill: none; stroke: #ff5a52; stroke-width: 2; stroke-dasharray: 5 6; opacity: .8; }
.hws .cit-nm-packet { fill: #fff; filter: drop-shadow(0 0 6px #ff5a52); }
.hws .cit-nm-side { padding: 22px; }
.hws .cit-nm-side h1 { font: 700 26px "PT Sans", sans-serif; margin: 0 0 8px; }
.hws .cit-nm-side p { color: var(--cit-ink2); font-size: 15.5px; }
.hws .cit-nm-hint { font-weight: 700; color: var(--cit-red) !important; }
.hws .cit-nm-term { min-height: 110px; margin: 10px 0 14px; }
.hws .cit-nm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hws .cit-nm-list a { display: inline-block; border: 1px solid var(--cit-line); border-radius: 999px; padding: 5px 12px; font: 700 13.5px "PT Sans", sans-serif; text-decoration: none; color: var(--cit-ink); }
.hws .cit-nm-list a:hover, .hws .cit-nm-list a.on { border-color: var(--cit-red); color: var(--cit-red); }
.hws .cit-townping { font-size: 13.5px; }
.hws .hwx-cit-chips .hws-btn { width: 100%; }

/* Phish Sweeper */
.hws .cit-phish { display: flex; flex-direction: column; min-height: 100%; }
.hws .cit-ph-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 12px; border-bottom: 1px solid var(--cit-line); }
.hws .cit-ph-top h1 { font: 700 26px "PT Sans", sans-serif; margin: 0 0 4px; }
.hws .cit-ph-top p { margin: 0; color: var(--cit-ink2); }
.hws .cit-ph-score { font: 400 14px var(--cit-mono); color: var(--cit-ink2); white-space: nowrap; background: var(--cit-soft); padding: 8px 12px; border-radius: 10px; }
.hws .cit-ph-score b { font-size: 22px; color: var(--cit-red); }
.hws .cit-ph-body { flex: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 420px; }
.hws .cit-ph-inbox { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--cit-line); overflow: auto; }
.hws .cit-ph-inbox li { border-bottom: 1px solid var(--cit-line); }
.hws .cit-ph-inbox button { display: grid; gap: 1px; width: 100%; text-align: left; border: 0; background: #fff; padding: 11px 30px 11px 18px; position: relative; cursor: pointer; font: inherit; }
.hws .cit-ph-inbox button::before { content: ""; position: absolute; left: 7px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: #2f7bff; }
.hws .cit-ph-inbox button.done::before { display: none; }
.hws .cit-ph-inbox button:hover { background: var(--cit-soft); }
.hws .cit-ph-inbox button.sel { background: var(--cit-tint); }
.hws .cit-ph-inbox b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hws .cit-ph-inbox span { font-size: 13.5px; color: var(--cit-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hws .cit-ph-inbox em { position: absolute; right: 10px; top: 10px; font: 700 11px "PT Sans", sans-serif; padding: 1px 7px; border-radius: 999px; }
.hws .cit-ph-inbox em.right { background: #e3f6ea; color: #1d6b3a; } .hws .cit-ph-inbox em.wrong { background: var(--cit-tint); color: var(--cit-red); }
.hws .cit-ph-read { padding: 20px 24px; overflow: auto; }
.hws .cit-ph-empty { color: var(--cit-ink3); margin-top: 40px; text-align: center; }
.hws .cit-ph-mail h3 { font: 700 21px "PT Sans", sans-serif; margin: 0 0 10px; }
.hws .cit-ph-meta { font-size: 14px; color: var(--cit-ink2); padding-bottom: 12px; border-bottom: 1px solid var(--cit-line); margin-bottom: 14px; }
.hws .cit-ph-meta code { font: 400 13.5px var(--cit-mono); background: var(--cit-soft); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.hws .cit-ph-fakebtn { display: inline-block; padding: 9px 16px; border-radius: 6px; background: #2f7bff; color: #fff; font-weight: 700; cursor: not-allowed; }
.hws .cit-ph-choose { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hws .cit-ph-verdict { margin: 18px 0 14px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid; font-size: 15.5px; }
.hws .cit-ph-verdict.right { background: #effaf3; border-color: #9fdcb5; } .hws .cit-ph-verdict.wrong { background: #fff1f0; border-color: #f2aaa5; }
.hws .cit-ph-verdict b { display: block; margin-bottom: 3px; }
.hws .cit-ph-final { text-align: center; padding: 30px 20px; }
.hws .cit-ph-final .cit-ph-choose { justify-content: center; }
.hws .cit-ph-big { font: 700 64px/1 "PT Sans Narrow", "PT Sans", sans-serif; color: var(--cit-red); }
.hws .cit-ph-list { list-style: none; margin: 0; padding: 16px 22px; display: grid; gap: 12px; }
.hws .cit-ph-list li { border: 1px solid var(--cit-line); border-radius: 12px; padding: 14px 16px; }
.hws .cit-ph-list h3 { font: 700 17px "PT Sans", sans-serif; margin: 0 0 6px; }
.hws .cit-ph-list .cit-ph-meta { border: 0; margin: 0 0 4px; padding: 0; }
.hws .cit-ph-list summary { cursor: pointer; font-weight: 700; color: var(--cit-red); }
.hws .cit-ph-signs { padding: 18px 22px 24px; border-top: 1px solid var(--cit-line); }
.hws .cit-ph-signs h2 { font: 700 20px "PT Sans", sans-serif; margin: 0 0 8px; }
.hws .cit-ph-signs ol { padding-left: 20px; display: grid; gap: 6px; }

/* Glossary */
.hws .cit-glossary h1 { font: 700 clamp(26px, 3vw, 34px)/1.15 "PT Sans", sans-serif; margin: 0 0 8px; }
.hws .cit-lead { font-size: 18px; color: var(--cit-ink2); }
.hws .cit-g-search { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font: 700 14px "PT Sans", sans-serif; }
.hws .cit-g-search input { flex: 1; max-width: 320px; font: 400 15.5px "PT Sans", sans-serif; border: 1.5px solid #d3d6db; border-radius: 8px; padding: 8px 11px; }
.hws .cit-g-search input:focus { outline: none; border-color: var(--cit-red); }
.hws .cit-glossary dl { margin: 0; display: grid; gap: 8px; }
.hws .cit-term { padding: 12px 15px; border-radius: 12px; border: 1px solid var(--cit-line); scroll-margin-top: 20px; }
.hws .cit-term.hit { border-color: var(--cit-red); background: var(--cit-tint); }
.hws .cit-term dt { font: 700 17px "PT Sans", sans-serif; color: var(--cit-red); }
.hws .cit-term dd { margin: 3px 0 0; }
.hws .cit-g-plain { margin: 0 0 4px; }
.hws .cit-g-nerd { margin: 0; font: 400 13.5px/1.55 var(--cit-mono); color: var(--cit-ink2); }
.hws .cit-g-nerd span { color: var(--cit-ink3); }

/* About Us.txt */
.hws .hwx-cit-notepad { background: #fffdf6; }
.hws .hwx-cit-notepad > .hws-in { max-width: none; padding: 0 28px; }
.hws .cit-npmenu { display: flex; gap: 16px; margin: 0 -28px 10px; padding: 6px 14px; border-bottom: 1px solid #ece6d3; font-size: 13.5px; color: var(--cit-ink2); background: #fbf8ee; }
.hws .hwx-cit-np-title { font-family: var(--cit-mono) !important; letter-spacing: 0; margin-top: 8px; }
.hws .hwx-cit-np-h { font-family: var(--cit-mono) !important; color: var(--cit-red); margin-top: 14px; letter-spacing: 0; }
.hws .hwx-cit-mono { font-family: var(--cit-mono) !important; font-size: 15px; line-height: 1.7; white-space: pre-wrap; color: #2a2c31; }

/* Since 2001 */
.hws .cit-uptime { width: 100%; background: #15171b; color: #fff; border-radius: 14px; padding: 22px 24px; position: relative; overflow: hidden; }
.hws .cit-up-label { font: 400 13px var(--cit-mono); color: #9aa1ab; text-transform: uppercase; letter-spacing: .12em; }
.hws .cit-up-big { display: block; font: 700 64px/1 "PT Sans Narrow", "PT Sans", sans-serif; margin: 6px 0; color: #fff; }
.hws .cit-up-sub { color: #aab0b9; }
.hws .cit-up-spark { position: absolute; right: 18px; bottom: 18px; width: 46%; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 50 L20 46 L40 48 L60 40 L80 42 L100 32 L120 34 L140 24 L160 20 L180 14 L200 8' fill='none' stroke='%2345d07a' stroke-width='2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hws .hwx-cit-timeline { border-left: 2px solid var(--cit-line); width: 100%; }
.hws .hwx-cit-tl-row { padding: 9px 0 9px 16px; position: relative; }
.hws .hwx-cit-tl-row::before { content: ""; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--cit-red); }
.hws .hwx-cit-year { font-family: var(--cit-mono) !important; font-weight: 700; color: var(--cit-red); min-width: 56px; }

/* New Ticket */
.hws .hwx-cit-ticket-band > .hws-in { max-width: none; padding: 0; gap: 0; }
.hws .hwx-cit-ticket-cols { gap: 0 !important; align-items: stretch; }
.hws .hwx-cit-ticket-side { background: var(--cit-soft); border-left: 1px solid var(--cit-line); padding: 18px; height: 100%; }
.hws .cit-ticket { padding: 22px 26px; }
.hws .cit-tk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hws .cit-tk-head h1 { font: 700 24px "PT Sans", sans-serif; margin: 0; }
.hws .cit-tk-head h1 span { font: 400 15px var(--cit-mono); color: var(--cit-ink3); }
.hws .cit-tk-badge { font: 700 12px var(--cit-mono); padding: 4px 9px; border-radius: 6px; background: #e8f0ff; color: #1f4fbf; }
.hws .cit-tk-sub { color: var(--cit-ink2); }
.hws .cit-tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 14px 0; }
.hws .cit-ticket label { display: grid; gap: 5px; font: 700 14px "PT Sans", sans-serif; }
.hws .cit-ticket label small { font-weight: 400; color: var(--cit-ink3); }
.hws .cit-ticket input:not([type="radio"]), .hws .cit-ticket textarea { width: 100%; font: 400 16px "PT Sans", sans-serif; border: 1.5px solid #d3d6db; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--cit-ink); box-sizing: border-box; }
.hws .cit-ticket input:focus, .hws .cit-ticket textarea:focus { outline: none; border-color: var(--cit-red); box-shadow: 0 0 0 3px rgba(177,0,0,.12); }
.hws .cit-ticket textarea { min-height: 120px; resize: vertical; }
.hws .cit-tk-pri { border: 0; padding: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hws .cit-tk-pri legend { font: 700 14px "PT Sans", sans-serif; margin-bottom: 6px; padding: 0; }
.hws .cit-tk-pri label { display: block; position: relative; font-weight: 400; }
.hws .cit-tk-pri input { position: absolute; opacity: 0; }
.hws .cit-tk-pri span { display: inline-block; padding: 7px 13px; border: 1.5px solid #d3d6db; border-radius: 999px; font: 700 14px "PT Sans", sans-serif; cursor: pointer; }
.hws .cit-tk-pri input:checked + span { border-color: var(--cit-red); background: var(--cit-tint); color: var(--cit-red); }
.hws .cit-tk-pri input:focus-visible + span { outline: 3px solid var(--cit-glow); outline-offset: 2px; }
.hws .cit-tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.hws .cit-tk-foot span { font-size: 14px; color: var(--cit-ink3); }
.hws .cit-tk-done { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #effaf3; border: 1px solid #9fdcb5; color: #1d5b31; }
.hws .cit-tk-error { color: var(--cit-red); font-weight: 700; }
.hws .cit-opennow { font-weight: 700; font-size: 14px; color: #1d6b3a; }
.hws .cit-opennow.closed { color: var(--cit-red); }

/* ═══ Confidence OS ═════════════════════════════════════ */
html.js-os, html.js-os body { overflow: hidden; height: 100%; }
html.js-os .hws { background: #0c0e12; }
html.js-os .hws .cit-os { display: block; }
html.js-os .hws .hwx-cit-plain-header, html.js-os .hws > footer { display: none; }
html.js-os .hws .cit-desk { view-transition-name: cit-desk; }
html.js-os .hws .cit-taskbar { view-transition-name: cit-taskbar; }
html.js-os:not(.mobile) .hws > main { view-transition-name: cit-window; }
html.js-os:not(.mobile) .hws .cit-winbar { view-transition-name: cit-winbar; }

/* The window: the page's own <main>, placed by the OS component's CSS variables */
html.js-os:not(.mobile) .hws > main {
  position: fixed; z-index: 20; overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 0 0 10px 10px;
  left: var(--cit-x, max(118px, calc(50vw - 450px))); top: calc(var(--cit-y, 14px) + var(--cit-bar));
  width: var(--cit-w, min(1000px, calc(100vw - 250px))); height: calc(var(--cit-h, calc(100vh - var(--cit-tb) - 40px)) - var(--cit-bar));
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.35);
}
html.js-os:not(.mobile) .hws .cit-winbar {
  position: fixed; z-index: 21; left: var(--cit-x, max(118px, calc(50vw - 450px))); top: var(--cit-y, 14px); width: var(--cit-w, min(1000px, calc(100vw - 250px)));
  border-radius: 10px 10px 0 0;
}
html.js-os.cit-max:not(.mobile) .hws > main { left: 0; top: var(--cit-bar); width: 100vw; height: calc(100vh - var(--cit-tb) - var(--cit-bar)); border-radius: 0; }
html.js-os.cit-max:not(.mobile) .hws .cit-winbar { left: 0; top: 0; width: 100vw; border-radius: 0; }
html.js-os.cit-min .hws > main, html.js-os.cit-min .hws .cit-winbar { display: none; }
html.js-os .hws > main > section:first-child { margin-top: 0; }
.hws .cit-bar { display: flex; align-items: center; gap: 9px; height: var(--cit-bar); padding: 0 5px 0 11px; background: #15171b; color: #fff; user-select: none; }
.hws .cit-bar-title { flex: 1; min-width: 0; font: 700 14px "PT Sans", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; touch-action: none; line-height: var(--cit-bar); }
.hws .cit-bar-title:active { cursor: grabbing; }
.hws .cit-back { display: none; }
.hws .cit-winbtn { width: 32px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #c9cdd3; display: grid; place-items: center; cursor: pointer; }
.hws .cit-winbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hws .cit-winbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.hws .cit-winbtn.cit-close:hover { background: var(--cit-red2); }
.hws .cit-appicon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.25); flex: none; }
.hws .cit-appicon svg { width: 30px; height: 30px; }
.hws .cit-appicon img { width: 34px; filter: brightness(0) invert(1); }
.hws .cit-appicon-sm { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.hws .cit-appicon-sm svg { width: 14px; height: 14px; } .hws .cit-appicon-sm img { width: 15px; }

/* Desktop */
.hws .cit-desk { position: fixed; inset: 0 0 var(--cit-tb) 0; z-index: 1; overflow: hidden; }
.hws .cit-wallwrap, .hws .cit-wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.hws .cit-shimmer rect { animation: cit-shimmer 4s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
.hws .cit-shimmer rect:nth-child(2n) { animation-delay: -1.3s; }
@keyframes cit-shimmer { from { opacity: .25; transform: scaleX(.7); } to { opacity: 1; transform: scaleX(1.15); } }
.hws .cit-bridge-lights circle[fill="#ff3b30"] { animation: cit-blink 2s steps(1) infinite; }
@keyframes cit-blink { 50% { opacity: .15; } }
.hws .cit-ship-lane { transform: translate(-420px, 752px); }
.hws .cit-ship { animation: cit-sail 140s linear infinite; cursor: pointer; pointer-events: all; }
@keyframes cit-sail { from { transform: translateX(0); } to { transform: translateX(2050px); } }
.hws .cit-icons { position: absolute; top: 14px; left: 12px; bottom: 54px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 100px); grid-auto-columns: 100px; gap: 2px 4px; align-content: start; z-index: 2; }
.hws .cit-dicon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 6px; border: 0; border-radius: 10px; background: none; color: #fff; font: 700 13px/1.2 "PT Sans", sans-serif; text-align: center; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.9); cursor: pointer; }
.hws .cit-dicon:hover, .hws .cit-dicon:focus-visible { background: rgba(255,255,255,.13); outline: none; }
.hws .cit-dicon[aria-current="page"] { background: rgba(255,255,255,.08); }
.hws .cit-sticky { position: absolute; z-index: 1; width: 196px; padding: 14px 16px 16px; background: #fff3a6; color: #3b3210; font: 700 15px/1.35 "PT Sans", sans-serif; box-shadow: 0 14px 24px -12px rgba(0,0,0,.7); }
.hws .cit-sticky::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(255,255,255,.45); transform: rotate(-3deg); }
.hws .cit-s-status { top: 26px; right: 30px; transform: rotate(2.5deg); display: grid; gap: 2px; }
.hws .cit-s-status b { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.hws .cit-s-status b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cit-ok); box-shadow: 0 0 0 3px rgba(47,191,98,.25); }
.hws .cit-s-status.closed b::before { background: var(--cit-red); }
.hws .cit-s-status span { font-weight: 400; }
.hws .cit-s-status a { color: #3b3210; }
.hws .cit-s-tip { top: 176px; right: 70px; transform: rotate(-3deg); background: #ffd9d2; font-weight: 400; font-size: 14.5px; }
.hws .cit-plainlink { position: absolute; left: 16px; bottom: 12px; z-index: 2; color: #e6e8eb; font: 400 13.5px "PT Sans", sans-serif; border: 0; background: rgba(12,14,18,.55); padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(6px); cursor: pointer; }
.hws .cit-plainlink:hover { background: rgba(12,14,18,.8); }
.hws .cit-watermark { position: absolute; right: 14px; bottom: 10px; color: rgba(255,255,255,.45); font: 400 12px var(--cit-mono); pointer-events: none; }

/* Tools */
.hws .cit-tool { position: fixed; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.35); animation: cit-win-in .18s cubic-bezier(.2,.8,.3,1.1); }
@keyframes cit-win-in { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.hws .cit-tool .cit-bar { border-radius: 0; cursor: grab; }
.hws .cit-tool-body { flex: 1; overflow: auto; }
.hws .cit-term { background: #0b0c0f; color: #d7dbe0; font: 400 14.5px/1.6 var(--cit-mono); min-height: 100%; padding: 14px 16px; cursor: text; box-sizing: border-box; }
.hws .cit-term-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.hws .cit-term-out a { color: #ff8a84; }
.hws .cit-term-line { display: flex; gap: 8px; align-items: center; }
.hws .cit-term-line input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; caret-color: var(--cit-glow); padding: 0; }
.hws .cit-term-line input:focus { outline: none; }
.hws .cit-neo { display: inline-flex; gap: 22px; align-items: center; margin: 4px 0; }
.hws .cit-neo-l { display: block; text-align: center; line-height: 1.05; color: #ff6b63; font-family: ui-monospace, Consolas, monospace; white-space: pre; }
.hws .cit-neo-i { display: block; white-space: pre; }
.hws .cit-bin { display: flex; flex-direction: column; min-height: 100%; }
.hws .cit-bin-bar { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--cit-line); background: var(--cit-soft); }
.hws .cit-bin-list { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; flex: 1; align-content: start; }
.hws .cit-bin-list li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 8px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: opacity .3s, transform .3s; }
.hws .cit-bin-list li:hover { background: var(--cit-soft); }
.hws .cit-bin-list li.sel { border-color: var(--cit-red); background: var(--cit-tint); }
.hws .cit-bin-list li span { font-size: 34px; line-height: 1.1; }
.hws .cit-bin-list li b { font-size: 14px; overflow-wrap: anywhere; }
.hws .cit-bin-list li small { font-size: 12.5px; color: var(--cit-ink3); }
.hws .cit-bin-list.gone li { opacity: 0; transform: scale(.6) rotate(-8deg); pointer-events: none; }
.hws .cit-bin-msg { margin: 0; padding: 10px 14px; border-top: 1px solid var(--cit-line); font: 400 13.5px var(--cit-mono); color: var(--cit-ink2); }

/* Taskbar & Start */
.hws .cit-taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--cit-tb); z-index: 1000; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: rgba(14,15,18,.92); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px) saturate(1.3); color: #e6e8eb; }
.hws .cit-startbtn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 8px; background: var(--cit-red); color: #fff; font: 700 15px "PT Sans", sans-serif; flex: none; cursor: pointer; }
.hws .cit-startbtn img { width: 20px; filter: brightness(0) invert(1); }
.hws .cit-startbtn:hover, .hws .cit-startbtn[aria-expanded="true"] { background: var(--cit-red2); }
.hws .cit-tasks { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hws .cit-task { display: flex; align-items: center; gap: 8px; height: 36px; max-width: 190px; padding: 0 12px 0 8px; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); color: #e6e8eb; font: 400 13.5px "PT Sans", sans-serif; white-space: nowrap; flex: none; position: relative; text-decoration: none; cursor: pointer; }
.hws .cit-task span { overflow: hidden; text-overflow: ellipsis; }
.hws .cit-task:hover { background: rgba(255,255,255,.12); }
.hws .cit-task.active { background: rgba(255,255,255,.17); }
.hws .cit-task.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 1px; background: #ff5a52; }
.hws .cit-task.min { opacity: .6; }
.hws .cit-tray { margin-left: auto; display: flex; align-items: center; gap: 12px; padding-left: 8px; font: 400 13.5px "PT Sans", sans-serif; color: #cfd3d8; flex: none; }
.hws .cit-tray-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(47,191,98,.14); color: #b9f0cb; font-weight: 700; }
.hws .cit-tray-status:empty { display: none; }
.hws .cit-tray-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--cit-ok); }
.hws .cit-tray-status.closed { background: rgba(255,90,82,.14); color: #ffc9c5; } .hws .cit-tray-status.closed i { background: #ff5a52; }
.hws .cit-tray-ic { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: #cfd3d8; cursor: pointer; }
.hws .cit-tray-ic:hover { background: rgba(255,255,255,.1); }
.hws .cit-tray-ic svg { width: 18px; height: 18px; }
.hws .cit-tray-phone { color: #fff; text-decoration: none; font-family: var(--cit-mono); }
.hws .cit-clock { font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.hws .cit-start { position: fixed; left: 8px; bottom: calc(var(--cit-tb) + 8px); z-index: 1001; width: min(580px, calc(100vw - 16px)); background: rgba(21,23,27,.97); color: #e6e8eb; border: 1px solid #2e3239; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); overflow: hidden; animation: cit-sm-in .16s ease-out; }
@keyframes cit-sm-in { from { opacity: 0; transform: translateY(12px); } }
.hws .cit-sm-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #2e3239; background: linear-gradient(90deg, rgba(177,0,0,.35), transparent); }
.hws .cit-sm-head img { width: 40px; }
.hws .cit-sm-head b { display: block; font: 700 18px "PT Sans", sans-serif; color: #fff; }
.hws .cit-sm-head span { font-size: 13.5px; color: #9aa1ab; }
.hws .cit-sm-body { display: grid; grid-template-columns: 1.35fr 1fr; }
.hws .cit-sm-apps { padding: 8px; display: grid; gap: 2px; max-height: 62vh; overflow: auto; }
.hws .cit-sm-app { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: 700 14.5px "PT Sans", sans-serif; color: #e6e8eb; text-decoration: none; cursor: pointer; }
.hws .cit-sm-app:hover, .hws .cit-sm-app:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.hws .cit-sm-side { padding: 12px; border-left: 1px solid #2e3239; display: grid; gap: 4px; align-content: start; }
.hws .cit-sm-side a, .hws .cit-sm-side button { display: block; padding: 9px 11px; border: 0; border-radius: 8px; background: none; text-align: left; text-decoration: none; color: #aab0b9; font: 400 13.5px/1.35 "PT Sans", sans-serif; cursor: pointer; }
.hws .cit-sm-side b { display: block; color: #fff; font-size: 14.5px; }
.hws .cit-sm-side a:hover, .hws .cit-sm-side button:hover { background: rgba(255,255,255,.08); }
.hws .cit-sm-foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid #2e3239; }
.hws .cit-sm-foot button { border: 0; background: none; color: #e6e8eb; padding: 7px 12px; border-radius: 8px; font: 700 14px "PT Sans", sans-serif; cursor: pointer; }
.hws .cit-sm-foot button:hover { background: rgba(255,90,82,.2); }

/* Leafy & toasts */
.hws .cit-leafy { position: fixed; right: 18px; bottom: calc(var(--cit-tb) + 12px); z-index: 1500; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; }
.hws .cit-leafy > * { pointer-events: auto; }
.hws .cit-leafy-char { width: 74px; height: 80px; border: 0; background: none; padding: 0; animation: cit-bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); flex: none; cursor: pointer; }
.hws .cit-leafy-char svg { width: 100%; height: 100%; overflow: visible; }
@keyframes cit-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
/* Something to say (phones, where a bubble would cover the screen): a wave and a little "Hi!" until he's tapped */
.hws .cit-leafy-char { position: relative; }
.hws .cit-leafy-char[data-hint] { animation: cit-wave 1.1s ease-in-out 3, cit-bob 3s ease-in-out 3.3s infinite; }
.hws .cit-leafy-char[data-hint]::after { content: "Hi!"; position: absolute; top: -10px; left: -14px; padding: 2px 8px; border-radius: 10px 10px 2px 10px; background: #fff; color: var(--cit-red); font: 700 12px/16px "PT Sans", sans-serif; box-shadow: 0 3px 8px rgba(0,0,0,.35); animation: cit-pop .3s cubic-bezier(.2,.8,.3,1.3); }
@keyframes cit-wave { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(10deg); } }
.hws .cit-leafy-bubble { position: relative; width: min(330px, calc(100vw - 110px)); background: #fff; color: var(--cit-ink); border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.08); margin-bottom: 34px; font: 400 15px/1.5 "PT Sans", sans-serif; animation: cit-pop .2s cubic-bezier(.2,.8,.3,1.3); }
@keyframes cit-pop { from { opacity: 0; transform: scale(.8) translateY(10px); } }
.hws .cit-leafy-bubble::after { content: ""; position: absolute; right: -8px; bottom: 18px; border: 9px solid transparent; border-left-color: #fff; border-right: 0; }
.hws .cit-leafy-x { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; color: var(--cit-ink3); font-size: 20px; line-height: 1; border-radius: 6px; cursor: pointer; }
.hws .cit-leafy-text { padding-right: 18px; }
.hws .cit-leafy-text b.cit-word { display: block; color: var(--cit-red); font-size: 16px; margin-bottom: 2px; padding: 0; border: 0; }
.hws .cit-nerdline { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--cit-soft); font: 400 13px/1.5 var(--cit-mono); color: var(--cit-ink2); }
.hws .cit-jg-demo { text-decoration: underline dotted var(--cit-red) 2px; text-underline-offset: 3px; }
.hws .cit-leafy-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hws .cit-leafy-actions button, .hws .cit-leafy-actions a { border: 1px solid var(--cit-line); background: #fff; border-radius: 999px; padding: 5px 12px; font: 700 13px "PT Sans", sans-serif; color: var(--cit-ink); text-decoration: none; cursor: pointer; }
.hws .cit-leafy-actions button:hover, .hws .cit-leafy-actions a:hover { border-color: var(--cit-red); color: var(--cit-red); }
.hws .cit-leafy-actions .primary { background: var(--cit-red); border-color: var(--cit-red); color: #fff; }
.hws .cit-toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2000; display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.hws .cit-toast { pointer-events: auto; padding: 12px 14px; border-radius: 12px; background: rgba(21,23,27,.96); color: #e6e8eb; border: 1px solid #2e3239; box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); font: 400 14.5px/1.5 "PT Sans", sans-serif; animation: cit-toast-in .25s cubic-bezier(.2,.8,.3,1.2); }
@keyframes cit-toast-in { from { opacity: 0; transform: translateY(-14px); } }
.hws .cit-toast b { color: #fff; }
.hws .cit-toast-act { margin-top: 8px; display: flex; gap: 6px; }
.hws .cit-toast-act button { border: 1px solid #3a3e46; background: none; color: #e6e8eb; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.hws .cit-toast-act button.primary { background: var(--cit-red); border-color: var(--cit-red); color: #fff; }

/* Boot (only drawn on the home page; html.cit-boot is set before paint on a first visit) */
.hws .cit-boot { display: none; position: fixed; inset: 0; z-index: 5000; background: #050506; color: #cfd3d8; font: 400 15px/1.55 var(--cit-mono); }
html.js-os.cit-boot .hws .cit-boot { display: block; animation: cit-boot-safety 0s 9s forwards; }
@keyframes cit-boot-safety { to { visibility: hidden; } }
.hws .cit-bios { margin: 0; padding: clamp(18px, 4vw, 40px); white-space: pre-wrap; background: none; }
.hws .cit-bios .cit-dim { color: #6f7680; }
.hws .cit-splash { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(ellipse at center, #2a0d0e, #050506 70%); }
.hws .cit-boot-splash .cit-bios { display: none; } .hws .cit-boot-splash .cit-splash { display: flex; }
.hws .cit-splash img { width: 92px; filter: drop-shadow(0 0 30px rgba(255,60,40,.5)); animation: cit-pulse 1.6s ease-in-out infinite; }
.hws .cit-splash b { font: 700 34px "PT Sans", sans-serif; color: #fff; }
.hws .cit-splash span { font-family: "PT Sans", sans-serif; color: #9aa1ab; font-size: 14px; }
.hws .cit-splash-bar { width: 220px; height: 6px; border-radius: 3px; background: #26292f; overflow: hidden; margin-top: 16px; }
.hws .cit-splash-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cit-red), #ff5a52); animation: cit-fill 1.5s ease-out forwards; }
@keyframes cit-fill { to { width: 100%; } }
@keyframes cit-pulse { 50% { transform: scale(1.06); } }
.hws .cit-boot-skip { position: absolute; right: 18px; bottom: 18px; background: transparent; border: 1px solid #3a3e46; color: #9aa1ab; border-radius: 6px; padding: 7px 14px; font: 400 13px var(--cit-mono); cursor: pointer; }
.hws .cit-shutdown { position: fixed; inset: 0; z-index: 6000; background: #000; color: #f39b3c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 700 clamp(22px, 3vw, 30px) "PT Sans", sans-serif; text-align: center; padding: 20px; }
.hws .cit-sd-small { font: 400 17px "PT Sans", sans-serif; color: #c9cdd3; }
.hws .cit-shutdown a { color: #fff; }

/* Phone chrome (hidden on a desktop) */
.hws .cit-mstatus, .hws .cit-dock { display: none; }

/* ═══ Confidence OS on a phone ══════════════════════════ */
html.js-os.mobile, html.js-os.mobile body { overflow: auto; height: auto; }
html.js-os.mobile .hws .cit-taskbar, html.js-os.mobile .hws .cit-start, html.js-os.mobile .hws .cit-sticky, html.js-os.mobile .hws .cit-watermark, html.js-os.mobile .hws .cit-plainlink { display: none !important; }
html.js-os.mobile .hws .cit-desk { position: static; inset: auto; overflow: visible; z-index: auto; view-transition-name: none; }
html.js-os.mobile .hws .cit-wallwrap { position: fixed; inset: 0; z-index: 0; }
html.js-os.mobile .hws { min-height: 100vh; display: flex; flex-direction: column; padding: 40px 12px 120px; box-sizing: border-box; }
html.js-os.mobile .hws > header { order: 2; position: relative; z-index: 2; }
/* The boot screen lives in the header, under the welcome card (z-index 3): lift the header over it while booting */
html.js-os.mobile.cit-boot .hws > header { z-index: 4; }
html.js-os.mobile .hws > main { order: 1; }
html.js-os.mobile .hws .cit-icons { position: relative; inset: auto; display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-columns: auto; gap: 14px 4px; }
html.js-os.mobile .hws .cit-dicon { font-size: 12px; font-weight: 400; padding: 4px 0; }
html.js-os.mobile .hws .cit-dicon .cit-appicon { width: 60px; height: 60px; border-radius: 16px; }
html.js-os.mobile .hws .cit-leafy { bottom: 108px; right: 10px; }
html.js-os.mobile .hws .cit-leafy-char { width: 56px; height: 62px; }
html.js-os.mobile .hws .cit-tool { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0; z-index: 1200 !important; }
html.js-os.mobile .hws .cit-winbar { position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 31; border-radius: 0; padding-top: env(safe-area-inset-top); }
html.js-os.mobile .hws .cit-winbar .cit-winbtn, html.js-os.mobile .hws .cit-winbar .cit-appicon { display: none; }
html.js-os.mobile .hws .cit-back { display: inline-flex; align-items: center; color: #ff8a84; font: 700 16px "PT Sans", sans-serif; text-decoration: none; padding: 6px 4px; }
html.js-os.mobile .hws .cit-bar-title { text-align: center; padding-right: 60px; cursor: default; }
/* A page other than home: a full-screen sheet */
html.js-os.mobile .hws:not(:has(.cit-os[data-home])) > main { position: fixed; inset: 52px 0 0 0; z-index: 30; overflow: auto; background: #fff; animation: cit-sheet .25s cubic-bezier(.2,.8,.3,1); }
@keyframes cit-sheet { from { transform: translateY(40px); opacity: 0; } }
html.js-os.mobile .hws:not(:has(.cit-os[data-home])) .cit-leafy { bottom: 14px; }
/* Home: a status bar, the welcome as a card, the icons, a dock */
html.js-os.mobile .hws:has(.cit-os[data-home]) .cit-winbar { display: none; }
html.js-os.mobile .hws:has(.cit-os[data-home]) .cit-mstatus { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 960; height: 30px; padding: 0 18px; align-items: center; justify-content: space-between; color: #fff; font: 700 13.5px "PT Sans", sans-serif; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.hws .cit-mopen::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cit-ok); margin-right: 6px; }
.hws .cit-mopen.closed::before { background: #ff5a52; } .hws .cit-mopen:empty::before { display: none; }
.hws .cit-mopen { font-weight: 400; } .hws .cit-micons { letter-spacing: 1px; font-size: 11px; }
html.js-os.mobile .hws:has(.cit-os[data-home]) .cit-dock { display: flex; position: fixed; z-index: 960; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: space-around; padding: 10px 6px; border-radius: 24px; background: rgba(21,23,27,.62); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255,255,255,.1); }
.hws .cit-dock a, .hws .cit-dock button { display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: #fff; text-decoration: none; font: 400 11.5px "PT Sans", sans-serif; cursor: pointer; }
.hws .cit-dk { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; }
.hws .cit-dk-call { background: #2fbf62; } .hws .cit-dk-fix { background: #fff; } .hws .cit-dk-tix { background: var(--cit-red); } .hws .cit-dk-web { background: #3a3e46; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main { position: relative; z-index: 3; margin-bottom: 18px; background: rgba(21,23,27,.66); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; color: #fff; overflow: hidden; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .hwx-cit-welcome > .hws-in { display: block; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .hws-sec { background: transparent; --hws-bg: transparent; --hws-fg: #fff; --hws-muted: #c9cdd3; color: #fff; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main :is(.cit-leafside, .hwx-cit-hint, .hwx-cit-home-more, .hws-ts-eyebrow) { display: none; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .hws-code:has(.cit-leafside) { display: none; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .hwx-cit-w-main { padding: 16px; gap: 10px; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .cit-headline { font-size: 22px; color: #fff; margin: 0; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .cit-headline em { color: #ff6b63; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .hws-rt { color: #c9cdd3; font-size: 14.5px; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .hws-btn { padding: 9px 13px; font-size: 14px; }
html.js-os.mobile .hws:has(.cit-os[data-home]) > main .hws-btn-secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

/* ═══ Small windows & small screens ═════════════════════ */
@media (max-width: 760px) {
  .hws .hwx-cit-welcome > .hws-in, .hws .cit-setup, .hws .cit-netmap { grid-template-columns: minmax(0, 1fr); }
  .hws .cit-leafside { min-height: 110px; flex-direction: row; } .hws .cit-leafside img { width: 64px; }
  .hws .cit-st-banner { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 16px; }
  .hws .cit-st-banner img { width: 38px; margin: 0; } .hws .cit-st-banner b { font-size: 18px; }
  .hws .hwx-cit-w-main, .hws .cit-ticket, .hws .cit-st-main, .hws .hwx-cit-ex-main { padding: 18px; }
  .hws .cit-fx-options, .hws .cit-tk-grid { grid-template-columns: minmax(0, 1fr); }
  .hws .hwx-cit-ex-cols > :first-child { flex: 1 1 auto !important; max-width: none; }
  .hws .cit-folders { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--cit-line); }
  .hws .cit-ph-body { grid-template-columns: minmax(0, 1fr); }
  .hws .cit-ph-inbox { border-right: 0; border-bottom: 1px solid var(--cit-line); max-height: 260px; }
  .hws .cit-ph-top { flex-direction: column; }
  .hws .hwx-cit-ticket-side { border-left: 0; border-top: 1px solid var(--cit-line); }
  .hws .cit-up-big { font-size: 52px; } .hws .cit-up-spark { display: none; }
  .hws .hwx-cit-notepad > .hws-in { padding: 0 16px; } .hws .cit-npmenu { margin: 0 -16px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hws *, .hws *::before, .hws *::after { animation: none !important; transition: none !important; }
}
