/* iDaily case study: process, brand guidelines, style guide and component specimens.
   Palette values come from the project's colour board (Black, Purple, Violet, Pink, Mauve, Yellow).
   Anything marked "proposed" on the page was added so the app meets contrast and touch rules. */
.idp, .hb.idb, .idg { --purple: #682F86; --violet: #AB47A5; --pink: #F84889; --mauve: #EAE2FA; --yellow: #FFBC59; --deep: #4B1A66; --ink: #000; --mut: #5E4A6B; --rule: #E2D8EE; }

/* ---------- Design process ---------- */
.idp { display: grid; gap: 32px; min-width: 0; }
.idp-figs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.idp-figs .shot { margin: 0; }
.idp-dd { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.idp-dd > li { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 3px solid var(--purple); }
.idp-dd > li:nth-child(2) { border-top-color: var(--pink); }
.idp-dd > li:nth-child(3) { border-top-color: var(--violet); }
.idp-dd > li:nth-child(4) { border-top-color: var(--yellow); }
.idp-dd h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.idp-dd p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.idp-dd ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; line-height: 1.45; }
.idp-dd .out { color: var(--ink); font-size: .88rem; }
.idp-dd .out b { color: var(--purple); }
.idp-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: s; max-width: 640px; }
.idp-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: .98rem; }
.idp-steps li:last-child { border-bottom: 1px solid var(--rule); }
.idp-steps li::before { content: counter(s); font-weight: 700; color: var(--purple); }
.idp-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.idp-feat li { padding: 12px 0; border-top: 1px solid var(--rule); break-inside: avoid; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.idp-feat strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 700; }
.cs-section:has(.idp) .cs-label, .cs-section:has(.idg) .cs-label { position: static; }

