/* Increflex Play. Brand tokens follow increflex.com (increflex-child theme). Single light look: it lives inside the light site. */
.ip {
  --ink: #17141f; --muted: #56525f; --line: #e5e4ec; --pale: #f6f4fa; --paper: #fff;
  --accent: #6542b5; --accent-ink: #fff; --accent-soft: #efe9fb; --lav: #bca0fa; --navy: #1f1830;
  --ok: #1f7a4a; --ok-soft: #e7f5ec; --warn: #9a6400; --warn-soft: #fbf1dc; --bad: #b03434;
  --r: 8px; --r-sm: 6px;
  --shadow: 0 1px 2px rgba(31, 24, 48, .06), 0 6px 20px rgba(31, 24, 48, .06);
  position: relative; max-width: 1180px; margin: 0 auto; color: var(--ink);
  font: 15px/1.5 "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light; -webkit-tap-highlight-color: transparent;
}
.ip *, .ip *::before, .ip *::after { box-sizing: border-box; }
.ip [hidden] { display: none !important; }
:where(.ip) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.ip button:disabled { cursor: default; opacity: .45; }
:where(.ip) :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ip h2, .ip h3 { font-family: "Schibsted Grotesk", "Hanken Grotesk", ui-sans-serif, sans-serif; text-wrap: balance; margin: 0; }
.ip-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ip-num { font-variant-numeric: tabular-nums; }

/* bar */
.ip-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 14px; margin-bottom: 12px; overflow: hidden; }
.ip-hint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 600; min-width: 0; }
.ip-step { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.ip-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; animation: ip-blink 1s infinite; }
.ip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.ip-clip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; }
.ip-clip small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ip-clip.has { border-style: solid; border-color: var(--lav); background: var(--accent-soft); color: var(--ink); }
.ip-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pale); }
.ip-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.ip-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ip-muted { color: var(--muted); }
.ip-skip { font-size: 15px; font-weight: 700; color: var(--ink); }
.ip-pgap { display: block; height: 10px; }

