/* Idrok chat film on the home page: a replica of the Idrok chat in TensorOS.
   Computers get the web app; phones get the phone app inside an iPhone running Safari.
   The replica follows the site theme: light app in light mode, dark app in dark mode. */
.ik-feature { gap: 0; }
.ik-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.ik-head .card-body { max-width: 640px; }
.ik-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.ik-tabs button { position: relative; overflow: hidden; padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 13.5px/1.2 var(--sans); cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.ik-tabs button:hover { color: var(--text); }
.ik-tabs button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.ik-tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; }
.ik-tabs button[aria-pressed="true"]::after { opacity: .9; }
.ik-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ik-window { margin: 22px calc(var(--pad) * -1) calc(var(--pad) * -1); padding: clamp(6px, .8vw, 10px); border-top: 1px solid var(--line); border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px); background: var(--panel-2); }
.ik-window noscript img { display: block; width: 100%; border-radius: 10px; }
.ik-frame { position: relative; container-type: inline-size; }
[data-idrok-film]:not(.is-live) .ik-frame { display: none; }

/* ---- Theme ---------------------------------------------------------------------------- */
.ik-app {
  --bg: #ecece8; --surface: #fff; --side: #fbfbf9; --line: #ededea; --line2: #e3e3de;
  --text: #141412; --muted: #6c6c66; --faint: #8a8a84; --ph: #9a9a94;
  --soft: #f0f0ec; --soft2: #fafaf8; --rail-on: #d9d9d5; --rail-ic: #2e2e2b;
  --pri: #141412; --pri-fg: #fff; --ok: #566f40; --ok-soft: #e6eedd; --ok-text: #4d6a38; --done: #3f5a2c;
  --warn-soft: #fbf1dc; --warn-text: #8a5a10; --track: #d8d8d2;
  --sheet-head: #f6f6f3; --sheet-new: #eef5e6; --sheet-new-n: #e1ecd4;
  --tg-bg: #e9eef3; --tg-in: #fff; --tg-out: #f3f9ff; --tg-out-line: #9cc3e6; --tg-sent: #e1f6cf; --tg-sent-line: #d4ecbf; --tg-tick: #4fa3e0;
  --quote: #f7f8f4; --quote-line: #c9d6bb; --shadow: rgba(20, 20, 18, .06); --menu-shadow: rgba(20, 20, 18, .16);
}
html[data-theme="dark"] .ik-app {
  --bg: #0e0e0e; --surface: #161616; --side: #131313; --line: #242424; --line2: #2e2e2e;
  --text: #ededed; --muted: #a3a3a3; --faint: #8a8a8a; --ph: #7c7c7c;
  --soft: #232323; --soft2: #1b1b1b; --rail-on: #2a2a2a; --rail-ic: #cfcfcf;
  --pri: #f2f2f2; --pri-fg: #111; --ok: #7f9a5c; --ok-soft: #24301b; --ok-text: #b4c896; --done: #a9c08a;
  --warn-soft: #362a14; --warn-text: #e9c27c; --track: #3a3a3a;
  --sheet-head: #1e1e1e; --sheet-new: #1e2a17; --sheet-new-n: #26351c;
  --tg-bg: #10161d; --tg-in: #232a32; --tg-out: #15222f; --tg-out-line: #3c6a92; --tg-sent: #2b4a2a; --tg-sent-line: #2b4a2a; --tg-tick: #8cc8f2;
  --quote: #1c1e19; --quote-line: #4a5a3a; --shadow: rgba(0, 0, 0, .35); --menu-shadow: rgba(0, 0, 0, .55);
}