/* ---------- Brand specimen overrides ---------- */
.hb.idb { --navy: #682F86; --soft: #EAE2FA; --slate: #5E4A6B; --hair: #E2D8EE; --edge: #6B5A7A; }
.hb.idb .hb-head { background: #682F86; }
.hb.idb .hb-head p { color: #EAE2FA; }
.hb.idb .hb-pair { min-width: 56px; margin-right: 6px; }
.hb.idb .hb-dots i { border: 1px solid rgba(255, 255, 255, .35); }
.idb-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 640px; }
.idb-logo { margin: 0; display: grid; justify-items: start; align-content: space-between; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.idb-logo img { display: block; height: 120px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.idb-logo figcaption { font-size: .85rem; color: #5E4A6B; }
.idb-fig { margin: 0; max-width: 760px; }
.hb-core .chip { border-color: rgba(0, 0, 0, .12); }

/* ---------- Component specimens ---------- */
.idg { display: grid; min-width: 0; }
.idg-comp { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px) 0; border-top: 1px solid var(--line); min-width: 0; }
@media (min-width: 860px) { .idg-comp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; } }
.idg-info h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -.02em; }
.idg-info p { margin: 0; max-width: 46ch; line-height: 1.55; color: var(--muted); }
.idg-spec { display: grid; gap: 14px; align-content: start; min-width: 0; max-width: 520px; padding: 20px; border-radius: 14px; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; }
.id-light { background: #fff; border: 1px solid var(--rule); color: #000; }
.id-dark { background: linear-gradient(#8A4DAA, #70379A); color: #fff; }
.idg-cap { font-size: 13px; color: var(--mut); }
.id-dark .idg-cap { color: #EAE2FA; }
.idg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.id-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; border: 0; border-radius: 22px; background: #682F86; color: #fff; font: 700 15px/1 Helvetica, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.id-dark .id-btn { background: #AB47A5; }
.id-btn.pink { background: #F84889; font-size: 19px; min-height: 48px; padding: 0 36px; }
.id-btn.light { background: #fff; color: #682F86; }
.id-btn.hover { background: #4B1A66; }
.id-btn.focus { outline: 3px solid #FFBC59; outline-offset: 2px; }
.id-light .id-btn.focus { outline-color: #682F86; }
.id-btn.off { opacity: .5; }
.id-link { background: none; border: 0; padding: 10px 0; min-height: 44px; color: #682F86; font: 700 15px Helvetica, Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.id-dark .id-link { color: #fff; }

.id-field { display: grid; gap: 6px; }
.id-field label { font-size: 14px; color: #000; }
.id-field .box { min-height: 48px; display: flex; align-items: center; padding: 0 18px; border: 1.5px solid #682F86; border-radius: 24px; background: #fff; color: #000; font-size: 16px; }
.id-field .box.ph { color: #5E4A6B; }
.id-field.bad .box { border-color: #B3261E; }
.id-field .err { margin: 0; font-size: 13px; color: #B3261E; }
.id-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.id-check i { width: 20px; height: 20px; border: 1.5px solid #682F86; border-radius: 4px; display: grid; place-items: center; }
.id-check i svg { width: 14px; height: 14px; }
.id-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 16px; }
.id-sw span { display: flex; align-items: center; gap: 10px; }
.id-sw b { font-weight: 700; font-size: 14px; }
.id-sw i { position: relative; width: 48px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .35); flex: none; }
.id-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.id-sw.on i { background: #F84889; }
.id-sw.on i::after { left: 25px; }

.id-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.id-tile { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 104px; padding: 12px; border-radius: 8px; background: #4B1A66; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.id-tile svg { width: 32px; height: 32px; }
.id-rows { display: grid; }
.id-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 16px; }
.id-row + .id-row { margin-top: 8px; }
.id-row svg { width: 16px; height: 16px; flex: none; }
.id-soon { display: grid; gap: 12px; }
.id-soon h4 { margin: 0; font-size: 20px; color: #FFBC59; text-transform: uppercase; }
.id-soon .it { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.id-soon .it svg { width: 24px; height: 24px; margin-top: 2px; }
.id-soon b { display: block; font-size: 16px; text-transform: uppercase; font-weight: 400; }
.id-soon small { display: block; font-size: 13px; text-transform: uppercase; font-style: italic; color: #EAE2FA; }
.id-pager { display: flex; align-items: center; justify-content: space-between; }
.id-dots { display: flex; gap: 8px; }
.id-dots i { width: 12px; height: 12px; border-radius: 50%; background: #AB47A5; }
.id-dots i.on { background: #fff; }
.id-time { display: flex; gap: 8px; }
.id-time span { display: inline-grid; place-items: center; min-width: 52px; min-height: 40px; padding: 0 12px; border-radius: 20px; background: #fff; color: #682F86; font-weight: 700; font-size: 15px; }
.id-time span.on { background: #F84889; color: #fff; }
.id-wave { display: block; width: 100%; height: 56px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .id-btn, .id-sw i::after { transition: none; } }

/* ---------- Prototype ---------- */
.ia-stage { display: grid; place-items: center; background: #EAE2FA; border-radius: var(--radius); padding: clamp(24px, 5vw, 56px) 16px; min-width: 0; }
.ia-phone { width: min(340px, 100%); height: 680px; padding: 9px; border-radius: 38px; background: #14161c; box-shadow: 0 14px 30px rgba(75, 26, 102, .25), 0 2px 6px rgba(75, 26, 102, .2); }
.ia-proto { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; }
.ia-proto, .ia-proto * { box-sizing: border-box; }
.ia-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ia-app { position: relative; height: 100%; display: flex; flex-direction: column; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.35; color: #fff; background: linear-gradient(#8A4DAA, #70379A); text-align: left; }
.ia-app.mauve { background: #EAE2FA; color: #000; }
.ia-app.light { background: #fff; color: #682F86; }
.ia-app.bare { background: #fff; color: #000; }
.ia-app button { font: inherit; color: inherit; cursor: pointer; }
.ia-app :focus-visible { outline: 3px solid #FFBC59; outline-offset: 2px; border-radius: 6px; }
.ia-app.mauve :focus-visible, .ia-app.bare :focus-visible { outline-color: #682F86; }
.ia-status { flex: none; height: 30px; padding: 11px 22px 0; font-size: 13px; font-weight: 700; z-index: 3; }
.ia-app.mauve.hd .ia-status { background: #682F86; color: #fff; }
.ia-app.bare .ia-status { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.ia-app.bare.light .ia-status { color: #000; }
.ia-scroll { flex: 1; overflow-y: auto; padding: 8px 18px 18px; scrollbar-width: none; display: block; }
.ia-scroll::-webkit-scrollbar { display: none; }
.ia-app.bare .ia-scroll { padding: 0; position: relative; overflow: hidden; }
.ia-app.mauve.hd .ia-scroll { padding-top: 0; }
.ia-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.ia-app.mauve.hd .ia-top { margin: 0 -18px 14px; padding: 0 12px; background: #682F86; color: #fff; }
.ia-ico { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; padding: 0; }
.ia-title { margin: 0; flex: 1; text-align: center; font-size: 15px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.ia-title:focus { outline: none; }
.ia-add { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #F84889; color: #fff; padding: 0; }
.ia-display { margin: 0; font-size: 30px; font-weight: 400; letter-spacing: .06em; text-align: center; }
.ia-title2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .05em; text-align: center; }
.ia-title2:focus, .ia-display:focus { outline: none; }
.ia-name { margin: 8px 0 0; font-size: 26px; font-weight: 700; color: #682F86; }
.ia-copy { margin: 0; font-size: 16px; text-align: center; }
.ia-copy.left { text-align: left; margin: 6px 0 14px; }
.ia-small { margin: 0; font-size: 14px; text-align: center; color: #682F86; }
.ia-note { margin: 14px 0 0; font-size: 14px; color: #5E4A6B; }
.ia-app:not(.mauve):not(.bare) .ia-note { color: #EAE2FA; }
.ia-note.first { margin: 0 0 6px; }
.ia-err { min-height: 20px; margin: 6px 0 0; font-size: 13px; color: #B3261E; text-align: center; }
.ia-app:not(.mauve):not(.bare) .ia-err { color: #FFD9D6; }

.ia-icon-tile { display: grid; place-items: center; width: 92px; height: 112px; border-radius: 18px; background: #fff; overflow: hidden; }
.ia-icon-tile img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ia-center { position: absolute; inset: 0 0 60px; display: grid; place-content: center; justify-items: center; }
.ia-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62px; display: block; }
.ia-hero { position: relative; display: grid; place-content: center; justify-items: center; gap: 22px; height: 58%; background: linear-gradient(#8A4DAA, #70379A); color: #fff; padding-top: 24px; }
.ia-hero.short { height: 30%; gap: 8px; }
.ia-skip { position: absolute; top: 34px; right: 14px; border: 0; background: none; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; min-height: 44px; padding: 0 8px; }
.ia-sheet { display: grid; gap: 14px; justify-items: center; padding: 26px 18px 0; }
.ia-form { display: grid; gap: 10px; padding: 14px 22px 70px; }
.ia-ok { position: absolute; left: 50%; top: 31%; transform: translateX(-50%); width: 170px; height: 120px; border: 2px solid #682F86; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.ia-ok span { width: 56px; height: 56px; border-radius: 50%; background: #2E9B4F; color: #fff; display: grid; place-items: center; }
.ia-ok span svg { width: 32px; height: 32px; }
.ia-app.bare .ia-hero + .ia-ok + .ia-sheet { padding-top: 90px; }

.ia-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 30px; border: 0; border-radius: 23px; background: #682F86; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; justify-self: center; }
.ia-btn:hover { background: #4B1A66; }
.ia-app:not(.mauve):not(.bare) .ia-btn { background: #AB47A5; }
.ia-app:not(.mauve):not(.bare) .ia-btn:hover { background: #8C3688; }
.ia-btn.pink { background: #F84889; font-size: 19px; min-height: 50px; padding: 0 40px; }
.ia-app:not(.mauve):not(.bare) .ia-btn.pink { background: #F84889; }
.ia-btn.light { background: #fff; color: #682F86; }
.ia-app:not(.mauve):not(.bare) .ia-btn.light { background: #fff; }
.ia-btn:only-child, .ia-scroll > .ia-btn { display: flex; margin: 18px auto 0; width: fit-content; }
.ia-link { border: 0; background: none; padding: 10px 2px; min-height: 44px; color: #682F86; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.ia-form .ia-link { justify-self: center; }
.ia-small .ia-link { display: inline; padding: 0; min-height: 0; }

.ia-field { display: grid; gap: 6px; }
.ia-field label { font-size: 14px; }
.ia-app.bare .ia-field label { color: #000; }
.ia-field input, .ia-field textarea, .ia-sel select { width: 100%; min-height: 48px; padding: 0 18px; border: 1.5px solid #682F86; border-radius: 24px; background: #fff; color: #000; font: inherit; }
.ia-field textarea { padding: 12px 18px; border-radius: 18px; resize: none; }
.ia-field.light label { color: #000; }
.ia-sel { position: relative; display: block; }
.ia-sel select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.ia-sel svg { position: absolute; right: 16px; top: 50%; margin-top: -9px; color: #682F86; pointer-events: none; }
.ia-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; position: relative; cursor: pointer; }
.ia-check input, .ia-task input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.ia-check i { flex: none; width: 22px; height: 22px; border: 1.5px solid #682F86; border-radius: 4px; display: grid; place-items: center; color: transparent; background: #fff; }
.ia-check input:checked + i { color: #682F86; }
.ia-check input:focus-visible + i, .ia-task input:focus-visible + i { outline: 3px solid #FFBC59; outline-offset: 2px; }
.ia-check i svg { width: 14px; height: 14px; }

.ia-intro { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 60px 24px 36px; background: linear-gradient(#8A4DAA, #70379A); color: #fff; text-align: center; }
.ia-intro .ia-art { color: #FFBC59; }
.ia-intro .ia-art svg { width: 110px; height: 110px; }
.ia-dots { display: flex; gap: 8px; }
.ia-dots i { width: 12px; height: 12px; border-radius: 50%; background: #AB47A5; }
.ia-dots i.on { background: #fff; }

.ia-greet { display: grid; gap: 2px; justify-items: end; text-align: right; margin: 4px 0 10px; }
.ia-wx { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: .03em; }
.ia-tip { margin: 0; font-size: 14px; font-style: italic; text-transform: uppercase; color: #EAE2FA; }
.ia-soon { display: grid; gap: 10px; margin-top: 8px; }
.ia-soon h3, .ia-todo h3 { margin: 0; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.ia-soon h3 { color: #FFBC59; text-align: center; }
.ia-soon .it { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ia-soon .it svg { margin-top: 2px; }
.ia-soon b { display: block; font-weight: 400; text-transform: uppercase; font-size: 15px; }
.ia-soon small { display: block; font-size: 12px; font-style: italic; text-transform: uppercase; color: #EAE2FA; }
.ia-todo { margin-top: 14px; padding-top: 10px; border-top: 2px solid #F84889; display: grid; gap: 2px; }
.ia-hrow { display: flex; align-items: center; justify-content: space-between; border: 0; background: none; padding: 4px 0; min-height: 44px; }
.ia-task { display: flex; align-items: center; gap: 12px; min-height: 44px; position: relative; cursor: pointer; }
.ia-task i { flex: none; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 4px; display: grid; place-items: center; color: transparent; }
.ia-task input:checked + i { background: #fff; color: #682F86; border-color: #fff; }
.ia-app.mauve .ia-task input:checked + i { background: #682F86; color: #fff; border-color: #682F86; }
.ia-task i svg { width: 14px; height: 14px; }
.ia-task span { font-size: 17px; }
.ia-task small { display: block; font-size: 12px; opacity: .8; }
.ia-task.done span { text-decoration: line-through; opacity: .75; }

.ia-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ia-tile { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 124px; padding: 12px; border: 0; border-radius: 8px; background: #682F86; color: #fff; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ia-tile:hover { background: #4B1A66; }
.ia-h4 { margin: 18px 0 6px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #682F86; }
.ia-h4.on { color: #FFBC59; }
.ia-h4.plain { text-transform: none; letter-spacing: 0; font-size: 17px; margin: 14px 0 2px; color: inherit; }
.ia-rows { display: grid; gap: 8px; }
.ia-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #fff; color: #000; font-size: 15px; }
.ia-line span { color: #5E4A6B; text-align: right; }
.ia-line.dk { background: rgba(255, 255, 255, .14); color: #fff; }
.ia-line.dk span { color: #fff; }
.ia-note-card { padding: 14px; border-radius: 8px; background: #fff; }
.ia-note-card p { margin: 0; font-size: 15px; }
.ia-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); text-align: left; }
.ia-row .r { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ia-sw { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-top: 8px; }
.ia-sw button, .ia-sw1 { position: relative; width: 48px; height: 28px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .35); padding: 0; flex: none; }
.ia-sw button i, .ia-sw1 i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ia-sw button[aria-checked="true"], .ia-sw1[aria-checked="true"] { background: #F84889; }
.ia-sw button[aria-checked="true"] i, .ia-sw1[aria-checked="true"] i { transform: translateX(20px); }
.ia-plain { display: grid; margin-top: 8px; }
.ia-link2 { border: 0; background: none; text-align: left; min-height: 44px; padding: 0 14px; font-size: 16px; }
.ia-link2.out { color: #FFBC59; }

.ia-cur { display: grid; justify-items: center; margin: 4px 0 14px; }
.ia-cur p { margin: 0; font-size: 14px; }
.ia-cur b { font-size: 42px; font-weight: 700; letter-spacing: -.01em; }
.ia-alarm { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.ia-alarm b { display: block; font-size: 22px; }
.ia-alarm small { font-size: 13px; color: #EAE2FA; }
.ia-time { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 14px; }
.ia-time > b { font-size: 44px; font-weight: 700; }
.ia-step { display: grid; justify-items: center; }
.ia-step b { font-size: 44px; line-height: 1.1; }
.ia-step button { width: 44px; height: 36px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.ia-ampm { display: grid; gap: 8px; margin-left: 6px; }
.ia-ampm button, .ia-days button { min-width: 48px; min-height: 40px; border: 0; border-radius: 20px; background: #fff; color: #682F86; font-weight: 700; font-size: 15px; padding: 0 12px; }
.ia-ampm button[aria-pressed="true"], .ia-days button[aria-pressed="true"] { background: #F84889; color: #fff; }
.ia-days { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 14px; }
.ia-days button { min-width: 38px; padding: 0; }
.ia-field.big textarea { min-height: 150px; }
.ia-pin { display: flex; justify-content: center; gap: 14px; margin: 6px 0 10px; }
.ia-pin i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.ia-pin i.on { background: #F84889; }
.ia-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 auto 6px; max-width: 250px; }
.ia-keys button { min-height: 48px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); font-size: 20px; display: grid; place-items: center; }
.ia-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ia-sum > div { padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.ia-sum small { display: block; font-size: 12px; color: #EAE2FA; }
.ia-sum b { font-size: 24px; }
.ia-chart { display: block; width: 100%; height: auto; margin: 10px 0 0; }
.ia-how { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: h; }
.ia-how li { counter-increment: h; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14px; }
.ia-how li::before { content: counter(h); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F84889; font-weight: 700; font-size: 14px; }
.ia-how b { display: block; font-size: 16px; }
.ia-dial { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0; }
.ia-dial b { font-size: 56px; line-height: 1; }
.ia-dial b small { font-size: 18px; margin-left: 4px; }
.ia-dial button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; padding: 0; }
.ia-active { display: grid; justify-items: center; gap: 4px; margin: 26px 0 18px; text-align: center; }
.ia-active b { font-size: 24px; }
.ia-active p { margin: 0; font-size: 15px; }
.ia-star { color: #FFBC59; }
.ia-star svg { width: 54px; height: 54px; fill: #FFBC59; }
.ia-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; color: #682F86; border-top: 1px solid #E2D8EE; padding-bottom: 6px; }
.ia-tabs button { display: grid; justify-items: center; gap: 2px; min-height: 54px; padding: 8px 0 4px; border: 0; background: none; font-size: 12px; position: relative; }
.ia-tabs button[aria-current="page"] { font-weight: 700; }
.ia-tabs button[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 50%; width: 28px; height: 3px; margin-left: -14px; background: #F84889; border-radius: 0 0 3px 3px; }
.ia-app :focus-visible { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ia-sw button i, .ia-sw1 i { transition: none; } }

/* ---------- Prototype screens gallery ---------- */
.ia-gallery { min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; background: #EAE2FA; border-radius: var(--radius); padding: 24px clamp(16px, 3vw, 32px) 16px; }
.ia-gtabs { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; border-bottom: 1px solid #D4C6EA; margin-bottom: 20px; scrollbar-width: thin; }
.ia-gtabs button { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: #5E4A6B; font: inherit; font-weight: 600; cursor: pointer; }
.ia-gtabs button:hover { color: #000; }
.ia-gtabs button[aria-selected="true"] { color: #000; border-bottom-color: #682F86; }
.ia-strip { --z: 1; display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 16px; max-width: 100%; }
.ia-strip[hidden] { display: none; }
@media (max-height: 940px) { .ia-strip { --z: .85; } }
@media (max-height: 820px) { .ia-strip { --z: .72; } }
@media (max-height: 720px) { .ia-strip { --z: .6; } }
.ia-shot { margin: 0; display: grid; gap: 14px; justify-items: center; }
.ia-shot figcaption { font-size: .92rem; color: #5E4A6B; }
.ia-shot .ia-phone { width: 340px; flex: none; zoom: var(--z); }
.ia-stage .ia-phone { zoom: var(--z, 1); }
.ia-stage { --z: 1; }
@media (max-height: 1000px) { .ia-stage { --z: .85; } }
@media (max-height: 900px) { .ia-stage { --z: .72; } }
@media (max-height: 800px) { .ia-stage { --z: .62; } }
@media (max-height: 700px) { .ia-stage { --z: .52; } }

/* ---------- Final-layout fidelity pass (from the uploaded board) ---------- */
.ia-wave.top { top: 0; bottom: auto; z-index: 0; }
.ia-hero > *:not(.ia-wave) { position: relative; z-index: 1; }
.ia-center { z-index: 1; }
.ia-add { background: none; border: 2px solid #F84889; color: #F84889; }
.ia-intro2 { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.ia-introtop { position: relative; flex: 0 0 52%; display: grid; place-items: end center; padding-bottom: 14px; }
.ia-introtop .ia-skip { color: #fff; z-index: 2; }
.ia-artimg { position: relative; width: 82%; height: auto; display: block; }
.ia-introbot { flex: 1; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 18px 26px 28px; background: linear-gradient(#8A4DAA, #70379A); color: #fff; text-align: center; }
.ia-introbot .ia-copy { font-size: 15px; }
.ia-form.under { gap: 4px; }
.ia-form.under .ia-field { gap: 0; }
.ia-form.under .ia-field label { font-size: 12px; color: #5E4A6B; }
.ia-form.under .ia-field input { border: 0; border-bottom: 1.5px solid #682F86; border-radius: 0; min-height: 38px; padding: 0 2px; }
.ia-form.under .ia-check { color: #000; }
.ia-gearbg { position: absolute; right: -34px; bottom: 28px; color: rgba(255, 255, 255, .1); pointer-events: none; z-index: 0; }
.ia-gearbg svg { stroke-width: .7; }
.ia-app.light.hd .ia-status { background: #682F86; color: #fff; }
.ia-app.light.hd .ia-scroll { padding: 0 0 18px; }
.ia-phead { position: relative; background: #682F86; color: #fff; padding: 0 12px 52px; margin-bottom: 40px; background-image: linear-gradient(#8A4DAA, #70379A); }
.ia-avatar { position: absolute; left: 50%; bottom: -36px; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%; border: 3px solid #AB47A5; background: #EAE2FA; color: #682F86; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.ia-avatar i { position: absolute; right: -4px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: #AB47A5; color: #fff; display: grid; place-items: center; }
.ia-form.sq { padding: 6px 22px 24px; gap: 8px; }
.ia-form.sq .ia-field label { color: #000; font-size: 13px; }
.ia-form.sq .ia-field input { border-radius: 3px; min-height: 40px; }
.ia-new { margin: 0; text-align: center; font-size: 15px; font-weight: 700; color: #F84889; }
.ia-wheel { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 6px 0 8px; }
.ia-wheel .col { display: grid; justify-items: center; }
.ia-wheel .col button, .ia-wheel .col b { min-width: 64px; min-height: 40px; border: 0; background: none; padding: 0; font-size: 28px; line-height: 40px; text-align: center; }
.ia-wheel .col b { font-size: 44px; line-height: 52px; font-weight: 700; }
.ia-wheel .o1 { opacity: .4; }
.ia-wheel .o2 { opacity: .18; }
.ia-wheel .ia-ampm { margin-left: 0; }
.ia-when { margin: 0 0 6px; font-size: 24px; font-weight: 700; text-align: center; }
.ia-days button { background: none; color: #fff; }
.ia-days button[aria-pressed="true"] { background: #F84889; color: #fff; border-radius: 50%; }
.ia-field.sm textarea { min-height: 84px; border-color: #fff; }
.ia-field.sm label { color: #fff; }
.ia-band { margin: 0 -18px 0; padding: 0 12px 12px; background: #682F86; color: #fff; display: grid; gap: 8px; }
.ia-app.mauve.hd .ia-band .ia-top { margin: 0; padding: 0; background: none; }
.ia-period { justify-self: center; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-size: 13px; letter-spacing: .08em; padding: 0 8px; min-height: 36px; }
.ia-sum2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ia-sum2 > div { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.ia-sum2 .ic { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: #2E9B4F; color: #fff; }
.ia-sum2 .ic.p { background: #F84889; }
.ia-sum2 small { font-size: 11px; color: #EAE2FA; }
.ia-sum2 b { font-size: 19px; }
.ia-app.mauve .ia-chart { background: #fff; border-radius: 8px; padding: 8px 6px 4px; margin: 12px 0 0; }
.ia-meter { height: 6px; border-radius: 3px; background: #D4C6EA; overflow: hidden; margin-bottom: 8px; }
.ia-meter i { display: block; height: 100%; background: #F84889; }
.ia-brk { display: grid; }
.ia-brk > div { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; min-height: 50px; border-bottom: 1px solid #D4C6EA; }
.ia-brk .ic { width: 32px; height: 32px; border-radius: 6px; background: #682F86; color: #fff; display: grid; place-items: center; }
.ia-brk b { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.ia-brk em { font-style: normal; font-size: 13px; color: #5E4A6B; }
.ia-linkh { margin: 12px 0 0; font-size: 24px; font-weight: 400; color: #682F86; }
.ia-cardviz { position: relative; margin: 6px auto 0; width: 100%; max-width: 270px; aspect-ratio: 1.6; border-radius: 12px; background: #682F86; color: #fff; padding: 16px; display: grid; align-content: space-between; box-shadow: 0 6px 14px rgba(75, 26, 102, .25); }
.ia-cardviz::after { content: ""; position: absolute; right: 16px; top: 16px; width: 34px; height: 24px; border-radius: 4px; background: #FFBC59; }
.ia-cardviz b { font-size: 18px; }
.ia-cardviz small { font-size: 12px; color: #EAE2FA; margin-top: -26px; }
.ia-cardviz span { font-size: 16px; letter-spacing: .1em; }
.ia-cardviz em { font-style: normal; font-size: 11px; letter-spacing: .1em; color: #EAE2FA; }
.ia-thanks { margin: 18px 0 8px; text-align: center; font-size: 20px; color: #682F86; }
.ia-okdot { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: #2E9B4F; color: #fff; }
.ia-dial2 { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 14px; }
.ia-dial2 button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #682F86; color: #fff; display: grid; place-items: center; padding: 0; flex: none; }
.ia-se { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.ia-se div { display: grid; justify-items: center; gap: 4px; font-size: 12px; letter-spacing: .06em; color: #5E4A6B; }
.ia-se b { padding: 8px 14px; border-radius: 6px; background: #AB47A5; color: #fff; font-size: 15px; letter-spacing: 0; }
.ia-app.mauve .ia-copy { color: #000; }
.ia-app.mauve.hd .ia-scroll { padding-top: 0; }
.ia-app.mauve .ia-band + * { margin-top: 18px; }
.ia-ok { top: 38%; }
.ia-introbot .ia-btn { background: #AB47A5; }
.ia-introbot .ia-btn:hover { background: #8C3688; }
.ia-app.light .ia-btn { background: #682F86; }
.ia-hero > .ia-skip { position: absolute; z-index: 2; }
.ia-task i { border-color: #fff; }
.ia-app.mauve .ia-task i { border-color: #682F86; }
.ia-task input:checked + i { border-color: #fff; }
.ia-app.mauve .ia-task input:checked + i { border-color: #682F86; }
.ia-scroll > .ia-field + .ia-field { margin-top: 12px; }

/* Buttons component (see Components): primary, pink for the finishing action, text link; hover, focus, disabled */
.ia-btn { min-height: 44px; padding: 0 28px; border-radius: 22px; font: 700 15px/1 Helvetica, Arial, sans-serif; letter-spacing: .04em; transition: background-color .15s; }
.ia-btn.pink { min-height: 48px; padding: 0 36px; font-size: 19px; }
@media (hover: hover) { .ia-btn:hover { background: #4B1A66; } .ia-app:not(.mauve):not(.bare) .ia-btn:hover, .ia-introbot .ia-btn:hover { background: #8C3688; } .ia-btn.pink:hover, .ia-app:not(.mauve):not(.bare) .ia-btn.pink:hover { background: #D93578; } .ia-btn.light:hover { background: #EAE2FA; } }
.ia-btn:focus-visible { border-radius: 22px; outline: 3px solid #FFBC59; outline-offset: 2px; }
.ia-app.mauve .ia-btn:focus-visible, .ia-app.bare .ia-btn:focus-visible, .ia-app.light .ia-btn:focus-visible { outline-color: #682F86; }
.ia-btn:disabled { opacity: .5; cursor: not-allowed; background: #682F86; }
.ia-app:not(.mauve):not(.bare) .ia-btn:disabled { background: #AB47A5; }
.ia-btn.pink:disabled, .ia-app:not(.mauve):not(.bare) .ia-btn.pink:disabled { background: #F84889; }
.ia-link { padding: 10px 0; font: 700 15px Helvetica, Arial, sans-serif; }
.ia-app:not(.mauve):not(.bare):not(.light) .ia-link { color: #fff; }
.ia-small .ia-link { font-size: inherit; padding: 0; }
@media (prefers-reduced-motion: reduce) { .ia-btn { transition: none; } }
.ia-app .ia-btn { color: #fff; }
.ia-app .ia-btn.light { color: #682F86; }
.ia-app .ia-tile { color: #fff; }

/* Add an event: one featured action, then grouped rows */
.ia-feature { display: grid; grid-template-columns: 48px 1fr 16px; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 0; border-radius: 12px; background: #682F86; text-align: left; margin-top: 4px; }
.ia-app .ia-feature { color: #fff; }
.ia-feature .ic { width: 48px; height: 48px; border-radius: 50%; background: #4B1A66; color: #FFBC59; display: grid; place-items: center; }
.ia-feature .ic svg { width: 26px; height: 26px; }
.ia-feature b, .ia-mrow b { display: block; font-size: 17px; font-weight: 700; }
.ia-feature small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: #EAE2FA; }
.ia-mlist { display: grid; gap: 8px; }
.ia-mrow { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px 10px 10px; border: 0; border-radius: 10px; background: #fff; text-align: left; color: #000; }
.ia-app .ia-mrow { color: #000; }
.ia-mrow .ic { width: 40px; height: 40px; border-radius: 8px; background: #682F86; color: #fff; display: grid; place-items: center; }
.ia-mrow b { font-size: 15px; }
.ia-mrow small { display: block; font-size: 13px; color: #5E4A6B; }
.ia-mrow > svg:last-child, .ia-feature > svg:last-child { color: #AB47A5; }
.ia-feature > svg:last-child { color: #EAE2FA; }
@media (hover: hover) { .ia-mrow:hover { background: #F7F2FD; } .ia-feature:hover { background: #4B1A66; } }

/* Home, Settings, Edit profile redesign */
.ia-wx2 { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; margin: 2px 0 14px; }
.ia-wx2 b { display: block; font-size: 16px; }
.ia-wx2 span { font-size: 13px; color: #EAE2FA; }
.ia-wx2 b + * { }
.ia-soon2 { display: grid; gap: 8px; }
.ia-soon2 h3, .ia-todo2 h3 { margin: 0; font-size: 16px; font-weight: 700; color: #FFBC59; }
.ia-now { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: #AB47A5; }
.ia-now .ic, .ia-it .ic { display: grid; place-items: center; border-radius: 50%; }
.ia-now .ic { width: 48px; height: 48px; background: #4B1A66; color: #FFBC59; }
.ia-now small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #FFE7BF; }
.ia-now b { display: block; font-size: 20px; line-height: 1.2; }
.ia-now p { margin: 2px 0 0; font-size: 13px; color: #fff; }
.ia-it { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.ia-it .ic { width: 40px; height: 40px; border-radius: 8px; background: rgba(255, 255, 255, .16); }
.ia-it b { display: block; font-size: 15px; }
.ia-it small { display: block; font-size: 13px; color: #EAE2FA; }
.ia-todo2 { margin-top: 16px; display: grid; gap: 2px; }
.ia-todo2 .ia-hrow { display: grid; grid-template-columns: auto 1fr 16px; gap: 10px; width: 100%; text-align: left; }
.ia-todo2 .ct { justify-self: end; font-size: 13px; color: #EAE2FA; }
.ia-gh { margin: 16px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #FFBC59; }
.ia-gh.dk { color: #682F86; margin-top: 8px; }
.ia-group { border-radius: 12px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ia-grow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); background: none; text-align: left; font-size: 15px; }
.ia-group > :first-child { border-top: 0; }
.ia-grow .r { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #EAE2FA; }
.ia-grow.ia-sw { margin: 0; }
.ia-grow small { display: block; font-size: 13px; color: #EAE2FA; }
@media (hover: hover) { button.ia-grow:hover { background: rgba(255, 255, 255, .08); } }
.ia-app .ia-out { display: block; width: 100%; min-height: 46px; margin: 20px 0 6px; border: 1.5px solid #FFBC59; border-radius: 23px; background: none; color: #FFBC59; font: 700 15px/1 Helvetica, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.ia-form.sq { gap: 4px; padding: 4px 18px 24px; }
.ia-form.sq .ia-field { gap: 4px; margin-bottom: 4px; }
.ia-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ia-form.sq .ia-btn { width: 100%; margin-top: 8px; }
.ia-form.sq .ia-field input { border-radius: 8px; border-color: #AB47A5; }
.ia-form.sq .ia-field input::placeholder { color: #8A7A96; }
.ia-gearbg { display: none; }
.ia-grow { min-height: 44px; padding: 4px 14px; }
.ia-grow.ia-sw { min-height: 52px; }
.ia-gh { margin: 12px 0 4px; }
.ia-app .ia-out { margin-top: 14px; }
.ia-app.light:not(.mauve):not(.bare) .ia-btn { background: #682F86; } @media (hover: hover) { .ia-app.light:not(.mauve):not(.bare) .ia-btn:hover { background: #4B1A66; } }
.ia-now { background: #4B1A66; }
.ia-it, .ia-group { background: rgba(255, 255, 255, .16); }
.ia-app:not(.mauve):not(.bare) .ia-btn { background: #5A2578; }
.ia-app:not(.mauve):not(.bare) .ia-btn.pink { background: #F84889; }
.ia-introbot .ia-btn { background: #5A2578; }
.ia-app .ia-add { background: #F84889; border-color: #F84889; color: #fff; }

/* Lighter purple bands and mauve ground on the light screens */
.ia-app.mauve { background: #F2ECFB; }
.ia-app.mauve.hd .ia-status, .ia-app.mauve.hd .ia-top, .ia-band, .ia-app.light.hd .ia-status { background: #8A4DAA; }
.ia-app.mauve.hd .ia-band .ia-top { background: none; }
.ia-phead { background: linear-gradient(#8A4DAA, #70379A); }
.ia-mrow, .ia-line, .ia-note-card { box-shadow: 0 0 0 1px #E2D8EE; }
.ia-app.mauve .ia-chart { box-shadow: 0 0 0 1px #E2D8EE; }

/* Mauve ground (brand #EAE2FA) on every app screen */
.ia-app.mauve, .ia-app.dark:not(.bare) { background: #EAE2FA; color: #000; }
.ia-app.dark:not(.bare) .ia-status { color: #000; }
.ia-app.dark:not(.bare) :focus-visible { outline-color: #682F86; }
.ia-app.dark:not(.bare) .ia-note { color: #5E4A6B; }
.ia-app.dark:not(.bare) .ia-err { color: #B3261E; }
.ia-app.dark:not(.bare) .ia-btn { background: #682F86; }
.ia-app.dark:not(.bare) .ia-btn.pink { background: #F84889; }
@media (hover: hover) { .ia-app.dark:not(.bare) .ia-btn:hover { background: #4B1A66; } .ia-app.dark:not(.bare) .ia-btn.pink:hover { background: #D93578; } }
.ia-app.dark:not(.bare) .ia-btn:disabled { background: #682F86; } .ia-app.dark:not(.bare) .ia-btn.pink:disabled { background: #F84889; }
/* home */
.ia-app.dark .ia-wx2 span, .ia-app.dark .ia-todo2 .ct, .ia-app.dark .ia-it small { color: #5E4A6B; }
.ia-app.dark .ia-soon2 h3, .ia-app.dark .ia-todo2 h3, .ia-app.dark .ia-gh { color: #682F86; }
.ia-app.dark .ia-now { color: #fff; }
.ia-app.dark .ia-it { background: #fff; box-shadow: 0 0 0 1px #E2D8EE; }
.ia-app.dark .ia-it .ic { background: #682F86; color: #fff; }
.ia-app.dark .ia-task i { border-color: #682F86; }
.ia-app.dark .ia-task input:checked + i { background: #682F86; color: #fff; border-color: #682F86; }
/* settings, alarm */
.ia-app.dark .ia-group { background: #fff; box-shadow: 0 0 0 1px #E2D8EE; }
.ia-app.dark .ia-grow { border-top-color: #E2D8EE; }
.ia-app.dark .ia-grow small, .ia-app.dark .ia-grow .r, .ia-app.dark .ia-alarm small { color: #5E4A6B; }
.ia-app.dark .ia-sw button, .ia-app.dark .ia-sw1 { background: #C9BBDD; }
.ia-app.dark .ia-sw button[aria-checked="true"], .ia-app.dark .ia-sw1[aria-checked="true"] { background: #F84889; }
.ia-app .ia-out { border-color: #682F86; color: #682F86; }
.ia-app.dark .ia-alarm { background: #fff; box-shadow: 0 0 0 1px #E2D8EE; }
.ia-app.dark .ia-days button { color: #682F86; }
.ia-app.dark .ia-days button[aria-pressed="true"] { color: #fff; }
.ia-app.dark .ia-field.sm label { color: #000; }
.ia-app.dark .ia-field.sm textarea { border-color: #682F86; }
.ia-app.dark .ia-ampm button { box-shadow: 0 0 0 1px #E2D8EE; }
.ia-app.dark .ia-pin i { background: #C9BBDD; }
.ia-app.dark .ia-pin i.on { background: #F84889; }
.ia-app.dark .ia-keys button { background: #fff; box-shadow: 0 0 0 1px #E2D8EE; color: #000; }
.ia-app.dark .ia-keys button svg { color: #682F86; }
.ia-app.dark .ia-how li::before { color: #fff; }
.ia-icon-tile { width: 88px; height: 104px; border-radius: 20px; padding: 12px; }
.ia-icon-tile img { object-fit: contain; }
.ia-center .ia-icon-tile { width: 96px; height: 112px; padding: 0; }

/* Get started screens */
.ia-tag { margin: -8px 0 0; max-width: 240px; text-align: center; font-size: 15px; line-height: 1.35; color: #F2ECFB; }
.ia-hero { gap: 18px; }
.ia-hero.short { height: 32%; gap: 8px; }
.ia-hero.short .ia-icon-tile { width: 60px; height: 72px; padding: 8px; border-radius: 14px; }
.ia-sheet .ia-btn.wide, .ia-form .ia-btn.wide { width: 100%; }
.ia-sheet { width: 100%; padding: 24px 22px 0; }
.ia-btn.ghost, .ia-app .ia-btn.ghost, .ia-app:not(.mauve):not(.bare) .ia-btn.ghost { background: #fff; color: #682F86; box-shadow: inset 0 0 0 2px #682F86; }
@media (hover: hover) { .ia-app .ia-btn.ghost:hover { background: #F2ECFB; } }
.ia-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ia-row2 .ia-link { padding: 0; min-height: 44px; font-size: 14px; }
.ia-form { gap: 8px; padding: 14px 22px 74px; }
.ia-form .ia-small { margin-top: 2px; }
.ia-done { height: 62%; }
.ia-okc { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: #2E9B4F; box-shadow: 0 6px 16px rgba(75, 26, 102, .3); }
.ia-okc svg { width: 44px; height: 44px; stroke-width: 2.4; }
.ia-done .ia-display { margin-top: 0; }

/* Get started: mauve instead of purple */
.ia-hero, .ia-introbot { background: #EAE2FA; color: #4B1A66; }
.ia-hero .ia-display, .ia-hero .ia-title2, .ia-introbot .ia-title2 { color: #4B1A66; }
.ia-tag, .ia-introbot .ia-copy { color: #5E4A6B; }
.ia-hero .ia-skip { color: #682F86; }
.ia-icon-tile { box-shadow: 0 0 0 1px #D4C6EA, 0 4px 10px rgba(75, 26, 102, .12); }
.ia-introbot .ia-dots i { background: #C9BBDD; }
.ia-introbot .ia-dots i.on { background: #682F86; }
.ia-introbot .ia-btn, .ia-app:not(.mauve):not(.bare) .ia-btn, .ia-introbot .ia-btn:hover { background: #682F86; }
@media (hover: hover) { .ia-introbot .ia-btn:hover { background: #4B1A66; } }
.ia-app.bare:has(.ia-hero) .ia-status { color: #000; }
.ia-app.bare:has(.ia-done) .ia-status { color: #fff; }
.ia-app.bare :focus-visible { outline-color: #682F86; }

/* Bottom navigation */
.ia-tabs { grid-template-columns: repeat(5, 1fr); background: #fff; box-shadow: 0 -1px 0 #E2D8EE; padding: 0 4px 6px; z-index: 3; }
.ia-tabs button { min-height: 52px; padding: 6px 0 2px; gap: 2px; font-size: 11px; font-weight: 700; color: #5E4A6B; letter-spacing: .02em; }
.ia-tabs button[aria-current="page"] { color: #682F86; }
.ia-tabs button[aria-current="page"]::before { top: 0; background: #F84889; }
.ia-tabs button.add { color: #682F86; }
.ia-tabs button.add i { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -14px; border-radius: 50%; background: #F84889; color: #fff; box-shadow: 0 3px 8px rgba(248, 72, 137, .4); }
.ia-tabs button.add[aria-current="page"]::before { display: none; }
.ia-tabs button.add span { margin-top: -2px; }
.ia-app .ia-tabs button { color: #5E4A6B; } .ia-app .ia-tabs button[aria-current="page"], .ia-app .ia-tabs button.add { color: #682F86; }
.ia-feature.slim { min-height: 64px; padding: 10px 14px; margin: 0 0 14px; grid-template-columns: 40px 1fr 16px; }
.ia-feature.slim .ic { width: 40px; height: 40px; }
.ia-feature.slim .ic svg { width: 22px; height: 22px; }
.ia-feature.slim b { font-size: 16px; }

/* Get started: inline errors, show/hide password, intro steps */
.ia-inp { position: relative; display: block; }
.ia-field input[type="password"], .ia-inp:has(.ia-eye) input { padding-right: 64px; }
.ia-app .ia-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 48px; min-height: 40px; padding: 0 10px; border: 0; background: none; color: #682F86; font-weight: 700; font-size: 13px; }
.ia-form.under .ia-eye { right: 0; }
.ia-field.bad input { border-color: #B3261E; }
.ia-form.under .ia-field.bad input { border-bottom-color: #B3261E; }
.ia-ferr { margin: 2px 0 0; font-size: 12px; font-weight: 700; line-height: 1.3; color: #B3261E; }
.ia-hint { font-size: 12px; color: #5E4A6B; }
.ia-form .ia-ferr:focus { outline: none; }
.ia-app.bare:has(.ia-form) .ia-scroll { overflow-y: auto; }
.ia-stepn { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #682F86; }
.ia-ibtns { display: flex; gap: 10px; width: 100%; }
.ia-ibtns .ia-btn { flex: 1; padding: 0 12px; }
.ia-sheet .ia-link { justify-self: center; }
.ia-sheet { gap: 10px; }
.ia-center .ia-icon-tile { box-shadow: none; }

/* Shape, spacing and touch specimens */
.idb-shape { display: grid; }
.idb-sr { display: grid; gap: 10px 24px; padding: 16px 0; border-top: 1px solid var(--line, #D4C6EA); align-items: center; }
@media (min-width: 760px) { .idb-sr { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.1fr); } }
.idb-sr h5 { margin: 0; font-size: 1rem; }
.idb-sr p { margin: 0; color: var(--muted, #5E4A6B); line-height: 1.5; font-size: .95rem; }
.idb-sr .vis { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 10px; background: #EAE2FA; }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; border-radius: 22px; background: #682F86; color: #fff; font: 700 15px/1 Helvetica, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.sb-fld { width: 120px; height: 48px; border: 1.5px solid #682F86; border-radius: 24px; background: #fff; }
.sb-tile { width: 64px; height: 64px; border-radius: 8px; background: #682F86; }
.sb-row { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; height: 44px; padding: 0 14px 0 8px; border-radius: 10px; background: #fff; color: #000; font: 15px Helvetica, Arial, sans-serif; }
.sb-row i { width: 28px; height: 28px; border-radius: 6px; background: #682F86; }
.idb-sr .vis svg { display: block; max-width: 100%; height: 44px; }
.idb-sr .vis.sp { align-items: flex-end; gap: 14px; }
.sb-sp, .vis.sp span { display: grid; justify-items: start; gap: 4px; height: 44px; align-content: end; }
.vis.sp span { background: linear-gradient(#682F86, #682F86) bottom / 100% 12px no-repeat; height: auto; min-height: 36px; padding-bottom: 12px; position: relative; }
.vis.sp b { position: absolute; left: 0; top: 0; font: 700 12px Helvetica, Arial, sans-serif; color: #4B1A66; }
.sb-touch { display: grid; place-items: center; width: 44px; height: 44px; border: 2px dashed #682F86; border-radius: 8px; background: #fff; }
.sb-touch i { width: 22px; height: 22px; border-radius: 50%; background: #682F86; }
.sb-focus { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 22px; font: 700 15px/1 Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.sb-focus.dk { background: #682F86; color: #fff; outline: 3px solid #FFBC59; outline-offset: 2px; }
.sb-focus.lt { background: #fff; color: #682F86; outline: 3px solid #682F86; outline-offset: 2px; }
.sb-mo { padding: 10px 18px; border-radius: 22px; background: #682F86; color: #fff; font: 700 14px Helvetica, Arial, sans-serif; }

/* Working shades: compact grid to save space */
.hb.idb .hb-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border: 0; border-radius: 0; background: none; overflow: visible; gap: 0 28px; }
.hb.idb .hb-work > div { grid-template-columns: 36px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #E2D8EE); }
.hb.idb .hb-work > div + div { border-top: 1px solid var(--line, #E2D8EE); }
.hb.idb .hb-work .chip { width: 36px; height: 36px; border-radius: 8px; }
.hb.idb .hb-work > div > div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; }
.hb.idb .hb-work b { display: contents; font-size: .98rem; }
.hb.idb .hb-work .tag { grid-column: 1 / -1; grid-row: 2; display: block; margin: 0; padding: 0; background: none; color: var(--muted, #5E4A6B); font-size: .85rem; font-weight: 400; }
.hb.idb .hb-work code { grid-column: 2; grid-row: 1; }
@media (max-width: 560px) { .hb.idb .hb-work > div { grid-template-columns: 36px 1fr; } .hb.idb .hb-work .chip { width: 36px; height: 36px; } }

/* Smooth transitions: screens slide, tabs cross-fade, controls respond. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ia-fwd { from { transform: translateX(26px); opacity: 0.4; } to { transform: none; opacity: 1; } }
  @keyframes ia-back { from { transform: translateX(-26px); opacity: 0.4; } to { transform: none; opacity: 1; } }
  @keyframes ia-tab { from { opacity: 0.35; } to { opacity: 1; } }
  .ia-app[data-enter="fwd"] .ia-scroll { animation: ia-fwd 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .ia-app[data-enter="back"] .ia-scroll { animation: ia-back 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .ia-app[data-enter="tab"] .ia-scroll { animation: ia-tab 0.18s ease-out both; }
  .ia-btn, .ia-mrow, .ia-feature, .ia-grow, .ia-tabs button, .ia-days button, .ia-ampm button, .ia-keys button { transition: background-color 0.15s, color 0.15s, transform 0.1s; }
  .ia-btn:active, .ia-keys button:active, .ia-mrow:active, .ia-feature:active { transform: scale(0.985); }
  .ia-tabs button svg { transition: transform 0.15s; }
  .ia-tabs button[aria-current="page"] svg { transform: translateY(-1px); }
}

/* Focus rewards: level, achievements, analytics, session result */
.ia-lvl { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: #682F86; color: #fff; }
.ia-lvl .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #4B1A66; color: #FFBC59; }
.ia-lvl .ic svg { width: 26px; height: 26px; fill: #FFBC59; }
.ia-lvl b { display: block; font-size: 20px; }
.ia-lvl small { display: block; margin: 2px 0 8px; font-size: 13px; color: #EAE2FA; }
.ia-meter.on { background: rgba(255, 255, 255, .25); }
.ia-meter.on i { background: #FFBC59; }
.ia-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0 12px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E2D8EE; }
.ia-app .ia-seg2 button { min-height: 40px; border: 0; border-radius: 9px; background: none; color: #5E4A6B; font-weight: 700; font-size: 14px; }
.ia-app .ia-seg2 button[aria-pressed="true"] { background: #682F86; color: #fff; }
.ia-ach { display: grid; gap: 8px; }
.ia-bd { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E2D8EE; }
.ia-bd .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #EAE2FA; color: #5E4A6B; }
.ia-bd.on .ic { background: #682F86; color: #FFBC59; }
.ia-bd b { display: block; font-size: 15px; }
.ia-bd small { display: block; font-size: 12px; color: #5E4A6B; }
.ia-bd .ia-meter { margin: 6px 0 2px; }
.ia-bd em { font-style: normal; font-size: 12px; font-weight: 700; color: #1F7A3A; }
.ia-wk { display: grid; margin: 0 0 4px; }
.ia-wk b { font-size: 28px; line-height: 1.1; }
.ia-wk span { font-size: 13px; color: #5E4A6B; }
.ia-won { display: grid; justify-items: center; gap: 4px; margin: 18px 0 12px; text-align: center; }
.ia-won b { font-size: 26px; }
.ia-won p { margin: 0; }
.ia-won .ia-plus { margin-top: 4px; font-size: 22px; font-weight: 700; color: #682F86; }
.ia-newb { display: grid; gap: 6px; justify-items: center; margin: 4px 0 12px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E2D8EE; }
.ia-newb small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5E4A6B; }
.ia-newb b { display: inline-flex; align-items: center; gap: 8px; color: #682F86; }
.ia-newb b svg { color: #FFBC59; fill: none; }
.ia-won ~ .ia-btn, .ia-won ~ .ia-link { display: flex; margin-left: auto; margin-right: auto; }
.ia-app.mauve .ia-active, .ia-app.mauve .ia-won { color: #000; }
@media (prefers-reduced-motion: no-preference) { @keyframes ia-pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: none; opacity: 1; } } .ia-won .ia-star { animation: ia-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; } .ia-meter i { transition: width 0.4s ease-out; } }

/* Editorial theme (2026-11-19): case-study chrome follows the portfolio theme. The prototype and brand specimens keep the project's own colours. */
.idp-dd > li, .idp-dd > li:nth-child(n) { border-top: 3px solid var(--rule); }
.idp-dd > li:first-child { border-top-color: var(--accent); }
.idp-dd .out b, .idp-steps li::before { color: var(--accent); }