/* tabs (narrow only) */
.ip-tabs { display: none; gap: 6px; margin-bottom: 10px; }
.ip--tabs .ip-tabs { display: flex; }
.ip-tabs button { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-weight: 600; color: var(--muted); }
.ip-tabs button.is-current { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ip-tabs button.is-due::after { content: ""; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ip-blink 1s infinite; }

/* desk + windows */
.ip-desk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: var(--pale); border-radius: calc(var(--r) + 4px); padding: 12px; }
.ip--tabs .ip-desk { grid-template-columns: 1fr; padding: 8px; }
.ip-win { display: flex; flex-direction: column; min-width: 0; height: 640px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ip--tabs .ip-win { display: none; height: 560px; }
.ip--tabs .ip-win.is-current { display: flex; }
.ip-win { transition: opacity .35s ease, filter .35s ease, border-color .2s, box-shadow .2s; }
.ip-win > header { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.ip-win-title { display: flex; align-items: center; gap: 8px; }
.ip-task:empty { display: none; }
.ip-task { font-size: 15px; line-height: 1.35; font-weight: 600; color: #fff; text-wrap: balance; }
.ip-task::before { content: "→ "; color: var(--lav); }
.ip-win.is-task { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(101, 66, 181, .2), var(--shadow); }
.ip-win.is-task > header { background: var(--accent); color: #e4d9fb; border-bottom-color: var(--accent); }
.ip-win.is-task.is-change > header { animation: ip-taskin .6s ease; }
/* same pulse as the walkthrough box: a few beats when a new task appears, steady while the visitor is stuck */
.ip-win.is-task.is-change { animation: ip-boxpulse 1.5s ease-out 3; }
.ip-win.is-task.is-stuck { animation: ip-boxpulse 1.5s ease-out infinite; }
.ip.is-spot .ip-win.is-dim { opacity: .32; filter: saturate(.2); }
.ip-win.is-flash { animation: ip-winflash .7s ease; }
.ip-body { scrollbar-width: thin; scrollbar-color: #d6d1e4 transparent; }
.ip-body { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ip-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* buttons */
.ip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px;
  background: var(--accent) !important; color: var(--accent-ink) !important; border: 1px solid var(--accent) !important;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none; transition: background .15s; }
.ip-btn:hover:not(:disabled) { background: #52349a !important; }
.ip-btn-sm { min-height: 30px; padding: 4px 12px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.ip-btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; }
.ip-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* "do this next" */
.ip .is-next { animation: ip-pulse 1.4s ease-out infinite; }
.ip-slot.is-next, .ip-select.is-next { border-color: var(--accent); border-style: solid; }

/* mail */
.ip-inbox, .ip-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ip-mailrow { display: flex; flex-direction: column; width: 100%; gap: 1px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); font-size: 13px; }
.ip-mailrow-top { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.ip-mailrow-top time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ip-mailrow-sub { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-mailrow-snip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-mailrow.is-unread { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.ip-mailrow.is-unread .ip-mailrow-sub { font-weight: 600; }
button.ip-mailrow:hover { border-color: var(--lav); }
.ip-mailrow.is-new { animation: ip-arrive .6s cubic-bezier(.2, .8, .2, 1); }
.ip-msg h3 { font-size: 16px; line-height: 1.3; margin-bottom: 8px; }
.ip-msg-from { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.35; margin-bottom: 12px; }
.ip-msg-from small { color: var(--muted); }
.ip-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.ip-msg-body { font-size: 14.5px; line-height: 1.6; }
.ip-fact { display: inline; padding: 0 1px; margin: 0 -1px; border-radius: 3px; border-bottom: 1.5px dotted var(--lav) !important; font-weight: 600; line-height: inherit; transition: background .15s; }
.ip-fact:hover { background: var(--accent-soft) !important; }
.ip-fact.is-source { background: var(--accent-soft) !important; border-bottom-color: var(--accent) !important; }
.ip-fact.is-next { background: var(--accent-soft) !important; border-bottom: 2px solid var(--accent) !important; }
.ip-fact.is-marked { background: var(--lav) !important; color: var(--navy); border-bottom-color: var(--accent) !important; }
.ip-fact.is-pop { animation: ip-pop .45s cubic-bezier(.2, .8, .2, 1.4); }
.ip-tag { display: inline-block; margin-left: 5px; vertical-align: 1px; padding: 0 5px; border-radius: 3px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 15px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
@keyframes ip-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.ip-fact.is-copied { background: var(--lav) !important; color: var(--navy); }
.ip-fact.is-reading { background: var(--lav) !important; transition: background .2s; }
.ip-compose { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: #fcfbfe; }
.ip-compose-to { font-size: 13px; color: var(--muted); }
.ip-compose-body { font-size: 14px; line-height: 1.6; }
.ip-sent { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-size: 13px; }
.ip-sent .ip-ico { width: 18px; height: 18px; margin-top: 1px; }
.ip-sent-body { color: var(--ink); margin-top: 6px; font-size: 13.5px; line-height: 1.6; }

/* slots + pickers */
.ip-slot { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 10px; vertical-align: middle; max-width: 100%;
  border: 1.5px dashed #cbc6da !important; border-radius: var(--r-sm); background: var(--paper) !important; text-align: left; }
.ip-ph { color: #8b8698; font-size: 13px; }
.ip-slot.is-filled { border-style: solid !important; border-color: var(--line) !important; background: var(--pale) !important; font-weight: 600; }
.ip-slot.is-flash { animation: ip-fill .8s ease; }
.ip-slot.is-shake { animation: ip-shake .35s ease; border-color: var(--bad) !important; }
.ip-compose-body .ip-slot, .ip-chat-input .ip-slot { min-height: 28px; padding: 1px 8px; }
.ip-picker { position: relative; }
.ip-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px;
  border: 1.5px solid var(--line) !important; border-radius: var(--r-sm); background: var(--paper) !important; font-weight: 600; }
.ip-select.is-flash { animation: ip-fill .8s ease; }
.ip-caret { color: var(--muted); font-size: 12px; }
.ip-menu { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); display: flex; flex-direction: column; padding: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.ip-menu button { padding: 8px 10px; border-radius: 4px; }
.ip-menu button:hover { background: var(--accent-soft) !important; }

/* crm */
.ip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.ip-row > span { display: flex; flex-direction: column; min-width: 0; }
.ip-row small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-row.is-mine { border-color: var(--lav); background: var(--accent-soft); }
.ip-row.is-new { animation: ip-arrive .6s cubic-bezier(.2, .8, .2, 1); }
.ip-badge { flex: none; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--pale); color: var(--muted); }
.ip-badge.is-scheduled { background: var(--warn-soft); color: var(--warn); }
.ip-badge.is-done { background: var(--ok-soft); color: var(--ok); }
.ip-form { display: flex; flex-direction: column; gap: 10px; }
.ip-field { display: flex; flex-direction: column; gap: 4px; }
.ip-field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ip-field .ip-slot { width: 100%; }

/* chat */
.ip-chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.25; }
.ip-chat-head > span:last-child { display: flex; flex-direction: column; }
.ip-chat-head small { color: var(--muted); }
.ip-thread { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ip-bubble { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.ip-bubble time { display: block; margin-top: 2px; font-size: 11px; opacity: .65; }
.ip-bubble.is-them { align-self: flex-start; background: var(--pale); border-bottom-left-radius: 4px; }
.ip-bubble.is-me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.ip-bubble.is-new { animation: ip-arrive .45s cubic-bezier(.2, .8, .2, 1); }
.ip-chat-compose { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.ip-chat-input { font-size: 14px; line-height: 2; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.ip-chat-compose .ip-btn { align-self: flex-end; }

/* automation: the desk is a show, not a toy */
.ip.is-auto .ip-desk { pointer-events: none; }

/* overlay cards */
.ip-overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px;
  background: rgba(246, 244, 250, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: var(--r); }
.ip-card { width: min(560px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); box-shadow: 0 20px 60px rgba(31, 24, 48, .18);
  animation: ip-arrive .4s cubic-bezier(.2, .8, .2, 1); }
.ip-card h2 { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.15; }
.ip-card p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.ip-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; }
.ip-how { color: var(--ink) !important; font-weight: 600; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--r-sm); }
.ip-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.ip-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ip-compare > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.ip-compare > div.is-auto { background: var(--navy); border-color: var(--navy); color: #fff; }
.ip-compare small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ip-compare .is-auto small, .ip-compare .is-auto span { color: var(--lav); }
.ip-compare span { font-size: 13px; color: var(--muted); }
.ip-big { font-family: "Schibsted Grotesk", "Hanken Grotesk", sans-serif; font-size: 38px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ip-range-wrap { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ip-range-val { font-variant-numeric: tabular-nums; color: var(--accent); }
.ip-range { width: 100%; accent-color: var(--accent); }
.ip-hours { color: var(--ink) !important; font-weight: 600; }
.ip-note { font-size: 13px; }

/* toast + flight */
.ip-toast { position: absolute; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 9px 16px; border-radius: var(--r-sm); background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); text-align: center; }
.ip-toast.is-in { animation: ip-toast .25s ease; }
.ip-fly-layer { position: absolute; inset: 0; pointer-events: none; z-index: 15; }
.ip-fly { position: absolute; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(101, 66, 181, .35); transition: transform .62s cubic-bezier(.5, 0, .2, 1); }

.ip-ripple { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--accent); background: rgba(188, 160, 250, .35); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); opacity: 0; animation: ip-ripple .75s cubic-bezier(.2, .6, .3, 1) both; }
.ip .is-pressed { transform: scale(.96); transition: transform .12s ease; }
@keyframes ip-ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(5); } }
/* pointer bubble (learning steps, or when stuck) */
.ip-tip { position: absolute; z-index: 18; max-width: 250px; padding: 8px 12px; border-radius: 8px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.35; pointer-events: none; box-shadow: 0 8px 24px rgba(31, 24, 48, .28); animation: ip-tipin .25s ease; }
.ip-tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 11px; height: 11px; margin-left: -5.5px;
  background: var(--navy); transform: rotate(45deg); border-radius: 2px; }
.ip-tip.is-below::after { bottom: auto; top: -5px; }
.ip-tip.is-idle { animation: ip-bob 1.1s ease-in-out infinite; }
.ip-hand { position: absolute; z-index: 19; width: 30px; height: 30px; pointer-events: none; fill: #fff; stroke: var(--navy); stroke-width: 1.6;
  stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 2px 4px rgba(31, 24, 48, .35)); animation: ip-tap 1.3s ease-in-out infinite; }

/* chapter card in the bar during the walkthrough */
.ip-bar.is-chapter { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(101, 66, 181, .14); padding: 16px 18px 18px; align-items: center; }
.ip-bar.is-chapter.is-reading { animation: ip-boxpulse 1.5s ease-out infinite; }
@keyframes ip-boxpulse { 0% { box-shadow: 0 0 0 0 rgba(101, 66, 181, .45); } 70% { box-shadow: 0 0 0 12px rgba(101, 66, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(101, 66, 181, 0); } }
.ip-chap { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 420px; animation: ip-arrive .4s ease; }
.ip-chap-n { flex: none; min-width: 52px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px;
  font-weight: 600; text-align: center; letter-spacing: .02em; white-space: nowrap; }
.ip-chap-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ip-chap-text b { font-family: "Schibsted Grotesk", "Hanken Grotesk", sans-serif; font-size: 19px; line-height: 1.25; text-wrap: balance; }
.ip-chap-text p { margin: 0; color: var(--muted); font-weight: 500; font-size: 15px; line-height: 1.5; max-width: 70ch; }
.ip-next { position: relative; overflow: hidden; min-width: 104px; }
.ip-next i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lav); transform-origin: left; animation: ip-countdown linear forwards; }
.ip-watch { font-family: "Schibsted Grotesk", "Hanken Grotesk", sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); }

@keyframes ip-taskin { 0% { background: var(--lav); } 100% { background: var(--accent); } }
@keyframes ip-tipin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ip-bob { 50% { transform: translateY(-4px); } }
@keyframes ip-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-2px, -6px) scale(1.05); } 60% { transform: translate(0, 0) scale(.92); } }
@keyframes ip-countdown { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ip-pulse { 0% { box-shadow: 0 0 0 0 rgba(101, 66, 181, .45); } 70% { box-shadow: 0 0 0 8px rgba(101, 66, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(101, 66, 181, 0); } }
@keyframes ip-blink { 50% { opacity: .3; } }
@keyframes ip-arrive { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ip-fill { 0% { background: var(--lav); } 100% { background: var(--pale); } }
@keyframes ip-winflash { 0% { box-shadow: 0 0 0 3px var(--lav), var(--shadow); } 100% { box-shadow: var(--shadow); } }
@keyframes ip-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes ip-toast { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .ip *, .ip *::before, .ip *::after { animation: none !important; transition: none !important; } }

@media (max-width: 520px) {
  .ip-card { padding: 20px; }
  .ip-big { font-size: 30px; }
  .ip-meta { font-size: 13px; gap: 4px 12px; }
  .ip-clip { max-width: 180px; }
}
