/* Paired desktop product views and an individually readable mobile detail view. */
.fk-host { position: relative; width: 100%; overflow: hidden; }
.fk-scale { position: relative; width: 100%; aspect-ratio: 1200 / 760; }
.fk-views { display: none; }
[data-case-fk] { container: focus-detail / inline-size; }
.fk-app {
  position: absolute; top: 0; left: 0; transform: scale(var(--fk-scale, 1)); transform-origin: 0 0;
  --fk-ink: #1e293b; --fk-text: #475569; --fk-mute: #94a3b8; --fk-line: #e2e8f0; --fk-blue: #3b82f6; --fk-violet: #7c3aed; --fk-green: #10b981;
  width: 1200px; height: 760px; padding: 34px 30px; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center;
  background: radial-gradient(60% 70% at 20% 0%, #e0ecff, transparent 70%), radial-gradient(60% 70% at 100% 100%, #e3f4ff, transparent 70%), #eef4fb;
  font: 400 12px/1.4 "Geist", ui-sans-serif, system-ui, sans-serif; color: var(--fk-ink); text-align: left;
}
.fk-app * { box-sizing: border-box; }
.fk-app p, .fk-app h4 { margin: 0; }
.fk-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fk-win { height: 100%; background: #f6f9fe; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15,23,42,.06), 0 30px 60px -30px rgba(30,64,175,.35); display: flex; flex-direction: column; }
.fk-chrome { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--fk-line); }
.fk-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.fk-chrome i:nth-child(2) { background: #febc2e; } .fk-chrome i:nth-child(3) { background: #28c840; }
.fk-chrome span { margin-left: 10px; flex: 1; height: 18px; padding: 0 10px; display: flex; align-items: center; border-radius: 5px; background: #f1f5f9; font: 400 10px "Geist Mono", monospace; color: var(--fk-mute); }
.fk-round { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--fk-line); background: #fff; display: grid; place-items: center; color: var(--fk-text); }
.fk-round .fk-i { width: 13px; height: 13px; }

/* Child view */
.fk-bar { display: flex; gap: 6px; padding: 12px 16px 0; }
.fk-level { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px; background: #fef3c7; color: #b45309; font-weight: 700; font-size: 11px; }
.fk-level .fk-i { width: 12px; height: 12px; fill: #f59e0b; stroke: #f59e0b; }
.fk-msg { margin: 12px 16px 0; padding: 10px 12px; display: flex; gap: 10px; align-items: center; border-radius: 12px; background: #fff7e6; border: 1px solid #fde7b8; }
.fk-msg__i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fde68a; color: #92400e; }
.fk-msg small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #b45309; }
.fk-msg b { font-size: 12.5px; }
.fk-kid { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 14px 16px 16px; }
.fk-me { text-align: center; }
.fk-me img { width: 96px; height: auto; display: block; margin: 4px auto 6px; filter: drop-shadow(0 10px 14px rgba(15,23,42,.18)); }
.fk-me > b { display: block; font-size: 15px; }
.fk-me > small { color: var(--fk-text); font-size: 11px; }
.fk-streak { margin-top: 12px; padding: 10px 11px; border-radius: 12px; background: #fff; border: 1px solid var(--fk-line); text-align: left; }
.fk-streak p { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12px; }
.fk-streak p span { display: inline-flex; gap: 4px; align-items: center; color: #ea580c; }
.fk-streak em { font-style: normal; color: #f59e0b; letter-spacing: -1px; font-size: 11px; }
.fk-xp { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--fk-text); }
.fk-streak > i, .fk-prog { display: block; height: 6px; margin: 5px 0; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.fk-streak s, .fk-prog s { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, #f59e0b, #f97316); transform-origin: left; }
.fk-streak > small { font-size: 9.5px; color: var(--fk-mute); }
.fk-missions header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.fk-missions header b { font-size: 14px; }
.fk-missions header span { font-size: 11px; color: var(--fk-text); }
.fk-mission { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px 13px; margin-bottom: 9px; border-radius: 13px; background: #fff; border: 1px solid var(--fk-line); }
.fk-mission.is-done { background: #f4fbf8; border-color: #b9e9d6; }
.fk-mission.is-now { border-color: #ddd6fe; box-shadow: 0 10px 24px -16px rgba(124,58,237,.5); }
.fk-mission__i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #eef2ff; color: var(--fk-blue); }
.is-done .fk-mission__i { background: #dcfce7; color: var(--fk-green); }
.is-now .fk-mission__i { background: #f3e8ff; color: var(--fk-violet); }
.fk-mission b { display: flex; align-items: center; gap: 5px; font-size: 13.5px; }
.fk-ok { width: 13px; height: 13px; color: var(--fk-green); }
.fk-mission small { display: block; color: var(--fk-text); font-size: 11.5px; margin-top: 1px; }
.fk-mission p { display: flex; gap: 8px; margin-top: 5px; font-size: 10.5px; color: var(--fk-mute); }
.fk-mission p em { font-style: normal; font-weight: 700; color: var(--fk-blue); }
.is-now p em { color: var(--fk-violet); }
.fk-prog { margin-top: 8px; }
.fk-prog s { background: var(--fk-violet); }
.fk-go { color: var(--fk-mute); }
.fk-host.is-live .is-now .fk-prog s { animation: fk-prog 4s ease-in-out infinite alternate; }
@keyframes fk-prog { from { width: 30%; } to { width: 72%; } }

/* Live link between the two views */
.fk-link { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fk-link i { width: 1px; height: 70px; background: linear-gradient(transparent, #93c5fd, transparent); }
.fk-link span { padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid #bfdbfe; color: var(--fk-blue); font: 600 9.5px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }

/* Parent dashboard */
.fk-top { display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--fk-line); }
.fk-top img { width: 22px; height: auto; }
.fk-top b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.fk-sel { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fk-line); font-weight: 600; }
.fk-down { width: 12px; height: 12px; transform: rotate(90deg); }
.fk-pbody { flex: 1; min-height: 0; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.fk-pbody h4 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.fk-sub { color: var(--fk-text); font-size: 12px; margin-top: -6px !important; }
.fk-live { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.fk-live b { display: block; font-size: 13px; }
.fk-live small { color: var(--fk-text); font-size: 11px; }
.fk-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--fk-green); box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
.fk-host.is-live .fk-pulse { animation: fk-pulse 1.8s ease-out infinite; }
@keyframes fk-pulse { to { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
.fk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fk-kpi { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px; background: #fff; border: 1px solid var(--fk-line); }
.fk-kpi > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.fk-kpi small { display: block; font-size: 10.5px; color: var(--fk-text); }
.fk-kpi b { font-size: 16px; font-weight: 800; }
.fk-card { padding: 11px 13px; border-radius: 13px; background: #fff; border: 1px solid var(--fk-line); }
.fk-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.fk-h .fk-i { width: 14px; height: 14px; color: var(--fk-blue); }
.fk-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 104px; margin-top: 8px; }
.fk-bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 5px; }
.fk-bars i { display: block; height: var(--h); min-height: 4px; border-radius: 6px 6px 3px 3px; background: #bfdbfe; transform-origin: bottom; }
.fk-bars .is-today i { background: var(--fk-blue); }
.fk-host.is-live .fk-bars i { animation: fk-grow 1s cubic-bezier(.22,.7,.2,1) both; }
@keyframes fk-grow { from { transform: scaleY(0); } }
.fk-bars span { text-align: center; font-size: 10px; color: var(--fk-mute); }
.fk-bars .is-today span { color: var(--fk-blue); font-weight: 700; }
.fk-row { display: flex; align-items: center; gap: 11px; margin-top: 8px; }
.fk-row b { display: block; font-size: 13px; }
.fk-row small { color: var(--fk-text); font-size: 11px; }
.fk-row p { margin-left: auto !important; text-align: right; }
.fk-row p em { display: block; font-style: normal; font-weight: 800; color: #f59e0b; font-size: 13px; }
.fk-row p small { display: inline-flex; align-items: center; gap: 3px; }
.fk-row p .fk-i { width: 11px; height: 11px; }
@media (prefers-reduced-motion: reduce) { .fk-host .fk-pulse, .fk-host .fk-bars i, .fk-host .fk-prog s { animation: none !important; } }

@container focus-detail (max-width: 620px) {
  .fk-scale { aspect-ratio: auto; }
  .fk-app {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    height: auto;
    padding: clamp(8px, 2.8cqi, 16px);
    transform: none;
    --fk-mute: #53657e;
  }
  .fk-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 999px;
    background: #dbe5f0;
  }
  .fk-views button {
    min-height: 44px;
    padding: 5px 8px;
    border-radius: inherit;
    color: #344961;
    font: 600 14px/1.25 var(--sans, system-ui);
  }
  .fk-views button[aria-pressed="true"] { color: #203445; background: #fff; box-shadow: 0 2px 6px #27456822; }
  .fk-views button:focus-visible { outline: 2px solid #2454a9; outline-offset: -3px; }
  .fk-link, .fk-chrome, .fk-bar .fk-round, .fk-top .fk-round { display: none; }
  [data-fk-view="child"] .fk-win--parent, [data-fk-view="parent"] .fk-win--child { display: none; }
  .fk-win { height: auto; border-radius: 12px; }
  .fk-win--child { display: grid; grid-template-columns: minmax(0, 1fr); }
  .fk-bar { grid-column: 1; grid-row: 1; align-self: start; justify-self: end; padding: 10px 10px 0 0; }
  .fk-msg { grid-row: 3; margin: 0 12px 12px; }
  .fk-kid { display: contents; }
  .fk-me {
    grid-column: 1; grid-row: 1;
    display: grid;
    grid-template-columns: clamp(68px, 19cqi, 96px) 1fr;
    align-items: end;
    gap: 2px 12px;
    padding: 32px 14px 14px;
    text-align: left;
  }
  .case-figure .fk-app .fk-me img {
    width: 100%;
    max-height: 112px;
    object-fit: contain;
    grid-row: 1 / 3;
    margin: 0;
  }
  .fk-me > b { font-size: clamp(18px, 5cqi, 24px); }
  .fk-me > small { align-self: start; font-size: 13px; }
  .fk-streak { grid-column: 1 / -1; margin-top: 10px; }
  .fk-missions { grid-row: 2; padding: 0 12px 4px; }
  .fk-mission { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .fk-mission__i { width: 32px; height: 32px; }
  .fk-missions header b, .fk-pbody h4 { font-size: 17px; }
  .fk-mission b, .fk-live b, .fk-row b, .fk-h { font-size: 14px; }
  .fk-mission small, .fk-mission p, .fk-live small, .fk-kpi small, .fk-streak > small, .fk-missions header span { font-size: 12px; }
  .fk-kpi { gap: 6px; padding: 9px 7px; }
  .fk-kpi > span { width: 25px; height: 25px; }
  .fk-kpi b { font-size: 18px; }
  .fk-pbody { padding: 12px; }
  .fk-bars span { font-size: 11px; }
}