/* ---- App shell (computers) --------------------------------------------------------------- */
.ik-app { position: relative; display: flex; height: clamp(540px, 50vw, 660px); overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--r-lg) - 6px); background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-align: left; user-select: none; -webkit-user-select: none; isolation: isolate; contain: paint; }
.ik-app * { box-sizing: border-box; }
.ik-app img { display: block; flex: none; border: 0; border-radius: 0; background: none; }
.ik-app svg { display: block; width: 100%; height: 100%; }
.ik-app p, .ik-app b, .ik-app small, .ik-app blockquote, .ik-app ul { margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.ik-app i, .ik-app em { font-style: normal; }
.ik-instant *, .ik-instant *::before, .ik-instant *::after { animation: none !important; transition: none !important; }
.ik-hold *, .ik-hold *::before, .ik-hold *::after { animation-play-state: paused !important; }
html[data-theme="dark"] .ik-cube { filter: invert(1); }
.ik-ph-only, .ik-app .bx-status, .ik-app .sf-bar, .ik-app .bx-homebar { display: none; }

.ik-rail { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 52px; padding: 12px 0 12px; }
.ik-rail > i { position: relative; display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; color: var(--rail-ic); }
.ik-rail > i > svg { width: 17px; height: 17px; stroke-width: 1.5; }
.ik-rail > i.is-cur { background: var(--rail-on); color: var(--text); }
.ik-rail > i:first-child { margin-bottom: 4px; }
.ik-rail > i.is-home { width: 32px; height: 32px; margin-block: 2px 4px; border: 1px solid var(--line2); background: var(--surface); }
.ik-rail > i.ik-gap { flex: 1; }
.ik-rail > i.ik-gift { height: 34px; margin-top: 4px; background: var(--ok-soft); color: var(--ok-text); }
.ik-rail u { position: absolute; right: 2px; top: -2px; display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px; background: #566f40; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; text-decoration: none; }
.ik-rail > .ik-me { width: 28px; height: 28px; margin-top: 6px; border-radius: 50%; background: linear-gradient(135deg, #7ea35a 0%, #3f8a7c 55%, #2f6fb0 100%); box-shadow: 0 0 0 2px var(--bg); }

.ik-surface { position: relative; flex: 1; min-width: 0; display: flex; margin: 6px 6px 6px 0; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ik-side { flex: none; display: flex; flex-direction: column; width: 262px; padding: 18px 12px 0; border-right: 1px solid var(--line); background: var(--side); }
.ik-side-h { display: flex; align-items: center; gap: 16px; padding: 0 8px 14px 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ik-side-h b { flex: 1; }
.ik-side-h span { width: 18px; height: 18px; color: var(--muted); }
.ik-new { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; }
.ik-new svg { width: 17px; height: 17px; }
.ik-hist { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.ik-set { display: flex; align-items: center; gap: 11px; height: 54px; margin: 0 -12px; padding: 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.ik-set svg { width: 17px; height: 17px; }
.ik-side ul { list-style: none; }
.ik-side li { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 9px; color: var(--text); font-size: 14.5px; transition: background-color .3s ease; }
.ik-side li b { flex: 1; min-width: 0; overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

.ik-side li.is-cur { background: var(--soft); }



.ik-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ik-top { flex: none; display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 26px; }
.ik-top img { width: 30px; height: auto; }
.ik-top b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.ik-top small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.ik-view { position: relative; flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px); mask-image: linear-gradient(to bottom, transparent 0, #000 36px); transition: opacity .3s ease; }
.is-swap .ik-view, .is-swap .ik-typed { opacity: 0; }
.ik-hello { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 20px; text-align: center; transition: opacity .35s ease, transform .45s ease; }
.ik-hello small { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ik-hello.is-gone { opacity: 0; transform: translateY(-14px); }
.ik-thread { position: absolute; left: 0; right: 0; bottom: 0; will-change: transform; }
.ik-col { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; padding: 20px 26px 18px; }

/* Messages */
@keyframes ik-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ik-msg, .ik-step, .ik-card, .ik-done, .ik-p, .ik-quote, .ik-sheet > .is-new { animation: ik-in .38s cubic-bezier(.2, .8, .3, 1) both; }
.ik-user { align-self: flex-end; max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--soft); }
.ik-bot { display: flex; flex-direction: column; gap: 8px; }
.ik-who { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.ik-who img { width: 16px; height: auto; }
.ik-who em { display: none; }
.ik-body { display: flex; flex-direction: column; gap: 8px; padding-left: 23px; }
.ik-think { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; }
.ik-think svg { flex: none; width: 14px; height: 14px; }
.ik-think span, .ik-who em { background: linear-gradient(90deg, var(--faint) 0%, var(--faint) 35%, var(--text) 50%, var(--faint) 65%, var(--faint) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ik-shine 1.6s linear infinite; }
.ik-think.is-done span { background: none; color: var(--faint); animation: none; }
@keyframes ik-shine { from { background-position: 110% 0; } to { background-position: -110% 0; } }
.ik-step { display: flex; align-items: center; gap: 9px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft2); font-size: 13px; }
.ik-sico { display: grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--muted); }
.ik-sico img, .ik-sico svg { width: 16px; height: 16px; }
.ik-stx { flex: 1; min-width: 0; }
.ik-stx i, .ik-done i { color: var(--faint); }
.ik-step em { flex: none; padding: 2px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-text); font-size: 11.5px; font-weight: 600; opacity: 0; transition: opacity .3s ease; }
.ik-step.is-done em { opacity: 1; }
.ik-st { position: relative; flex: none; width: 16px; height: 16px; border: 1.8px solid var(--track); border-top-color: var(--ok); border-radius: 50%; color: #fff; animation: ik-spin .8s linear infinite; }
.ik-st svg { opacity: 0; stroke-width: 2.6; transform: scale(.7); }
.ik-step.is-done .ik-st { border-color: var(--ok); background: var(--ok); animation: none; transition: background-color .2s ease; }
.ik-step.is-done .ik-st svg { opacity: 1; transform: scale(.8); transition: opacity .2s ease, transform .3s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes ik-spin { to { transform: rotate(360deg); } }
.ik-quote { padding: 10px 14px; border-left: 3px solid var(--quote-line); border-radius: 0 8px 8px 0; background: var(--quote); }

/* Approval card */
.ik-card { overflow: hidden; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 22px var(--shadow); }
.ik-ch { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ik-ch img { width: 18px; height: 18px; }
.ik-ch b { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ik-badge { display: flex; align-items: center; gap: 5px; flex: none; padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-text); font-size: 11.5px; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.ik-badge svg { width: 12px; height: 12px; }
.is-approved .ik-badge { background: var(--ok-soft); color: var(--ok-text); }
.ik-cb { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.ik-cf { display: flex; justify-content: flex-end; gap: 8px; padding: 0 12px 12px; }
.ik-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 500; transition: transform .15s ease, background-color .25s ease, border-color .25s ease, color .25s ease, opacity .3s ease; }
.ik-btn.is-pri { border-color: var(--pri); background: var(--pri); color: var(--pri-fg); }
.is-approved .ik-btn:not(.is-pri) { opacity: .35; }
.is-approved .ik-btn.is-pri { border-color: #566f40; background: #566f40; color: #fff; }
.ik-mail { display: grid; gap: 4px; font-size: 13px; }
.ik-mail span { display: flex; gap: 10px; }
.ik-mail i { width: 54px; flex: none; color: var(--faint); }
.ik-sheet { display: grid; overflow: hidden; border: 1px solid var(--line2); border-radius: 8px; font-size: 12.5px; }
.ik-sheet > span { display: grid; grid-template-columns: 42px 1.2fr 1.1fr .9fr; border-top: 1px solid var(--line); }
.ik-sheet > span:first-child { border-top: 0; }
.ik-sheet > span > * { min-width: 0; overflow: hidden; padding: 6px 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.ik-sheet > span > i { padding-inline: 4px; text-overflow: clip; border-right: 1px solid var(--line); background: var(--sheet-head); color: var(--faint); text-align: center; }
.ik-sheet .is-head { background: var(--sheet-head); }
.ik-sheet .is-head b { color: var(--muted); font-weight: 600; }
.ik-sheet .is-old { color: var(--faint); }
.ik-sheet .is-new { background: var(--sheet-new); }
.ik-sheet .is-new i { background: var(--sheet-new-n); color: var(--ok-text); font-weight: 600; }
.ik-tg { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 9px; background: var(--tg-bg); }
.ik-tg p { max-width: 82%; padding: 7px 10px; border-radius: 12px; }
.ik-tg .is-in { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--tg-in); }
.ik-tg .is-out { position: relative; align-self: flex-end; padding-right: 30px; border: 1.5px dashed var(--tg-out-line); border-bottom-right-radius: 4px; background: var(--tg-out); transition: background-color .3s ease, border-color .3s ease; }
.ik-tg .is-out i { position: absolute; right: 8px; bottom: 6px; width: 16px; height: 16px; color: var(--tg-tick); opacity: 0; transition: opacity .3s ease .15s; }
.is-approved .ik-tg .is-out { border: 1.5px solid var(--tg-sent-line); background: var(--tg-sent); }
.is-approved .ik-tg .is-out i { opacity: 1; }
.ik-done { display: flex; align-items: center; gap: 7px; color: var(--done); font-size: 13px; font-weight: 500; }
.ik-done svg { flex: none; width: 15px; height: 15px; stroke-width: 2.2; }

/* The site's .card p rule would otherwise restyle the replica's paragraphs. */
.card .ik-app p:not(.site-eyebrow) { margin: 0; color: inherit; font-size: 14px; line-height: 1.55; }
.card .ik-app .ik-hello p { max-width: 340px; font: 400 23px/1.3 var(--serif); }
.card .ik-app .ik-tg p { font-size: 13px; line-height: 1.45; }
.card .ik-app .ik-mtext { padding-top: 8px; border-top: 1px dashed var(--line2); font-size: 13.5px; }

/* Composer */
.ik-comp { position: relative; flex: none; width: min(100% - 32px, 720px); margin: 0 auto 14px; padding: 11px 12px 9px 16px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px var(--shadow); }
.ik-input { position: relative; min-height: 22px; font-size: 14px; }
.ik-ph { position: absolute; left: 0; top: 0; color: var(--ph); }
.ik-input.is-typing .ik-ph { opacity: 0; }
.ik-caret { display: none; width: 1.5px; height: 17px; margin-left: 1px; vertical-align: -3px; background: var(--text); animation: ik-blink 1s steps(1) infinite; }
.ik-input.is-typing .ik-caret { display: inline-block; }
@keyframes ik-blink { 50% { opacity: 0; } }
.ik-row { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.ik-row svg { width: 15px; height: 15px; flex: none; }
.ik-plus { width: 18px; height: 18px; color: var(--text); }
.ik-plus svg { width: 18px; height: 18px; }
.ik-mode { display: flex; align-items: center; gap: 5px; padding: 3px 7px; margin-left: -4px; border-radius: 7px; font-weight: 600; transition: background-color .2s ease, transform .15s ease; }
.ik-mode i { width: 14px; height: 14px; }
.ik-mode > svg { width: 13px; height: 13px; color: var(--faint); }
.ik-mode.is-press { background: var(--soft); }
.ik-hint { margin-left: auto; color: var(--ph); white-space: nowrap; }
.ik-opt { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ik-opt b { font-weight: 600; color: var(--text); }
.ik-opt > svg:last-child { width: 12px; height: 12px; color: var(--faint); }
.ik-send { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--pri); color: var(--pri-fg); transition: transform .15s ease; }
.ik-send svg { width: 16px; height: 16px; stroke-width: 2; }
.ik-app .is-press { transform: scale(.93); }
.ik-menu { position: absolute; left: 22px; bottom: 32px; z-index: 5; width: 316px; padding: 5px; border: 1px solid var(--line2); border-radius: 11px; background: var(--surface); box-shadow: 0 14px 34px var(--menu-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .22s ease, visibility 0s .22s; }
.ik-menu.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s ease; }
.ik-menu > span { display: flex; align-items: flex-start; gap: 10px; padding: 8px 9px; border-radius: 8px; color: var(--text); transition: background-color .15s ease; }
.ik-menu > span > svg { margin-top: 2px; }
.ik-menu b { flex: 1; font-size: 13px; font-weight: 600; }
.ik-menu small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }
.ik-menu > span > i { width: 15px; height: 15px; margin-top: 2px; color: var(--ok); opacity: 0; }
.ik-menu > span.is-hover { background: var(--soft); }

/* Cursor (computers) and tap mark (phones) */
.ik-cur { position: absolute; left: 0; top: 0; z-index: 40; width: 20px; height: 24px; margin: -2px 0 0 -3px; opacity: 0; pointer-events: none; will-change: transform; }
.ik-cur.is-on { opacity: 1; }
.ik-cur svg { transition: transform .12s ease; transform-origin: 20% 15%; }
.ik-cur.is-click svg { transform: scale(.82); }

/* Narrower computer stages: drop the history panel, then the rail and composer extras */
@container (max-width: 980px) { .ik-side { display: none; } }
@container (min-width: 701px) and (max-width: 860px) {
  .ik-hint { display: none; }
}

/* ---- Phones: the Idrok phone app in an iPhone running Safari ------------------------------
   Laid out at the iPhone's own 393 × 852 points and scaled into the frame, like the
   Browse apps phone, so it looks like a real phone screen at any width. */
@media (max-width: 700px) {
  .ik-tabs { width: 100%; }
  .ik-tabs button { flex: 1; padding: 8px 6px; font-size: 12.5px; }
  .ik-tab-more { display: none; }
  .ik-window { display: flex; justify-content: center; padding: 26px 0 30px; }
  .ik-frame {
    --pw: min(300px, 78vw); --bz: 10px; --sw: calc(var(--pw) - 2 * var(--bz));
    width: var(--pw); height: calc(var(--sw) * 852 / 393 + 2 * var(--bz));
    padding: var(--bz); border-radius: calc(var(--sw) * 55 / 393 + var(--bz)); background: #0c0c0c;
    box-shadow: inset 0 0 0 1px #2e2e30, 0 0 0 1.5px #b9b9bd, 0 0 0 3px #dcdcdf, 0 26px 50px -20px rgba(0, 0, 0, .45);
  }
  .ik-frame::before, .ik-frame::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #c3c3c7; }
  .ik-frame::before { right: -4.5px; top: 25%; height: 11%; }
  .ik-frame::after { left: -4.5px; top: 21%; height: 7%; box-shadow: 0 calc(var(--pw) * .2) 0 #c3c3c7; }
  html[data-theme="dark"] .ik-frame { box-shadow: inset 0 0 0 1px #2e2e30, 0 0 0 1.5px #4a4a4e, 0 0 0 3px #2a2a2d, 0 26px 50px -20px rgba(0, 0, 0, .8); }
  html[data-theme="dark"] .ik-frame::before, html[data-theme="dark"] .ik-frame::after { background: #4a4a4e; }
  html[data-theme="dark"] .ik-frame::after { box-shadow: 0 calc(var(--pw) * .2) 0 #4a4a4e; }

  .ik-app { --surface: #f0f0f0; flex-direction: column; width: 393px; height: 852px; border: 0; border-radius: 55px; background: var(--surface); font-size: 16px; transform: scale(var(--k, tan(atan2(100cqw, 393px)))); transform-origin: 0 0; }
  html[data-theme="dark"] .ik-app { --surface: #161616; --soft: #262626; --line2: #333; }
  .ik-app .bx-status { display: flex; color: var(--text); }
  .ik-app .sf-bar { display: flex; position: absolute; right: 0; bottom: 0; left: 0; z-index: 25; }
  .ik-app .bx-homebar { display: block; position: absolute; bottom: 8px; left: 50%; z-index: 26; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111; }
  html[data-theme="dark"] .ik-app .bx-homebar { background: #f2f2f2; }
  html[data-theme="dark"] .ik-app .sf-bar { background: linear-gradient(rgba(22, 22, 22, 0), rgba(22, 22, 22, .96) 30%); }
  .ik-app .sf-bar { background: linear-gradient(rgba(240, 240, 240, 0), rgba(240, 240, 240, .96) 30%); }
  .ik-rail { display: none; }
  .ik-surface { flex: 1; min-height: 0; margin: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
  .ik-main { padding-bottom: 104px; }
  .ik-dt-only { display: none !important; }
  .ik-ph-only { display: grid; }

  /* Header: the Idrok mark and name, new chat and close on the right */
  .ik-top { height: 64px; padding: 0 22px 0 24px; border: 0; gap: 12px; }
  .ik-top img { width: 30px; }
  .ik-top > div { flex: 1; }
  .ik-top b { font: 400 30px/1 var(--serif); letter-spacing: -.01em; }
  .ik-top small { display: none; }
  .ik-top .ik-ph-only { place-items: center; width: 40px; height: 40px; color: var(--text); }
  .ik-top .ik-ph-only svg { width: 24px; height: 24px; stroke-width: 1.6; }

  .ik-view { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
  .ik-hello { gap: 18px; padding-bottom: 40px; }
  .ik-hello small { font-size: 12px; }
  .card .ik-app .ik-hello p { max-width: 300px; font-size: 26px; }
  .ik-col { gap: 18px; padding: 14px 20px 18px; }

  /* Messages in the phone app's serif voice */
  .ik-user { max-width: 86%; padding: 11px 17px; border: 1px solid var(--line2); border-radius: 18px; background: var(--soft); }
  .card .ik-app .ik-user p, .card .ik-app .ik-p, .card .ik-app .ik-qp { font: 400 18px/1.5 var(--serif); }
  .ik-bot { gap: 12px; }
  .ik-who { gap: 10px; font: 400 19px/1 var(--serif); }
  .ik-who img { width: 22px; }
  .ik-bot.is-thinking .ik-who { padding: 26px 20px; border-radius: 16px; background: var(--soft); }
  .ik-bot.is-thinking .ik-who em { display: inline; margin-left: 4px; font: 400 16px/1 var(--serif); }
  .ik-bot.is-thinking .ik-body { display: none; }
  .ik-think { display: none; }
  .ik-body { gap: 10px; padding-left: 0; }
  .ik-step { padding: 10px 12px; border-radius: 12px; font-size: 14.5px; }
  .ik-step em { display: none; }
  .ik-card { border-radius: 16px; }
  .ik-ch { padding: 12px 14px; font-size: 15px; }
  .ik-ch b { white-space: normal; }
  .ik-badge { font-size: 12px; }
  .ik-badge span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ik-cb { padding: 12px 14px; }
  .ik-mail { font-size: 14px; }
  .card .ik-app .ik-mtext { font-size: 15px; }
  .ik-sheet { font-size: 13.5px; }
  .ik-sheet > span { grid-template-columns: 38px 1.25fr 1fr; }
  .ik-sheet > span > :last-child { display: none; }
  .card .ik-app .ik-tg p { font-size: 14.5px; }
  .ik-cf { padding: 0 14px 14px; }
  .ik-btn { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
  .ik-btn.is-pri { flex: 1; justify-content: center; }
  .ik-done { font-size: 14.5px; }

  /* Composer: + and the mode shield on the left, speed, effort and send on the right */
  .ik-comp { width: calc(100% - 40px); margin: 0 auto 16px; padding: 18px 12px 12px 20px; border-radius: 26px; box-shadow: 0 8px 26px var(--shadow); }
  html[data-theme="dark"] .ik-comp { border-color: #333; background: #1f1f1f; }
  .ik-input { min-height: 26px; font-size: 18px; }
  .ik-row { gap: 22px; margin-top: 16px; }
  .ik-row svg { width: 21px; height: 21px; }
  .ik-plus, .ik-plus svg { width: 22px; height: 22px; }
  .ik-plus { margin-left: 2px; color: var(--muted); }
  .ik-mode { margin: 0; padding: 4px; border-radius: 10px; color: var(--muted); }
  .ik-mode i { width: 21px; height: 21px; }
  .ik-mode b, .ik-mode > svg, .ik-hint, .ik-opt { display: none; }
  .ik-row .ik-ph-only { place-items: center; width: 24px; height: 24px; color: var(--faint); }
  .ik-row .ik-ph-first { margin-left: auto; }
  .ik-send { width: 44px; height: 44px; }
  .ik-send svg { width: 21px; height: 21px; }
  .ik-menu { left: 4px; bottom: 50px; width: 300px; padding: 6px; border-radius: 16px; }
  .ik-menu > span { padding: 10px; border-radius: 11px; }
  .ik-menu b { font-size: 15px; }
  .ik-menu small { font-size: 13.5px; }

  /* Chats drawer, opened between conversations */
  .ik-side { display: flex; position: absolute; top: 0; bottom: 104px; left: 0; z-index: 30; width: 302px; padding: 18px 12px; border: 0; border-radius: 0 26px 26px 0; background: var(--surface); box-shadow: 0 20px 50px rgba(0, 0, 0, .28); transform: translate3d(-104%, 0, 0); transition: transform .42s cubic-bezier(.32, .72, 0, 1); }
  html[data-theme="dark"] .ik-side { background: #1c1c1c; box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset -1px 0 0 #2a2a2a; }
  .is-drawer .ik-side { transform: none; }
  .ik-scrim { position: absolute; inset: 0; z-index: 29; display: block; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .42s ease; }
  .is-drawer .ik-scrim { opacity: 1; }
  .ik-side-h { gap: 20px; padding: 4px 6px 18px 8px; font: 400 28px/1 var(--serif); }
  .ik-side-h span { width: 22px; height: 22px; color: var(--muted); }
  .ik-new { height: 46px; padding: 0 10px; border: 0; background: transparent; font-size: 17px; }
  .ik-new svg { width: 18px; height: 18px; }
  .ik-side li { height: 50px; padding: 0 12px; border-radius: 12px; font-size: 16.5px; }



  .ik-side { padding-bottom: 0; } .ik-set { height: 58px; font-size: 16px; } .ik-set svg { width: 19px; height: 19px; }

  /* A tap mark instead of a mouse pointer */
  .ik-cur { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(128, 128, 128, .3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); transition: opacity .2s ease; }
  .ik-cur svg { display: none; }
  .ik-cur.is-click { background: rgba(120, 120, 120, .42); }
}
.card .ik-app .ik-hist > p { padding: 16px 12px 6px; color: var(--faint); font-size: 13px; font-weight: 500; line-height: 1.3; }
.ik-scrim { display: none; }
@media (max-width: 700px) { .card .ik-app .ik-hist > p { padding: 18px 12px 8px; font-size: 14px; } .ik-scrim { display: block; } }
/* Shared phone parts keep their own icon sizes inside the replica. */
@media (max-width: 700px) {
  .ik-app .sf-bar svg { width: 22px; height: 22px; }
  .ik-app .sf-bar .sf-btn:first-child svg { width: 25px; height: 25px; }
  .ik-app .bx-status svg { width: auto; height: 12px; }
  .ik-app .bx-status svg:last-child { height: 13px; }
  .ik-app .bx-status b { font: inherit; }
  .ik-app .sf-url b { flex: 1; font-weight: 600; text-align: center; white-space: nowrap; }
}
/* Phones, light mode: lift bubbles, the thinking card and the drawer off the grey screen. */
@media (max-width: 700px) {
  html:not([data-theme="dark"]) .ik-app { --soft: #e6e6e2; }
  html:not([data-theme="dark"]) .ik-side { background: #fff; }
  html:not([data-theme="dark"]) .ik-side li.is-cur { background: #efefec; }
}
