/* Product illustrations (welcome page + store screenshots). Always light, like the Google apps they depict. */
.mk-win { --mk-line: #e3e7ee; --mk-soft: #f4f6f9; --mk-text: #1f2328; --mk-text2: #5d6672; --mk-brand: #7c3aed; --mk-brand-soft: #f3eefe;
  width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; color: var(--mk-text); border-radius: 16px; border: 1px solid var(--mk-line);
  box-shadow: 0 30px 70px -20px rgba(16, 24, 40, .28), 0 2px 8px rgba(16, 24, 40, .06); overflow: hidden; font-size: 13px; line-height: 1.45; text-align: left; color-scheme: light; }
.mk-win svg { display: block; width: 100%; height: 100%; }
.mk-bar { flex: none; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f1f3f6; border-bottom: 1px solid var(--mk-line); }
.mk-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.mk-bar > i:nth-child(2) { background: #ffbd2e; } .mk-bar > i:nth-child(3) { background: #28c941; }
.mk-url { margin-left: 12px; flex: 1; max-width: 420px; height: 22px; border-radius: 11px; background: #fff; border: 1px solid var(--mk-line); color: var(--mk-text2); font-size: 11.5px; display: flex; align-items: center; padding: 0 12px; }
.mk-body { flex: 1; display: flex; min-height: 0; position: relative; }
.mk-app { width: 22px; height: 22px; flex: none; }
.mk-lg { width: 22px; height: 22px; flex: none; display: inline-block; }
.mk-lines { display: grid; gap: 8px; margin: 10px 0 16px; }
.mk-lines i { display: block; height: 8px; border-radius: 6px; background: #e8ebf0; }

/* side panel */
.mk-sp { width: 38%; min-width: 250px; max-width: 360px; flex: none; border-left: 1px solid var(--mk-line); display: flex; flex-direction: column; background: #fff; }
.mk-sp-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--mk-line); }
.mk-sp-b { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.mk-in { margin: 10px 12px 12px; height: 40px; border: 1px solid #cfd6df; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; color: #8b939e; font-size: 12.5px; }
.mk-in i { width: 28px; height: 28px; border-radius: 50%; background: var(--mk-brand); color: #fff; padding: 6px; }
.mk-card { border: 1px solid var(--mk-line); border-radius: 12px; padding: 10px 12px; background: #fbfcfd; }
.mk-card p { margin: 4px 0 0; color: var(--mk-text); font-size: 12.5px; }
.mk-k { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: var(--mk-text2); }
.mk-k svg { width: 15px; height: 15px; flex: none; }
.mk-rep { border: 1px solid var(--mk-line); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; background: #fff; }
.mk-rep:first-of-type { border-color: #d8c8fb; background: var(--mk-brand-soft); }
.mk-bub { align-self: flex-end; max-width: 88%; background: #eceff3; padding: 8px 12px; border-radius: 14px 14px 4px 14px; font-size: 12.5px; }
.mk-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mk-brand); background: var(--mk-brand-soft); padding: 3px 10px; border-radius: 999px; }
.mk-tag svg { width: 14px; height: 14px; }
.mk-ans p { margin: 0 0 6px; font-size: 12.5px; }
.mk-ans ul { margin: 0; padding-left: 18px; font-size: 12.5px; }
.mk-ans sup, .mk-srcs b { font-size: 10px; font-weight: 700; color: var(--mk-brand); background: var(--mk-brand-soft); border-radius: 5px; padding: 0 4px; }
.mk-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-srcs span { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; border: 1px solid var(--mk-line); border-radius: 8px; padding: 3px 8px; color: var(--mk-text2); }
.mk-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-acts span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: var(--mk-text2); border: 1px solid var(--mk-line); }
.mk-acts span.pri { color: var(--mk-brand); background: var(--mk-brand-soft); border-color: #d8c8fb; }
.mk-acts svg { width: 15px; height: 15px; }

/* gmail */
.mk-gm { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f6f8fc; }
.mk-gm-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; }
.mk-gm-top b { font-size: 16px; font-weight: 500; color: #444; margin-right: 12px; }
.mk-search { flex: 1; height: 34px; border-radius: 17px; background: #e9eef6; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #5f6368; font-size: 12.5px; }
.mk-search svg { width: 16px; height: 16px; flex: none; }
.mk-mail { flex: 1; margin: 0 12px 12px; background: #fff; border-radius: 14px; padding: 16px 20px; overflow: hidden; }
.mk-mail h4 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.mk-mail h4 em { font-style: normal; font-size: 11px; background: #e8eaed; border-radius: 4px; padding: 2px 6px; color: #444; vertical-align: 3px; }
.mk-from { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mk-from small { display: block; color: #5f6368; font-size: 11.5px; }
.mk-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f3b6a8; color: #7a2e1d; font-weight: 700; }
.mk-mail p { margin: 0 0 8px; font-size: 13px; }
.mk-att { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--mk-line); border-radius: 8px; padding: 6px 10px; font-size: 12px; margin: 4px 0 12px; }
.mk-att svg { width: 18px; height: 18px; }
.mk-reply { border: 1px solid var(--mk-line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.mk-reply .mk-lines { margin: 0 0 10px; }
.mk-reply-row { display: flex; align-items: center; gap: 10px; }
.mk-send { background: #0b57d0; color: #fff; border-radius: 18px; padding: 6px 18px; font-weight: 600; font-size: 12.5px; }
.mk-gbtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: linear-gradient(135deg, #f5f0ff, #ede4ff); color: #5b21b6; border: 1px solid #d8c8fb; font-weight: 600; font-size: 12.5px; }
.mk-gbtn svg { width: 15px; height: 15px; }

/* docs / sheets / slides */
.mk-doc { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f8f9fb; position: relative; }
.mk-doc-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--mk-line); }
.mk-doc-top b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-menu { display: flex; gap: 14px; margin-left: 12px; color: #5f6368; font-size: 12px; }
.mk-page { width: min(78%, 620px); margin: 18px auto 0; background: #fff; border: 1px solid var(--mk-line); border-radius: 4px 4px 0 0; padding: 30px 46px; flex: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.mk-page h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.mk-page p { margin: 0; font-size: 13px; }
.mk-sel { background: #c9e3fd; border-radius: 2px; box-decoration-break: clone; }
.mk-dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(86%, 600px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mk-chips span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #f1f3f6; border: 1px solid var(--mk-line); font-size: 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.mk-chips span.on { background: var(--mk-brand-soft); border-color: #d8c8fb; color: #5b21b6; }
.mk-chips svg { width: 15px; height: 15px; color: var(--mk-text2); }
.mk-pill { width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 10px; border-radius: 22px; background: #fff; border: 1px solid #cfd6df; box-shadow: 0 8px 26px rgba(16, 24, 40, .14); color: #8b939e; font-size: 12.5px; }
.mk-pill > span:nth-child(2) { flex: 1; }
.mk-pill i { width: 32px; height: 32px; border-radius: 50%; background: var(--mk-brand); color: #fff; padding: 7px; }
.mk-res { width: 100%; background: #fff; border: 1px solid var(--mk-line); border-radius: 16px; box-shadow: 0 12px 34px rgba(16, 24, 40, .16); padding: 12px 14px; }
.mk-res-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; color: var(--mk-text2); margin-bottom: 6px; }
.mk-res-h .mk-lg { width: 18px; height: 18px; }
.mk-res p { margin: 0 0 10px; font-size: 13px; }
.mk-res-f { display: flex; gap: 6px; }
.mk-res-f span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--mk-line); font-size: 11.5px; font-weight: 600; }
.mk-res-f span.pri { background: var(--mk-brand); border-color: var(--mk-brand); color: #fff; }
.mk-res-f svg { width: 14px; height: 14px; }
.mk-fx { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #fff; border-bottom: 1px solid var(--mk-line); font-size: 12px; color: #5f6368; }
.mk-fx span { border: 1px solid var(--mk-line); border-radius: 4px; padding: 1px 8px; }
.mk-grids { position: relative; flex: 1; background: #fff; overflow: hidden; }
.mk-grid { position: absolute; inset: 0; border-collapse: collapse; width: 100%; font-size: 12px; table-layout: fixed; }
.mk-grid th { background: #f8f9fa; color: #5f6368; font-weight: 500; border: 1px solid #e2e3e3; height: 24px; font-size: 11px; }
.mk-grid tr > th:first-child { width: 36px; }
.mk-grid td { border: 1px solid #e2e3e3; height: 28px; padding: 0 8px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.mk-grid td.h { font-weight: 600; background: #f6f2ff; }
.mk-grid.after { opacity: 0; }
.mk-grid.after tr.tot td { font-weight: 700; background: #f3eefe; }
.mk-sh .mk-dock { bottom: 14px; }
.mk-sl-main { flex: 1; display: flex; gap: 14px; padding: 14px; min-height: 0; }
.mk-strip { width: 92px; display: grid; gap: 10px; align-content: start; }
.mk-th { aspect-ratio: 16/9; border: 1px solid var(--mk-line); border-radius: 6px; background: #fff; padding: 8px; display: grid; gap: 5px; align-content: start; }
.mk-th.on { border: 2px solid #f5b400; }
.mk-th i { height: 5px; border-radius: 3px; background: #e8ebf0; } .mk-th i:first-child { width: 70%; background: #d7dbe2; }
.mk-slide { flex: 1; aspect-ratio: 16/9; max-height: 100%; background: linear-gradient(135deg, #fff 60%, #fff8e1); border: 1px solid var(--mk-line); border-radius: 8px; padding: 26px 30px; position: relative; overflow: hidden; }
.mk-slide h3 { margin: 0 0 12px; font-size: 22px; }
.mk-slide ul { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 6px; max-width: 58%; }
.mk-chart { position: absolute; right: 28px; bottom: 26px; width: 32%; height: 48%; display: flex; align-items: flex-end; gap: 10%; border-bottom: 2px solid #e1e4e8; }
.mk-chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(#fbbf24, #f59e0b); }
.mk-chart i:last-child { background: linear-gradient(#a78bfa, #7c3aed); }

/* web page */
.mk-web { flex: 1; min-width: 0; padding: 26px 34px; background: #fff; overflow: hidden; }
.mk-web-hero small { color: var(--mk-brand); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.mk-web-hero h3 { margin: 6px 0 4px; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.mk-web-img { height: 34%; border-radius: 12px; background: linear-gradient(135deg, #c7d2fe, #a5f3fc 55%, #bbf7d0); margin: 6px 0 14px; }
.mk-web-img.alt { background: linear-gradient(135deg, #fde68a, #fca5a5 60%, #c4b5fd); }
.mk-art { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(#fdba74, #f472b6 55%, #7c3aed); }
.mk-art .sun { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; left: 33%; top: 22%; background: radial-gradient(#fff7ae, #fcd34d); box-shadow: 0 0 40px #fde68a; }
.mk-art .hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.mk-art .h1 { bottom: -12%; height: 45%; background: #4c1d95; }
.mk-art .h2 { bottom: -22%; height: 40%; background: #1e1b4b; left: 30%; right: -30%; }
.mk-art .tree { position: absolute; bottom: 18%; left: 20%; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 44px solid #0f172a; }

/* entrance animation (restarted by adding .play) */
.play .a1, .play .a2, .play .a3, .play .a4, .play .a5 { opacity: 0; animation: mkIn .5s ease-out forwards; }
.play .a1 { animation-delay: .3s; } .play .a2 { animation-delay: 1.1s; } .play .a3 { animation-delay: 1.8s; } .play .a4 { animation-delay: 2.4s; } .play .a5 { animation-delay: 3s; }
@keyframes mkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.play .mk-grid.before { animation: mkOut .5s 1.6s forwards; }
.play .mk-grid.after { animation: mkFade .6s 1.7s forwards; }
@keyframes mkOut { to { opacity: 0; } }
@keyframes mkFade { to { opacity: 1; } }
.static .mk-grid.before { opacity: 0; } .static .mk-grid.after { opacity: 1; }
