/* Example screens, part 2: template layouts */
.mx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; align-items: start; }
.mx-split-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mx-split.mail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mx-split.flow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mx-split.doc { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.mx-split.ads { grid-template-columns: 340px minmax(0, 1fr); }

/* portal */
.mx-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(120deg, var(--nv) 0%, var(--nv2) 60%, #145a4a 130%); color: #fff; padding: 20px 22px; position: relative; overflow: hidden; }
.mx-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.mx-banner small { color: #7fe0bb; font-weight: 600; letter-spacing: .08em; }
.mx-banner h5 { font-size: 18px; margin: 6px 0 4px; font-weight: 650; letter-spacing: -.01em; }
.mx-banner p { color: #b9c4d6; margin-bottom: 12px; max-width: 46ch; }
.mx-banner .mx-ring { color: #fff; position: relative; z-index: 1; }
.mx-steps { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.mx-step { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; position: relative; padding-right: 8px; }
.mx-step::before { content: ""; position: absolute; top: 12px; left: 26px; right: 0; height: 2px; background: var(--bd); }
.mx-step:last-child::before { display: none; }
.mx-step.done::before { background: var(--gr); }
.mx-step > span { width: 26px; height: 26px; display: grid; place-items: center; background: #fff; border: 2px solid var(--bd); color: var(--mu); font-weight: 600; font-size: 11px; position: relative; z-index: 1; margin-bottom: 4px; }
.mx-step.done > span { background: var(--gr); border-color: var(--gr); color: #fff; }
.mx-step.now > span { border-color: var(--nv); color: var(--nv); box-shadow: 0 0 0 4px #e4e8f0; }

/* calendar */
.mx-cal { display: grid; grid-template-columns: 140px repeat(6, minmax(0, 1fr)); }
.mx-cal-h { padding: 9px 10px; font-size: 11px; font-weight: 600; color: var(--mu); background: #f8f9fb; border-bottom: 1px solid var(--bd); border-left: 1px solid var(--bd2); }
.mx-cal-h.today { color: var(--gr); box-shadow: inset 0 -2px 0 var(--gr); }
.mx-cal-who { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--bd2); font-size: 12px; }
.mx-cal-c { padding: 5px; border-bottom: 1px solid var(--bd2); border-left: 1px solid var(--bd2); }
.mx-ev { padding: 6px 7px; border-left: 3px solid; font-size: 11px; min-height: 42px; }
.mx-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-ev.navy { background: #e4e8f0; border-color: var(--nv); }
.mx-ev.green { background: var(--grs); border-color: var(--gr); }
.mx-ev.blue { background: var(--bls); border-color: var(--bl); }
.mx-ev.amber { background: var(--ams); border-color: #e3a008; }
.mx-ev.open { border: 1px dashed #d0d5dd; color: #98a1b2; display: grid; place-items: center; }

/* gantt */
.mx-gantt { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.mx-gh { padding: 9px 12px; background: #f8f9fb; border-bottom: 1px solid var(--bd); font-size: 10.5px; font-weight: 600; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; }
.mx-gh.weeks { display: grid; grid-template-columns: repeat(12, 1fr); padding: 9px 0; }
.mx-gh.weeks span { padding-left: 6px; border-left: 1px solid var(--bd2); }
.mx-gn { display: flex; gap: 9px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--bd2); }
.mx-gt { position: relative; border-bottom: 1px solid var(--bd2); background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--bd2) calc(100% / 12 - 1px) calc(100% / 12)); }
.mx-gt .today { position: absolute; top: 0; bottom: 0; left: 38%; width: 2px; background: var(--rd); opacity: .55; }
.mx-gbar { position: absolute; top: 10px; bottom: 10px; background: #dfe4ec; overflow: hidden; display: flex; align-items: center; }
.mx-gbar u { position: absolute; left: 0; top: 0; bottom: 0; background: var(--nv); }
.mx-gbar.done u { background: var(--gr); }
.mx-gbar span { position: relative; z-index: 1; color: #fff; font-size: 10.5px; font-weight: 600; padding-left: 8px; mix-blend-mode: normal; }
.mx-gbar:not(.done):not(.live) span { color: var(--mu); }
.mx-milestone { position: absolute; top: 50%; width: 12px; height: 12px; background: #e3a008; transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 3px #fff; }

/* chat */
.mx-phone { width: 100%; max-width: 360px; justify-self: center; background: #fff; border: 1px solid var(--bd); box-shadow: 0 20px 40px -24px rgba(16,24,40,.35); display: flex; flex-direction: column; }
.mx-phone-h { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--nv); color: #fff; }
.mx-phone-h small { color: #aeb9cc; display: flex; gap: 6px; align-items: center; }
.mx-phone-h .mx-dot { margin: 0; }
.mx-phone-b { padding: 14px; display: flex; flex-direction: column; gap: 7px; background: #f8f9fb; min-height: 380px; }
.mx-bub { max-width: 84%; padding: 9px 11px; line-height: 1.45; font-size: 12.5px; }
.mx-bub.bot { background: #fff; border: 1px solid var(--bd); align-self: flex-start; }
.mx-bub.me { background: var(--nv); color: #fff; align-self: flex-end; }
.mx-quick { display: flex; gap: 6px; margin-top: 8px; }
.mx-quick span { border: 1px solid var(--gr); color: var(--gr); padding: 3px 8px; font-weight: 600; font-size: 11px; }
.mx-cite { align-self: flex-start; display: flex; gap: 5px; align-items: center; font-size: 10.5px; color: #0a7a55; background: var(--grs); padding: 2px 7px; margin-top: -2px; }
.mx-cite .mx-i { width: 11px; height: 11px; }
.mx-sys { align-self: center; font-size: 10.5px; color: var(--mu); background: #eef0f4; padding: 3px 9px; }
.mx-typing { display: flex; gap: 3px; padding: 9px 11px; background: #fff; border: 1px solid var(--bd); align-self: flex-start; }
.mx-typing i { width: 5px; height: 5px; background: #98a1b2; animation: mxb 1.2s infinite; }
.mx-typing i:nth-child(2) { animation-delay: .15s; } .mx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mxb { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.mx-phone-in { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--bd); color: #98a1b2; }
.mx-phone-in .mx-i { color: var(--gr); }

/* voice */
.mx-wave { display: flex; align-items: center; gap: 2px; height: 74px; background: var(--nv); padding: 0 14px; margin-bottom: 12px; }
.mx-wave i { flex: 1; background: #3a5078; }
.mx-wave i.played { background: linear-gradient(180deg, #34d399, var(--gr)); }
.mx-trans { display: flex; flex-direction: column; gap: 2px; }
.mx-tl { display: grid; grid-template-columns: 64px 36px 1fr; gap: 8px; padding: 8px 10px; border-left: 2px solid transparent; }
.mx-tl span { font-weight: 600; color: var(--mu); }
.mx-tl time { color: #98a1b2; font-size: 11px; }
.mx-tl.ai { background: #f3faf7; border-color: var(--gr); }
.mx-tl.ai span { color: var(--gr); }
.mx-job { border: 1px solid var(--bd); border-top: 3px solid var(--gr); padding: 12px; }
.mx-job small { color: var(--gr); font-weight: 700; letter-spacing: .08em; }
.mx-job > b { font-size: 14px; display: block; margin: 4px 0 8px; }
.mx-job dl { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; margin: 0; }
.mx-job dt { color: var(--mu); } .mx-job dd { margin: 0; font-weight: 600; }
.mx-voicecard { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }

/* email */
.mx-mailrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--bd2); }
.mx-mailrow.sel { background: #f3faf7; box-shadow: inset 3px 0 0 var(--gr); }
.mx-mailrow small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-mailrow em { font-style: normal; display: flex; gap: 5px; align-items: center; color: #0a7a55; font-size: 11px; margin-top: 3px; }
.mx-mailrow em .mx-i { width: 12px; height: 12px; }
.mx-mailrow time { color: #98a1b2; font-size: 11px; }
.mx-mailtop { display: flex; justify-content: space-between; gap: 8px; }
.mx-read p { margin-bottom: 10px; line-height: 1.55; }
.mx-draft { border: 1px solid #bfe6d6; background: #f3faf7; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-draft small { width: 100%; color: #0a7a55; font-weight: 700; letter-spacing: .06em; display: flex; gap: 5px; align-items: center; }
.mx-draft p { width: 100%; margin: 0 0 4px; }
.mx-seq { display: flex; flex-direction: column; gap: 0; }
.mx-seqstart, .mx-seqend { display: flex; gap: 8px; align-items: center; padding: 9px 12px; background: var(--nv); color: #fff; font-weight: 600; }
.mx-seqend { background: var(--grs); color: #0a7a55; }
.mx-seqstep { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--bd); margin: 14px 0 0; position: relative; }
.mx-seqstep::before, .mx-seqend::before { content: ""; position: absolute; left: 22px; top: -15px; height: 14px; width: 2px; background: var(--bd); }
.mx-seqend { position: relative; margin-top: 14px; }
.mx-seqstep.sel { border-color: var(--gr); box-shadow: 0 0 0 3px var(--grs); }
.mx-seqday { width: 46px; text-align: center; font-weight: 700; font-size: 11px; background: var(--bg); padding: 6px 0; }
.mx-seqstats { display: flex; gap: 12px; color: var(--mu); font-size: 11px; margin-top: 3px; }
.mx-email { padding: 0; }
.mx-email-h { padding: 10px 14px; border-bottom: 1px solid var(--bd); }
.mx-email-h b { display: block; font-size: 13px; margin: 2px 0; }
.mx-email-b { padding: 22px 26px; background: #fff; border: 14px solid #f3f4f7; }
.mx-email-logo { width: 34px; height: 34px; background: var(--nv); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.mx-email-b h6 { font-size: 17px; margin: 0 0 10px; background: none; }
.mx-email-b p { background: none; margin-bottom: 10px; line-height: 1.6; }
.mx-email-b .mx-btn { margin: 4px 0 14px; }

/* flow */
.mx-canvas { background: #fff radial-gradient(#d9dee7 1px, transparent 1px) 0 0 / 16px 16px; border: 1px solid var(--bd); padding: 20px; display: flex; flex-direction: column; align-items: center; min-height: 470px; }
.mx-flowcol { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mx-flowcol.end { margin-top: 0; }
.mx-node { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--bd); padding: 9px 12px; width: 280px; box-shadow: 0 2px 6px rgba(16,24,40,.06); position: relative; }
.mx-node small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.mx-node b { display: block; font-size: 12.5px; }
.mx-node em { margin-left: auto; width: 18px; height: 18px; background: var(--grs); color: var(--gr); display: grid; place-items: center; }
.mx-node em .mx-i { width: 11px; height: 11px; stroke-width: 2.6; }
.mx-node.start { border-top: 3px solid var(--gr); }
.mx-node.sel { border-color: var(--nv); box-shadow: 0 0 0 3px #e4e8f0, 0 6px 16px rgba(16,24,40,.1); }
.mx-node.ghost { border-style: dashed; box-shadow: none; opacity: .75; width: 200px; }
.mx-node-i { width: 30px; height: 30px; background: var(--nv); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.mx-conn { width: 2px; height: 18px; background: #b8c1cf; position: relative; }
.mx-conn::after { content: ""; position: absolute; bottom: -2px; left: -3px; border: 4px solid transparent; border-top-color: #b8c1cf; }
.mx-branch { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; position: relative; padding-top: 22px; margin-bottom: 18px; }
.mx-branch::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 12px; border: 2px solid #b8c1cf; border-bottom: 0; }
.mx-branch::after { content: ""; position: absolute; top: -6px; left: 50%; width: 2px; height: 6px; background: #b8c1cf; }
.mx-branch-l { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mx-branch-l .mx-node { width: 100%; max-width: 250px; }
.mx-branch-l > small { font-weight: 700; color: var(--gr); font-size: 10px; letter-spacing: .08em; }
.mx-branch-l:last-child > small { color: var(--mu); }

/* documents */
.mx-paper { background: #fff; border: 1px solid var(--bd); padding: 26px 30px; box-shadow: 0 16px 36px -24px rgba(16,24,40,.3); min-height: 470px; }
.mx-paper-h { display: flex; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--bd); margin-bottom: 18px; }
.mx-paper-h time { margin-left: auto; color: var(--mu); }
.mx-paper h5 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 4px; font-weight: 650; }
.mx-paper > p { margin-bottom: 16px; }
.mx-docrow { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--bd2); }
.mx-docrow span { font-weight: 600; }
.mx-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.mx-sign > div { border-top: 1px solid var(--tx); padding-top: 6px; position: relative; }
.mx-sig { position: absolute; top: -30px; left: 4px; font: italic 600 22px/1 "Brush Script MT", "Snell Roundhand", cursive; color: var(--nv); }
.mx-chartstrip { margin-top: 20px; border-top: 1px solid var(--bd2); padding-top: 14px; }
.mx-aimsg { display: flex; gap: 10px; background: #f3faf7; border: 1px solid #bfe6d6; padding: 10px; color: #0a7a55; }
.mx-aimsg p { color: var(--tx); }
.mx-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mx-sources span { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--bd); padding: 3px 7px; font-size: 11px; color: var(--mu); }
.mx-sources .mx-i { width: 11px; height: 11px; }
.mx-timeline > div { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; position: relative; }
.mx-timeline i { width: 10px; height: 10px; border: 2px solid #c3c9d4; background: #fff; }
.mx-timeline .done i { background: var(--gr); border-color: var(--gr); }
.mx-timeline small { color: #98a1b2; }

/* wizard form */
.mx-wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 640px; background: #fff; }
.mx-wizard aside { background: var(--nv); color: #aeb9cc; padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.mx-wizard aside .mx-org { border: 0; padding: 0; margin: 0; }
.mx-wizard aside .mx-ring { color: #fff; align-items: flex-start; }
.mx-wizard aside .mx-ring .bg { stroke: #2a3f68; }
.mx-wsteps > div { display: flex; gap: 10px; align-items: center; padding: 9px 0; position: relative; }
.mx-wsteps > div span { width: 24px; height: 24px; border: 1.5px solid #3b5282; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.mx-wsteps > div.done span { background: var(--gr); border-color: var(--gr); color: #fff; }
.mx-wsteps > div.now { color: #fff; }
.mx-wsteps > div.now span { border-color: #fff; background: #fff; color: var(--nv); }
.mx-help { display: flex; gap: 8px; font-size: 11px; color: #7f8ca5; margin-top: auto; }
.mx-wizard main { padding: 36px 48px; max-width: 640px; }
.mx-wizard h4 { font-size: 24px; margin: 8px 0 6px; letter-spacing: -.02em; font-weight: 650; }
.mx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.mx-fields label span { font-size: 11.5px; font-weight: 600; color: #344054; }
.mx-fields label div { display: flex; justify-content: space-between; align-items: center; border: 1px solid #d0d5dd; padding: 10px 12px; margin-top: 5px; font-size: 13px; }
.mx-fields label div .mx-i { color: var(--gr); }
.mx-fields label.focus div { border-color: var(--nv); box-shadow: 0 0 0 3px #e4e8f0; }
.mx-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mx-opts div { display: flex; gap: 10px; align-items: center; border: 1px solid var(--bd); padding: 13px; font-weight: 600; }
.mx-opts div span { width: 14px; height: 14px; border: 1.5px solid #c3c9d4; border-radius: 50%; }
.mx-opts div.on { border-color: var(--gr); background: #f3faf7; box-shadow: 0 0 0 3px var(--grs); }
.mx-opts div.on span { border: 4px solid var(--gr); }
.mx-upload { display: flex; gap: 12px; align-items: center; border: 1.5px dashed #c3c9d4; padding: 14px; margin-top: 16px; }
.mx-upload > div { flex: 1; }
.mx-formf { display: flex; gap: 8px; margin-top: 22px; }

/* kanban */
.mx-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.mx-col { background: #eaedf2; padding: 10px; min-height: 470px; }
.mx-col header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mx-col header span { background: #fff; padding: 0 6px; font-size: 11px; color: var(--mu); }
.mx-col header em { margin-left: auto; font-style: normal; font-weight: 600; }
.mx-kc { background: #fff; border: 1px solid var(--bd); padding: 10px 11px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.mx-kc.lift { box-shadow: 0 12px 24px -10px rgba(16,24,40,.3); transform: rotate(-1.2deg); border-color: var(--nv); }
.mx-kc-t { display: flex; justify-content: space-between; color: #98a1b2; margin-bottom: 6px; }
.mx-kc > b { display: block; font-size: 12.5px; }
.mx-kc-f { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--mu); font-size: 11px; }
.mx-kc-f span { display: inline-flex; gap: 3px; align-items: center; }
.mx-kc-f .mx-i { width: 12px; height: 12px; }
.mx-kc-f .mx-av { width: 20px; height: 20px; font-size: 8px; margin-right: auto; }
.mx-kadd { display: flex; gap: 6px; align-items: center; color: var(--mu); padding: 6px 4px; }

/* ads */
.mx-fb { background: #fff; border: 1px solid var(--bd); box-shadow: 0 16px 36px -24px rgba(16,24,40,.35); }
.mx-fb-h { display: flex; gap: 10px; align-items: center; padding: 11px 12px; }
.mx-fb-h > .mx-i { margin-left: auto; color: var(--mu); }
.mx-fb-h small { display: flex; gap: 4px; align-items: center; }
.mx-fb-h small .mx-i { width: 11px; height: 11px; }
.mx-fb > p { padding: 0 12px 10px; line-height: 1.5; }
.mx-fb-img { position: relative; height: 300px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #0d5a42 0%, #0a2a22 45%, #050d12 80%); }
.mx-fb-copy { position: absolute; left: 16px; bottom: 16px; color: #fff; }
.mx-fb-copy small { color: #7fe0bb; font-weight: 700; letter-spacing: .12em; }
.mx-fb-copy b { display: block; font-size: 40px; line-height: 1; letter-spacing: -.03em; font-weight: 800; margin: 4px 0; }
.mx-fb-copy span { font-size: 14px; }
.mx-fb-f { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #f3f4f7; }
.mx-fb-r { display: flex; justify-content: space-between; padding: 9px 12px; color: var(--mu); font-size: 11px; }
.mx-fb-r span { display: flex; gap: 4px; align-items: center; }
.mx-fb-r .mx-i { width: 12px; height: 12px; color: var(--bl); }
.mx-night { position: absolute; inset: 0; }
.mx-night i { position: absolute; width: 4px; height: 4px; background: #6ff5c2; box-shadow: 0 0 10px 3px rgba(52, 211, 153, .75); border-radius: 50%; }
.mx-night i:nth-child(1) { left: 18%; top: 22%; } .mx-night i:nth-child(2) { left: 42%; top: 14%; } .mx-night i:nth-child(3) { left: 66%; top: 30%; } .mx-night i:nth-child(4) { left: 82%; top: 12%; }
.mx-night i:nth-child(5) { left: 30%; top: 44%; } .mx-night i:nth-child(6) { left: 56%; top: 52%; } .mx-night i:nth-child(7) { left: 76%; top: 46%; } .mx-night i:nth-child(8) { left: 10%; top: 58%; }
.mx-night::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, #04100c); clip-path: polygon(0 40%, 12% 22%, 20% 38%, 34% 12%, 46% 34%, 60% 18%, 72% 36%, 86% 14%, 100% 30%, 100% 100%, 0 100%); }
.mx-serp { background: #fff; border: 1px solid var(--bd); padding: 14px; box-shadow: 0 16px 36px -24px rgba(16,24,40,.35); }
.mx-serp-q { display: flex; gap: 8px; align-items: center; border: 1px solid var(--bd); padding: 9px 12px; margin-bottom: 14px; }
.mx-gad-u { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.mx-gad h6 { color: #1a3fb3; font-size: 17px; font-weight: 500; line-height: 1.3; margin: 0 0 4px; }
.mx-gad p { color: #475467; line-height: 1.5; }
.mx-gad-l { display: flex; gap: 14px; margin-top: 8px; color: #1a3fb3; }
.mx-serp-org { margin-top: 18px; border-top: 1px solid var(--bd2); padding-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.mx-serp-org i { height: 9px; background: #eef0f4; }
.mx-serp-org i.s { width: 60%; }

/* creative */
.mx-cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mx-cmeta { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px 0; font-size: 11px; color: var(--mu); }
.mx-ad { position: relative; height: 200px; overflow: hidden; color: #fff; }
.mx-ad.big { height: 300px; }
.mx-ad.s1 { background: radial-gradient(ellipse at 50% 120%, #0d5a42, #0a2a22 45%, #050d12 80%); }
.mx-ad.s2 { background: linear-gradient(160deg, #f5f3ee, #e2ddd2); color: var(--nv); }
.mx-ad.s3 { background: linear-gradient(150deg, #12203a, #1f3a6b 70%, #2b6cff); }
.mx-ad.s4 { background: #faf6ec; color: var(--nv); }
.mx-ad.s5 { background: linear-gradient(200deg, #3b1f0e, #a55a24 70%, #f4b429); }
.mx-ad.s6 { background: var(--gr); }
.mx-night.sm i { width: 3px; height: 3px; }
.mx-ad.s2 .mx-night, .mx-ad.s4 .mx-night, .mx-ad.s6 .mx-night { display: none; }
.mx-ad-copy { position: absolute; left: 14px; right: 14px; bottom: 13px; }
.mx-ad-copy small { color: inherit; opacity: .7; font-weight: 700; letter-spacing: .12em; font-size: 9.5px; }
.mx-ad-copy b { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; font-weight: 750; margin: 4px 0 3px; }
.mx-ad-copy span { font-size: 11.5px; opacity: .85; }
.mx-ad.s4 .mx-ad-copy b { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 20px; }
.mx-playbtn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -70%); width: 44px; height: 44px; background: rgba(255,255,255,.92); color: var(--nv); display: grid; place-items: center; }
.mx-playbtn .mx-i { fill: currentColor; width: 16px; height: 16px; }
.mx-dur { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10px; font-weight: 600; background: rgba(0,0,0,.55); color: #fff; padding: 1px 6px; }
.mx-prod { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); }
.mx-prod i { display: block; width: 74px; height: 50px; background: linear-gradient(180deg, #2a2f36, #0f1216); border-top: 3px solid #4a5260; position: relative; }
.mx-prod i::after { content: ""; position: absolute; right: 10px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(#9dffd8, #0d9f6e 60%, #064030); box-shadow: 0 0 16px 4px rgba(52,211,153,.6); }
.mx-prod u { display: block; width: 6px; height: 40px; background: #2a2f36; margin: 0 auto; }
.mx-brandsys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mx-bs { background: #fff; border: 1px solid var(--bd); padding: 16px; min-height: 180px; }
.mx-bs.logo { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.mx-bs.logo b { font-size: 22px; letter-spacing: -.02em; }
.mx-bs.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx-bs.colors i { display: block; height: 48px; border: 1px solid var(--bd); margin-bottom: 4px; }
.mx-bs.type .aa { font: 600 58px/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.mx-bs.type p { margin-top: 10px; color: var(--mu); }
.mx-bs.ui { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; justify-content: center; }
.mx-bs.social { padding: 0; }
.mx-bs.social .mx-ad { height: 100%; min-height: 180px; background: var(--nv); }
.mx-bs.social .mx-ad-copy { bottom: auto; top: 16px; }
.mx-bs.social .mx-ad-copy b { font-size: 26px; }
.mx-bs.sign { background: var(--nv); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.mx-bs.sign b { font-size: 26px; letter-spacing: .2em; border-bottom: 3px solid var(--gr); padding-bottom: 6px; }
.mx-bs.sign small { color: #aeb9cc; margin-top: 8px; }

/* website */
.mx-site { background: #fff; min-height: 640px; }
.mx-browserbar { display: none; background: #eef0f4; padding: 7px 14px; border-bottom: 1px solid var(--bd); }
.mx-browserbar span { display: inline-flex; gap: 6px; align-items: center; background: #fff; padding: 3px 12px; color: var(--mu); font-size: 11px; min-width: 260px; }
.mx-browserbar .mx-i { width: 11px; height: 11px; color: var(--gr); }
.mx-snav { display: flex; gap: 22px; align-items: center; padding: 14px 32px; border-bottom: 1px solid var(--bd2); }
.mx-snav > b { display: flex; gap: 8px; align-items: center; font-size: 16px; margin-right: auto; }
.mx-snav > span { color: #475467; font-weight: 500; }
.mx-sphone { display: inline-flex; gap: 6px; align-items: center; font-weight: 600 !important; color: var(--tx) !important; }
.mx-shero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; padding: 44px 32px 34px; align-items: center; background: linear-gradient(180deg, #fff, #f6f8f7); }
.mx-shero h3 { font: 700 44px/1.02 "Space Grotesk", Inter, sans-serif; letter-spacing: -.035em; margin: 12px 0 14px; }
.mx-shero p { color: #475467; font-size: 15px; line-height: 1.55; max-width: 42ch; }
.mx-proof { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.mx-stars { display: flex; color: #f4b429; }
.mx-stars .mx-i { fill: currentColor; width: 14px; height: 14px; }
.mx-shero-art { position: relative; }
.mx-floatcard { position: absolute; left: -22px; bottom: 26px; display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 14px; box-shadow: 0 16px 30px -12px rgba(16,24,40,.3); border: 1px solid var(--bd); }
.mx-floatcard > .mx-i { width: 28px; height: 28px; padding: 6px; background: var(--grs); color: var(--gr); }
.mx-floatcard.two { left: auto; right: -14px; bottom: auto; top: -30px; }
.mx-floatcard.two > .mx-i { background: var(--ams); color: #e3a008; fill: currentColor; }
.mx-prodcard { background: #fff; border: 1px solid var(--bd); padding: 12px; box-shadow: 0 24px 40px -24px rgba(16,24,40,.35); max-width: 300px; margin-left: auto; }
.mx-prodcard .mx-ad { height: 220px; margin-bottom: 10px; }
.mx-prodcard > b { font-size: 15px; display: block; }
.mx-prodcard .mx-btn { margin-top: 10px; width: 100%; justify-content: center; }
.mx-slogos { display: flex; justify-content: space-around; padding: 14px 32px; border-top: 1px solid var(--bd2); border-bottom: 1px solid var(--bd2); color: #98a1b2; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.mx-sfeat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 32px; }
.mx-sfeat b { display: block; font-size: 14px; margin: 10px 0 4px; }
.mx-sfeat p { color: var(--mu); line-height: 1.5; }

@media (max-width: 900px) {
  .mx-app, .mx-wizard { grid-template-columns: 1fr; }
  .mx-side, .mx-wizard aside, .mx-search, .mx-crumbs { display: none; }
  .mx-kpis, .mx-g-21, .mx-g-3, .mx-split, .mx-split.mail, .mx-split.flow, .mx-split.doc, .mx-split.ads, .mx-kanban, .mx-cgrid, .mx-brandsys, .mx-shero, .mx-sfeat, .mx-fields, .mx-opts { grid-template-columns: 1fr; }
  .mx-head { flex-direction: column; align-items: flex-start; }
  .mx-head-r { flex-wrap: wrap; }
  .mx-card.flush, .mx-cal, .mx-gantt, .mx-steps { overflow-x: auto; }
  .mx-cal { grid-template-columns: 110px repeat(6, 120px); }
  .mx-gantt { grid-template-columns: 180px 560px; }
  .mx-steps { grid-template-columns: repeat(6, 110px); }
  .mx-snav > span { display: none; }
  .mx-wizard main { padding: 24px 18px; }
  .mx-floatcard { display: none; }
}

/* website hero panels */
.mx-panel { background: #fff; border: 1px solid var(--bd); box-shadow: 0 24px 48px -24px rgba(16,24,40,.35); padding: 18px; display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin-left: auto; }
.mx-panel .mx-opts { margin-top: 2px; }
.mx-panel .mx-opts div { padding: 9px; font-size: 12px; }
.mx-ptitle { font-size: 17px; letter-spacing: -.01em; }
.mx-slabel { font-weight: 600; margin-top: 4px; }
.mx-slots { display: flex; gap: 6px; }
.mx-slots span { flex: 1; text-align: center; border: 1px solid var(--bd); padding: 8px 0; font-weight: 600; }
.mx-slots span.on { background: var(--nv); color: #fff; border-color: var(--nv); }
.mx-panel .mx-btn { justify-content: center; }
.mx-psearch { display: flex; gap: 8px; align-items: center; border: 2px solid var(--nv); padding: 10px 12px; font-weight: 500; }
.mx-parow { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--bd2); }
.mx-parow span { flex: 1; font-weight: 500; }
.mx-parow .mx-i { color: var(--mu); }
.mx-panel.prize { background: var(--nv); color: #fff; border-color: var(--nv); }
.mx-prize { font: 700 54px/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.mx-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mx-count div { background: rgba(255,255,255,.08); padding: 8px; text-align: center; }
.mx-count b { font-size: 20px; display: block; }
.mx-count small { color: #aeb9cc; }
.mx-fields.one { grid-template-columns: 1fr; margin-top: 4px; }
.mx-panel.prize .mx-fields span { color: #aeb9cc; }
.mx-panel.prize .mx-fields div { background: #fff; color: var(--mu); }
.mx-panel.prize .mx-btn { background: var(--gr); border-color: var(--gr); }
.mx-panel.list { gap: 0; padding: 6px 16px; }
.mx-listing { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bd2); }
.mx-listing:first-child { border-top: 0; }
.mx-rate { display: inline-flex; gap: 3px; align-items: center; font-weight: 600; }
.mx-rate .mx-i { fill: #f4b429; color: #f4b429; width: 13px; height: 13px; }
.mx-ticket { display: grid; grid-template-columns: 1fr 120px; background: var(--nv); color: #fff; box-shadow: 0 24px 48px -24px rgba(16,24,40,.45); max-width: 440px; margin-left: auto; }
.mx-ticket > div:first-child { padding: 20px; border-right: 2px dashed #2f4570; display: flex; flex-direction: column; gap: 6px; }
.mx-ticket b { font-size: 18px; }
.mx-ticket span { color: #aeb9cc; }
.mx-qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 16px; align-content: center; background: #fff; margin: 16px; }
.mx-qr i { aspect-ratio: 1; background: #fff; }
.mx-qr i.on { background: var(--nv); }
.mx-slides { position: relative; height: 280px; max-width: 440px; margin-left: auto; }
.mx-slide { position: absolute; inset: 0 20px 20px 0; background: var(--nv); color: #fff; padding: 22px; box-shadow: 0 24px 48px -24px rgba(16,24,40,.45); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.mx-slide small { color: #7fe0bb; }
.mx-slide b { font: 700 26px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.mx-slide .mx-vbars { margin-top: auto; height: 110px; }
.mx-slide .mx-vbars i { background: #2f4570; }
.mx-slide.back { inset: 10px 10px 10px 10px; background: #dfe4ec; z-index: 2; }
.mx-slide.back.two { inset: 20px 0 0 20px; background: #eef0f4; z-index: 1; }

/* ===== premium pass: radii, hairlines, layered shadows and depth for every shared layout ===== */
.mx-banner { border-radius: var(--r4); background: radial-gradient(120% 140% at 100% 0%, #1f6f55 0%, rgba(31, 111, 85, 0) 55%), linear-gradient(120deg, #0c1626 0%, #13233c 60%, #183a3a 100%); box-shadow: var(--sh3); }
.mx-banner::after { border-radius: 50%; border-color: rgba(255, 255, 255, .07); width: 260px; height: 260px; right: -80px; top: -110px; box-shadow: 0 0 0 40px rgba(255, 255, 255, .025), 0 0 0 80px rgba(255, 255, 255, .02); }
.mx-banner small { color: #86efc4; }
.mx-banner p { color: #b4c0d3; }
.mx-step > span { border-radius: 50%; border-width: 1.5px; box-shadow: var(--sh1); }
.mx-step::before { height: 1.5px; }
.mx-step.now > span { box-shadow: 0 0 0 4px #e8ecf3; }

.mx-cal-h { background: #fafbfc; }
.mx-ev { border-left-width: 0; border-radius: 6px; position: relative; padding-left: 10px; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .05); }
.mx-ev.navy { background: #eef1f6; box-shadow: inset 3px 0 0 var(--nv); }
.mx-ev.green { background: #ecf9f2; box-shadow: inset 3px 0 0 var(--gr); }
.mx-ev.blue { background: #eef3ff; box-shadow: inset 3px 0 0 var(--bl); }
.mx-ev.amber { background: #fff7e8; box-shadow: inset 3px 0 0 #f79009; }
.mx-ev.open { border-radius: 6px; box-shadow: none; }
.mx-gbar { border-radius: 6px; }
.mx-gbar u { background: linear-gradient(180deg, #22324c, var(--nv)); }
.mx-gbar.done u { background: linear-gradient(180deg, #1fb07d, var(--gr)); }
.mx-milestone { border-radius: 2px; background: #f79009; }

.mx-phone { border-radius: 22px; overflow: hidden; border: 1px solid var(--bd); box-shadow: var(--sh4); }
.mx-phone-h { background: linear-gradient(135deg, #13233c, #0c1626); padding: 14px 16px; }
.mx-phone-h .mx-logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); }
.mx-phone-b { background: linear-gradient(180deg, #f7f8fa, #f2f4f7); gap: 8px; }
.mx-bub { border-radius: 16px; padding: 9px 12px; box-shadow: 0 1px 1px rgba(16, 24, 40, .04); }
.mx-bub.bot { border-radius: 4px 16px 16px 16px; border-color: #e8eaee; }
.mx-bub.me { border-radius: 16px 16px 4px 16px; background: linear-gradient(180deg, #1fae7b, #0f9364); color: #fff; }
.mx-quick span { border-radius: 999px; padding: 4px 11px; background: #fff; border-color: #a6e4c9; color: var(--gr2); box-shadow: var(--sh1); }
.mx-cite { border-radius: 999px; padding: 2px 9px; }
.mx-sys { border-radius: 999px; }
.mx-typing { border-radius: 4px 14px 14px 14px; }
.mx-typing i { border-radius: 50%; }
.mx-phone-in { margin: 10px 12px 12px; border: 1px solid var(--bd); border-radius: 999px; padding: 8px 8px 8px 14px; align-items: center; background: #fff; box-shadow: var(--sh1); }
.mx-phone-in .mx-i { background: var(--gr); color: #fff; width: 26px; height: 26px; padding: 6px; border-radius: 50%; }

.mx-wave { border-radius: var(--r4); background: radial-gradient(100% 140% at 0% 0%, #1b3354 0%, #0c1626 70%); gap: 2.5px; box-shadow: var(--sh3); }
.mx-wave i { border-radius: 2px; background: #33496d; }
.mx-wave i.played { background: linear-gradient(180deg, #6ee7b7, #12a26f); }
.mx-tl { border-radius: 8px; }
.mx-tl.ai { border-left: 0; box-shadow: inset 2px 0 0 var(--gr); }
.mx-job { border-radius: var(--r4); border-top: 1px solid var(--bd); box-shadow: var(--sh2), inset 0 3px 0 var(--gr); }

.mx-mailrow { border-radius: 0; }
.mx-mailrow.sel { background: #f3faf6; }
.mx-draft { border-radius: var(--r3); background: linear-gradient(180deg, #f3fbf7, #fff); }
.mx-seqstart, .mx-seqend { border-radius: var(--r3); }
.mx-seqstart { background: linear-gradient(180deg, #22324c, var(--nv)); }
.mx-seqstep { border-radius: var(--r3); background: #fff; box-shadow: var(--sh1); }
.mx-seqday { border-radius: 6px; background: #f2f4f7; }
.mx-email-b { border-radius: var(--r3); border: 0; box-shadow: 0 0 0 1px var(--bd), var(--sh3); margin: 14px; }
.mx-email-logo { width: auto; height: auto; background: none; color: var(--tx); display: flex; gap: 8px; align-items: center; font-size: 14px; letter-spacing: -.015em; }
.mx-email-logo b { font-weight: 650; }

.mx-canvas { border-radius: var(--r4); background: #fcfcfd radial-gradient(#dfe3ea 1px, transparent 1.2px) 0 0 / 18px 18px; }
.mx-node { border-radius: 10px; box-shadow: var(--sh2); }
.mx-node.start { border-top: 1px solid var(--bd); box-shadow: var(--sh2), inset 0 3px 0 var(--gr); }
.mx-node.sel { border-color: #7aa2ff; box-shadow: 0 0 0 3px rgba(59, 108, 246, .15), var(--sh3); }
.mx-node em { border-radius: 50%; }
.mx-node-i { border-radius: 8px; background: linear-gradient(145deg, #22324c, var(--nv)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.mx-conn, .mx-branch::after { background: #c3cad6; }
.mx-conn::after { border-top-color: #c3cad6; }
.mx-branch::before { border-color: #c3cad6; border-radius: 10px 10px 0 0; }

.mx-paper { border-radius: var(--r3); box-shadow: 0 0 0 1px rgba(16, 24, 40, .02), var(--sh4); }
.mx-paper h5 { font-size: 21px; letter-spacing: -.02em; }
.mx-sig { font: 400 30px/1 "Instrument Serif", "Snell Roundhand", cursive; font-style: italic; top: -34px; }
.mx-aimsg { border-radius: var(--r3); background: linear-gradient(180deg, #f1fbf6, #fbfefc); }
.mx-sources span { border-radius: 999px; background: #fff; }
.mx-timeline i { border-radius: 50%; }

.mx-wizard aside { background: radial-gradient(120% 55% at 0% 0%, rgba(44, 78, 124, .55) 0%, rgba(29, 58, 95, 0) 70%), linear-gradient(180deg, #0f1a2c 0%, #0b1322 100%); border-right: 1px solid #1c2638; }
.mx-wizard aside .mx-org b { color: #fff; }
.mx-wizard aside .mx-org small { color: #8d9bb3; }
.mx-wizard aside .mx-org .mx-i { color: #5d6f8d; }
.mx-wsteps > div span { border-radius: 50%; }
.mx-fields label div { border-radius: var(--r3); box-shadow: var(--sh1); border-color: #d5d9e0; background: #fff; }
.mx-fields label.focus div { border-color: #7aa2ff; box-shadow: 0 0 0 4px rgba(59, 108, 246, .14); }
.mx-opts div { border-radius: 10px; box-shadow: var(--sh1); background: #fff; }
.mx-opts div.on { box-shadow: 0 0 0 3px rgba(18, 162, 111, .14); }
.mx-upload { border-radius: 10px; background: #fafbfc; }

.mx-col { border-radius: var(--r4); background: #f0f2f5; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .04); }
.mx-col header span { border-radius: 999px; padding: 0 7px; box-shadow: var(--sh1); }
.mx-kc { border-radius: 10px; box-shadow: var(--sh2); border-color: #e8eaee; }
.mx-kc.lift { border-color: #7aa2ff; box-shadow: 0 0 0 3px rgba(59, 108, 246, .12), var(--sh4); }
.mx-kadd { border-radius: 8px; }

.mx-fb { border-radius: var(--r3); overflow: hidden; box-shadow: var(--sh4); }
.mx-fb-f { background: #f7f8fa; }
.mx-serp { border-radius: var(--r4); box-shadow: var(--sh4); }
.mx-serp-q { border-radius: 999px; box-shadow: 0 1px 6px rgba(32, 33, 36, .12); border-color: transparent; }
.mx-serp-org i { border-radius: 4px; }

.mx-ad { border-radius: 10px; box-shadow: var(--sh2); }
.mx-ad::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mx-ad-copy { z-index: 1; }
.mx-playbtn { border-radius: 50%; backdrop-filter: blur(6px); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); z-index: 1; }
.mx-dur { border-radius: 4px; z-index: 1; }
.mx-bs { border-radius: var(--r4); box-shadow: var(--sh2); overflow: hidden; }
.mx-bs.colors i { border-radius: 8px; }
.mx-bs.sign { background: radial-gradient(100% 100% at 0% 0%, #1d3a5f, #0c1626 70%); }

.mx-site { background: #fff; }
.mx-snav { padding: 14px 32px; }
.mx-snav > b { font-weight: 700; letter-spacing: -.02em; }
.mx-shero { background: radial-gradient(60% 80% at 90% 10%, #e8f7f0 0%, rgba(232, 247, 240, 0) 60%), linear-gradient(180deg, #fff, #f7f9f8); }
.mx-shero h3 { font-family: Inter, sans-serif; font-weight: 700; letter-spacing: -.04em; }
.mx-floatcard { border-radius: var(--r4); box-shadow: var(--sh4); }
.mx-floatcard > .mx-i { border-radius: 8px; }
.mx-prodcard { border-radius: 14px; box-shadow: var(--sh4); }
.mx-prodcard .mx-ad { border-radius: 10px; }
.mx-panel { border-radius: 14px; box-shadow: var(--sh4); }
.mx-slots span { border-radius: 8px; }
.mx-psearch { border-radius: 10px; border-width: 1.5px; box-shadow: 0 0 0 4px rgba(15, 27, 45, .06); }
.mx-count div { border-radius: 8px; }
.mx-panel.prize .mx-fields div { border-radius: 8px; }
.mx-ticket { border-radius: 14px; overflow: hidden; background: radial-gradient(100% 100% at 0% 0%, #1d3a5f, #0c1626 70%); }
.mx-qr { border-radius: 8px; }
.mx-qr i { border-radius: 1px; }
.mx-slide { border-radius: 14px; background: radial-gradient(100% 100% at 0% 0%, #1d3a5f, #0c1626 70%); }
.mx-slide.back { background: #dfe4ec; }
.mx-slide.back.two { background: #eef0f4; }
.mx-slide .mx-vbars i { background: #2a3f60; }
.mx-snav > .mx-btn { color: #fff; font-weight: 600; }
.mx-snav > .mx-btn.ghost { color: var(--tx2); }
.mx-sign { margin-top: 44px; }

/* accent follows the product family (--ac is set per template type on .mx). Success states stay green. */
.mx-step.done::before { background: var(--ac); }
.mx-step.done > span { background: var(--ac); border-color: var(--ac); }
.mx-cal-h.today { color: var(--ac); box-shadow: inset 0 -2px 0 var(--ac); }
.mx-quick span { border-color: color-mix(in srgb, var(--ac) 40%, #fff); color: var(--ac2); }
.mx-phone-in .mx-i { background: var(--ac); }
.mx-bub.me { background: linear-gradient(180deg, var(--acl), var(--ac)); }
.mx-wave i.played { background: linear-gradient(180deg, var(--acl), var(--ac)); }
.mx-tl.ai { background: var(--acs); box-shadow: inset 2px 0 0 var(--ac); }
.mx-tl.ai span { color: var(--ac2); }
.mx-job { box-shadow: var(--sh2), inset 0 3px 0 var(--ac); }
.mx-job small { color: var(--ac); }
.mx-mailrow.sel { background: var(--acs); box-shadow: inset 3px 0 0 var(--ac); }
.mx-draft { background: linear-gradient(180deg, var(--acs), #fff); }
.mx-seqstep.sel { border-color: var(--ac); box-shadow: 0 0 0 3px var(--acs); }
.mx-node.start { box-shadow: var(--sh2), inset 0 3px 0 var(--ac); }
.mx-branch-l > small { color: var(--ac2); }
.mx-wsteps > div.done span { background: var(--ac); border-color: var(--ac); }
.mx-fields label div .mx-i { color: var(--ac); }
.mx-opts div.on { border-color: var(--ac); background: var(--acs); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 14%, transparent); }
.mx-opts div.on span { border-color: var(--ac); }
.mx-aimsg { background: linear-gradient(180deg, var(--acs), #fff); }
.mx-floatcard > .mx-i { background: var(--acs); color: var(--ac); }
.mx-browserbar .mx-i { color: var(--ac); }
.mx-gbar.done u { background: linear-gradient(180deg, var(--acl), var(--ac)); }

/* ==== Shared polish, round 3 (core owner). Brand mark, sidebar filler, chart callouts, layout balance. ==== */

/* brand: the peaks squircle carries its own shape, so no square shadow box behind it */
.mx-logo.mx-mark.mx-peaks { border-radius: 30%; box-shadow: 0 1px 1px rgba(10, 77, 57, .22), 0 3px 8px -3px rgba(10, 77, 57, .45); }
.mx-org .mx-logo.mx-peaks { width: 30px; height: 30px; }
.mx-app.side-dark .mx-logo.mx-peaks { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 4px 10px -4px rgba(0, 0, 0, .6); }
.mx-cav-brand { background: none !important; box-shadow: none !important; overflow: visible; }
.mx-cav-brand .mx-logo { width: 100%; height: 100%; border-radius: 30%; }

/* sidebar filler: blocks stack upward from the footer; a block that does not fit wraps out of view whole (never half cut) */
.mx-side-fill { flex: 1 1 0; min-height: 0; display: flex; flex-flow: column-reverse wrap; align-content: flex-start; justify-content: flex-start; overflow: hidden; column-gap: 40px; row-gap: 12px; padding: 12px 0 10px; }
.mx-side-fill > .mx-sfx { width: 100%; flex: 0 0 auto; }
.mx-side-fill + .mx-side-f { margin-top: 0; }
.mx-pins .mx-side-l { padding-top: 0; }
.mx-pins .mx-nav { padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.mx-pins .mx-nav .mx-i { width: 14px; height: 14px; }
.mx-news, .mx-meter, .mx-agenda { position: relative; padding: 10px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--bd); box-shadow: var(--sh1); font-size: 11.5px; }
.mx-news b { display: block; font-size: 12px; color: var(--tx); margin: 6px 16px 1px 0; line-height: 1.3; }
.mx-news small { font-size: 10.5px; line-height: 1.35; }
.mx-news-t { display: inline-flex; height: 17px; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--acs); color: var(--ac2); }
.mx-news .mx-news-x { position: absolute; top: 10px; right: 9px; width: 12px; height: 12px; color: var(--mu2); }
.mx-meter > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.mx-meter em { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--tx2); }
.mx-meter .mx-prog { margin: 6px 0 5px; height: 5px; }
.mx-meter > small:last-child { font-size: 10.5px; font-variant-numeric: tabular-nums; }
.mx-agenda > small { font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--mu2); margin-bottom: 5px; }
.mx-agenda > div { display: flex; gap: 8px; align-items: center; padding: 4px 0 4px 8px; border-left: 2px solid var(--ac); margin-top: 4px; }
.mx-agenda time { font-size: 10.5px; color: var(--mu); font-variant-numeric: tabular-nums; min-width: 44px; }
.mx-agenda span { font-size: 11.5px; font-weight: 550; color: var(--tx2); white-space: nowrap; }
.mx-app.side-dark .mx-news, .mx-app.side-dark .mx-meter, .mx-app.side-dark .mx-agenda { background: #151d2e; border-color: #243049; box-shadow: none; }
.mx-app.side-dark .mx-news b, .mx-app.side-dark .mx-agenda span, .mx-app.side-dark .mx-meter em { color: #eef1f6; }
.mx-app.side-dark .mx-news small, .mx-app.side-dark .mx-meter small, .mx-app.side-dark .mx-agenda time { color: #7c879b; }
.mx-app.side-dark .mx-news-t { background: color-mix(in srgb, var(--ac) 26%, #151d2e); color: var(--acl); }
.mx-app.side-dark .mx-meter .mx-prog { background: #243049; }
.mx-app.side-tint .mx-news, .mx-app.side-tint .mx-meter, .mx-app.side-tint .mx-agenda { background: rgba(255, 255, 255, .85); }

/* extra footer widgets */
.mx-invf, .mx-appf { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--bd); box-shadow: var(--sh1); font-size: 11.5px; }
.mx-invf > div { display: flex; align-items: center; gap: 7px; color: var(--ac); }
.mx-invf b { font-size: 12px; color: var(--tx); }
.mx-invf small { margin: 3px 0 7px; font-size: 10.5px; }
.mx-invf span { display: block; text-align: center; padding: 5px 0; border-radius: 7px; border: 1px solid var(--bd); font-weight: 600; font-size: 11px; color: var(--tx2); background: #fcfcfd; }
.mx-appf { display: flex; align-items: center; gap: 10px; }
.mx-appf > div { flex: 1; min-width: 0; }
.mx-appf b { display: block; font-size: 12px; color: var(--tx); }
.mx-appf small { font-size: 10.5px; line-height: 1.3; }
.mx-appf-ph { width: 24px; height: 38px; flex-shrink: 0; border-radius: 6px; background: linear-gradient(160deg, #1f2937, #0b1220); padding: 3px; box-shadow: 0 2px 5px -1px rgba(16, 24, 40, .35); }
.mx-appf-ph i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--acl), var(--ac)); }
.mx-app.side-dark .mx-invf, .mx-app.side-dark .mx-appf { background: #151d2e; border-color: #243049; box-shadow: none; }
.mx-app.side-dark .mx-invf b, .mx-app.side-dark .mx-appf b { color: #eef1f6; }
.mx-app.side-dark .mx-invf small, .mx-app.side-dark .mx-appf small { color: #7c879b; }
.mx-app.side-dark .mx-invf span { background: #1b2436; border-color: #2a3550; color: #c3cad6; }

/* chart callouts: box in the top band, thin leader down to the point; data is never covered */
.mx-chart .mx-co { position: absolute; z-index: 3; height: 38px; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-radius: 8px; background: var(--nv); color: #fff; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(16, 24, 40, .5); pointer-events: none; }
.mx-chart .mx-co.c { transform: translateX(-50%); }
.mx-chart .mx-co.l { transform: translateX(calc(-100% + 12px)); }
.mx-chart .mx-co.r { transform: translateX(-12px); }
.mx-chart .mx-co small { color: #98a2b3; font-size: 9.5px; line-height: 1.1; }
.mx-chart .mx-co span { display: flex; align-items: baseline; gap: 7px; line-height: 1.2; }
.mx-chart .mx-co b { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.mx-chart .mx-co em { font-style: normal; font-size: 10.5px; font-weight: 600; color: #6ee7b7; }
.mx-chart .mx-co em.bad { color: #fda29b; }
.mx-chart .mx-co-ln { position: absolute; z-index: 2; width: 0; border-left: 1px solid color-mix(in srgb, var(--nv) 55%, transparent); transform: translateX(-.5px); pointer-events: none; }
.mx-chart .mx-flag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; color: var(--ac2); background: #fff; border: 1px solid color-mix(in srgb, var(--ac) 28%, #e5e7eb); box-shadow: var(--sh1); }
.mx-chart .mx-flag.c { transform: translateX(-50%); }
.mx-chart .mx-flag.l { transform: translateX(calc(-100% + 10px)); }
.mx-chart .mx-flag.r { transform: translateX(-10px); }
.mx-chart .mx-flag i { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.mx-chart.has-band .nt, .mx-chart.has-band .tp { display: none; }

/* signed-in user and avatars: one size per context, portraits never shrink inside chips */
.mx-tag .mx-av, .mx-chip .mx-av, .mx-q-pill .mx-av { width: 16px; height: 16px; min-width: 16px; margin-left: -4px; flex-shrink: 0; }
.mx-tag .mx-av svg, .mx-chip .mx-av svg, .mx-q-pill .mx-av svg { width: 100%; height: 100%; }
.mx-av.mx-face { overflow: hidden; }
.mx-av.mx-face svg { width: 100%; height: 100%; display: block; }

/* tables: the last column never hugs the card edge */
.mx-q-cd table tr > :last-child, .mx-card.flush .mx-table tr > :last-child { padding-right: 16px; }

/* layout balance: the last block fills the frame so screens never stop short with a grey band; columns share one height */
.mx-app .mx-content { padding-bottom: 16px; }
.mx-app .mx-content > :last-child { flex-grow: 1; }
.mx-app .mx-content > .mx-g:last-child, .mx-app .mx-content > [class*="mx-g"]:last-child { align-items: stretch; align-content: stretch; }
.mx-app .mx-content > .mx-g:last-child > .mx-card, .mx-app .mx-content > .mx-g:last-child > section { display: flex; flex-direction: column; }
.mx-app .mx-content > .mx-g:last-child > .mx-card > .mx-card-f { margin-top: auto; }

/* kanban: ghost "Add card" row fills the column like real tools */
.mx-addcard { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; border: 1px dashed var(--bd3); color: var(--mu); font-size: 11.5px; font-weight: 550; background: rgba(255, 255, 255, .5); }
.mx-addcard .mx-i { width: 13px; height: 13px; }
.mx-side-fill > .mx-sfx-0 { width: 100%; height: 0; flex: 0 0 0; margin-bottom: -12px; }
.mx-chart .mx-co small { text-align: left; }
/* ad creative card (K.adCard) */
.mx-adcard { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1; background: #0b1220; color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .12), 0 8px 18px -10px rgba(16, 24, 40, .45); isolation: isolate; }
.mx-adcard.f4x5 { aspect-ratio: 4 / 5; }
.mx-adcard.f9x16 { aspect-ratio: 9 / 16; }
.mx-adcard .mx-adcard-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.mx-adcard .mx-adcard-img svg { width: 100%; height: 100%; display: block; }
.mx-adcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .72) 100%); }
.mx-adcard-top { position: absolute; top: 9px; left: 9px; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.mx-adcard-top .mx-logo { width: 20px; height: 20px; }
.mx-adcard-top b { font-weight: 650; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.mx-adcard-badge { position: absolute; top: 9px; right: 9px; padding: 4px 8px; border-radius: 7px; background: #fff; color: #0c111d; font-size: 11px; font-weight: 750; letter-spacing: -.01em; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }
.mx-adcard-b { position: absolute; left: 11px; right: 11px; bottom: 11px; }
.mx-adcard-b h6 { margin: 0 0 3px; font-size: 16px; line-height: 1.12; font-weight: 750; letter-spacing: -.02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.mx-adcard-b p { font-size: 11px; opacity: .88; margin-bottom: 7px; }
.mx-adcard-cta { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: #fff; color: #0c111d; font-size: 11px; font-weight: 650; }
.mx-adcard-cta .mx-i { width: 12px; height: 12px; }
/* compact filler cards so one still fits in a short gap */
.mx-side-fill { padding: 8px 0 6px; row-gap: 10px; }
.mx-side-fill > .mx-sfx-0 { margin-bottom: -10px; }
.mx-news, .mx-meter, .mx-agenda { padding: 8px 10px; }
.mx-news b { margin-top: 5px; }
.mx-news small { white-space: nowrap; overflow: hidden; }
.mx-agenda > small { margin-bottom: 2px; }
.mx-agenda > div { padding: 2px 0 2px 8px; margin-top: 3px; }
/* filler v2: top-down, row-granular */
.mx-side-fill { flex-flow: column wrap; row-gap: 1px; padding: 12px 0 8px; }
.mx-side-fill > .mx-sfx-0 { margin-bottom: 0; }
.mx-side-fill > .mx-pin-l { padding-top: 2px; }
.mx-side-fill > .mx-pin { padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.mx-side-fill > .mx-pin .mx-i { width: 14px; height: 14px; }
.mx-side-fill > .mx-news, .mx-side-fill > .mx-meter, .mx-side-fill > .mx-agenda { margin-top: 12px; }
.mx-side-fill > .mx-pin span { white-space: nowrap; }

/* ---- Shell v4: sidebar copy wraps to two lines instead of clipping; nothing in the chrome is cut mid-word */
.mx-news small, .mx-usage small, .mx-syncf small, .mx-teamf small, .mx-statf small, .mx-helpf small, .mx-ai-mini small, .mx-appf small, .mx-meter > small:last-child {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; text-overflow: clip; line-height: 1.35; overflow-wrap: normal; word-break: normal; }
.mx-news b, .mx-teamf b, .mx-statf b, .mx-helpf b, .mx-ai-mini b, .mx-appf b, .mx-syncf b { white-space: normal; line-height: 1.3; }
.mx-news b { margin-right: 0; }
.mx-news .mx-news-x { display: none; }
.mx-agenda > div { align-items: flex-start; }
.mx-agenda span { white-space: normal; line-height: 1.3; min-width: 0; }
.mx-agenda time { flex-shrink: 0; line-height: 1.45; }
/* long nav, group and pin labels wrap onto a second line instead of ending in "..." */
.mx-side .mx-nav span, .mx-side-fill > .mx-pin span { min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; overflow-wrap: normal; word-break: normal; }
.mx-side .mx-nav { align-items: center; }
/* browser chrome: the address bar is wide enough for every example's URL */
.browser-bar .url { max-width: 600px; }
.mx-side .mx-nav em { flex-shrink: 0; }
.mx-side-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* top bar: the breadcrumb gives way before the search box; search copy is short by design (24 chars) */
.mx-bar .mx-search { flex: 0 0 auto; width: auto; min-width: 232px; max-width: 290px; }
.mx-bar .mx-search span { overflow: visible; text-overflow: clip; flex: 1 1 auto; }

/* ---- Card helpers (K.cardF, K.cardFoot, K.stack): cards that end flush with their row, no dead band at the bottom */
.mx-card.fx { display: flex; flex-direction: column; min-height: 0; }
.mx-card.fx > .mx-card-b { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mx-card.fx > .mx-card-b > :last-child { margin-bottom: 0; }
.mx-card.fx > .mx-card-b > .mx-grow, .mx-card.fx > .mx-card-b > :only-child { flex: 1 1 auto; }
.mx-card.fx > .mx-card-f, .mx-card > .mx-card-f:last-child { margin-top: auto; }
.mx-card.fx.flush > .mx-card-f { margin: auto 16px 0; padding: 10px 0 12px; }
.mx-card-f > .mx-card-fr { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ac); font-weight: 600; white-space: nowrap; }
.mx-card-f > .mx-card-fr .mx-i { width: 12px; height: 12px; }
.mx-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.mx-stack > * { flex: 0 0 auto; }
.mx-stack > :last-child { flex: 1 1 auto; }
.mx-stack > .mx-card:last-child, .mx-stack > section:last-child { display: flex; flex-direction: column; }
.mx-stack > .mx-card:last-child > .mx-card-f { margin-top: auto; }
.mx-grow { flex: 1 1 auto; min-height: 0; }
/* any grid that is the last block of the page: nested stacks stretch too */
.mx-app .mx-content > [class*="mx-g"]:last-child > .mx-stack { height: 100%; }

/* pinned rows (K.app sidebar fill): label + first row travel together */
.mx-side-fill > .mx-pin-g > .mx-pin-l { padding-top: 2px; }
.mx-side-fill > .mx-pin-g > .mx-pin { padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.mx-side-fill > .mx-pin-g > .mx-pin .mx-i { width: 14px; height: 14px; }
.mx-bar .mx-search span { margin-right: 6px; }
