/* Shared Failsafe preview UI used in the hero Mac and the iPhone mock.
   All UI selectors stay under .fs-shell so they cannot restyle the recovery key. */

.fs-shell{
  --fs-bg:#141312;
  --fs-panel:#1C1B18;
  --fs-line:rgba(237,236,232,.14);
  --fs-ink:#EDECE8;
  --fs-mute:#A3A29C;
  height:100%;
  min-height:0;
  display:flex;flex-direction:column;
  background:var(--fs-bg);color:var(--fs-ink);
  overflow:hidden;text-align:left;
}
.fs-shell *{box-sizing:border-box}
.fs-shell .fs-top{
  display:flex;align-items:center;gap:.55rem;
  padding:.55rem .7rem .5rem;border-bottom:1px solid var(--fs-line);flex:none;
  flex-wrap:nowrap;min-width:0
}
.fs-shell .fs-back{
  appearance:none;cursor:pointer;
  min-height:32px;padding:0 .7rem;border-radius:var(--radius-btn);
  border:1px solid rgba(237,236,232,.28);background:transparent;color:var(--fs-ink);
  font:500 .78rem/1 "Source Sans 3", sans-serif;
  margin-left:auto;flex:0 0 auto
}
.fs-shell .fs-back:focus-visible{outline:2px solid var(--fs-ink);outline-offset:2px}
.fs-shell .fs-word{
  display:inline-flex;align-items:center;gap:.38rem;margin:0;
  font:300 1.02rem/.9 "Outfit", Helvetica, sans-serif;letter-spacing:-.045em;
  flex:0 0 auto
}
.fs-shell .fs-app-title{
  flex:1 1 auto;min-width:0;margin:0;
  font:300 .95rem/1.15 "Outfit", Helvetica, sans-serif;letter-spacing:-.03em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.fs-shell .fs-app-title[hidden]{display:none !important}
.fs-shell[data-fs-view]:not([data-fs-view="home"]) .fs-meta{display:none}
.fs-shell[data-fs-view]:not([data-fs-view="home"]) .fs-view-title{display:none}
.fs-shell .fs-word .brand-mark svg{width:20px;height:14px;display:block}
.fs-shell .fs-meta{margin:0 0 0 auto;color:var(--fs-mute);font:500 .72rem/1 "Source Sans 3", sans-serif}
.fs-shell .fs-stage{flex:1;min-height:0;position:relative}
.fs-shell .fs-view{
  position:absolute;inset:0;display:flex;flex-direction:column;
  padding:.7rem .75rem .65rem;overflow:hidden
}
.fs-shell .fs-view[hidden]{display:none !important}
.fs-shell .fs-kicker,.fs-shell .fs-view-title{
  margin:0 0 .55rem;
  font:500 .72rem/1 "Source Sans 3", sans-serif;
  letter-spacing:.08em;text-transform:uppercase;color:var(--fs-mute)
}
.fs-shell .fs-view-title{letter-spacing:.06em}
.fs-shell .fs-note{margin:0 0 .55rem;color:var(--fs-mute);font-size:.72rem;line-height:1.35;max-width:52ch}
.fs-shell .fs-apps{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.55rem;align-content:start;flex:1
}
.fs-shell .fs-app{
  appearance:none;cursor:pointer;text-align:left;
  display:flex;flex-direction:column;gap:.55rem;
  min-height:5.6rem;padding:.7rem .7rem .75rem;
  border:1px solid var(--fs-line);border-radius:var(--radius-btn);
  background:var(--fs-panel);color:var(--fs-ink)
}
.fs-shell .fs-app:hover{border-color:rgba(237,236,232,.4)}
.fs-shell .fs-app:focus-visible{outline:2px solid var(--fs-ink);outline-offset:2px}
.fs-shell .fs-app.is-press{
  transform:scale(.985);
  background:#242321;
  border-color:rgba(237,236,232,.48)
}
.fs-shell .fs-back.is-press{background:#242321}
.fs-shell .fs-app-icon{
  width:2.15rem;height:2.15rem;border-radius:.85rem;
  display:grid;place-items:center;background:#111;color:var(--fs-ink)
}
.fs-shell .fs-app-icon .brand-mark svg{width:18px;height:13px}
.fs-shell .fs-app-icon-alt svg{width:1.15rem;height:1.15rem}
.fs-shell .fs-app-copy{display:flex;flex-direction:column;gap:.18rem;min-width:0}
.fs-shell .fs-app strong{
  font:300 1rem/1.1 "Outfit", Helvetica, sans-serif;letter-spacing:-.03em
}
.fs-shell .fs-app small{color:var(--fs-mute);font:500 .72rem/1.25 "Source Sans 3", sans-serif}

.fs-shell .fs-chat{display:flex;flex-direction:column;gap:.7rem;flex:1;min-height:0;overflow:auto}
.fs-shell .fs-msg{min-width:0;max-width:100%}
.fs-shell .fs-msg.is-in{animation:fs-msg-pop .48s cubic-bezier(.22,1,.36,1) both}
@keyframes fs-msg-pop{
  from{opacity:0;transform:translateY(.75rem)}
  to{opacity:1;transform:none}
}
html.rm .fs-shell .fs-msg.is-in,
html.fs-reduce-motion .fs-shell .fs-msg.is-in{animation:none}
.fs-shell .fs-msg p{margin:.2rem 0 0;font-size:.88rem;line-height:1.4;overflow-wrap:break-word}
.fs-shell .fs-who{
  display:block;font:500 .68rem/1 "Source Sans 3", sans-serif;
  letter-spacing:.07em;text-transform:uppercase;color:var(--fs-mute)
}
.fs-shell .fs-msg.is-you{align-self:flex-end;max-width:92%}
.fs-shell .fs-msg.is-you p{
  background:#2A2926;border-radius:.9rem .9rem .28rem .9rem;padding:.55rem .7rem
}
.fs-shell .fs-msg.is-bot{max-width:94%}
.fs-shell .fs-composer{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:.65rem;padding:.45rem .65rem;min-height:2.2rem;
  border:1px solid var(--fs-line);border-radius:var(--radius-btn);color:var(--fs-mute);
  font-size:.8rem
}
.fs-shell .fs-send{
  width:.7rem;height:.7rem;border-radius:50%;background:#9C2B24;flex:none
}

.fs-shell .fs-map-layout{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.45rem;min-height:0;flex:1}
.fs-shell .fs-regions{display:flex;flex-wrap:wrap;gap:.35rem}
.fs-shell .fs-region,.fs-shell .fs-entry{
  appearance:none;cursor:pointer;
  min-height:30px;padding:0 .6rem;border-radius:999px;
  border:1px solid var(--fs-line);background:transparent;color:var(--fs-ink);
  font:500 .72rem/1 "Source Sans 3", sans-serif
}
.fs-shell .fs-region[aria-pressed="true"],.fs-shell .fs-entry[aria-pressed="true"]{
  background:var(--fs-ink);color:var(--fs-bg);border-color:var(--fs-ink)
}
.fs-shell .fs-region:focus-visible,.fs-shell .fs-entry:focus-visible{outline:2px solid var(--fs-ink);outline-offset:2px}
.fs-shell .fs-world-wrap{min-width:0;min-height:0}
.fs-shell .fs-world{background:#1b1a17;border-radius:.7rem;overflow:hidden;height:7.6rem;display:flex;align-items:center;justify-content:center}
.fs-shell .fs-world-map{position:relative;height:100%;width:auto}
.fs-shell .fs-world-map img{height:100%;width:auto;max-height:7.6rem;display:block}
.fs-shell .fs-hotspot{
  position:absolute;padding:0;border:1px solid transparent;background:transparent;cursor:pointer
}
.fs-shell .fs-hotspot[aria-pressed="true"]{background:rgba(156,43,36,.3);box-shadow:inset 0 0 0 2px #c45a52}
.fs-shell .fs-hotspot:focus-visible{outline:2px solid #EDECE8;outline-offset:-2px}
.fs-shell .fs-attr{margin:.35rem 0 0;color:var(--fs-mute);font-size:.64rem;line-height:1.35}
.fs-shell .fs-attr a{text-decoration:underline;text-underline-offset:2px}
.fs-shell .fs-sheet{
  background:var(--fs-panel);border:1px solid var(--fs-line);border-radius:.85rem;
  padding:.55rem .6rem .65rem
}
.fs-shell .fs-sheet[hidden]{display:none !important}
.fs-shell .fs-sheet-kicker{margin:0;color:var(--fs-mute);font-size:.68rem;letter-spacing:.06em;text-transform:uppercase}
.fs-shell .fs-sheet-name{margin:.15rem 0 .4rem;font:300 1.05rem/1 "Outfit", Helvetica, sans-serif;letter-spacing:-.03em}
.fs-shell .fs-sheet img{width:100%;height:auto;display:block;border-radius:.35rem}
.fs-shell .fs-sheet-cap{margin:.4rem 0 0;color:var(--fs-mute);font-size:.7rem;line-height:1.35}

.fs-shell .fs-ency{display:grid;grid-template-columns:minmax(6.5rem,.34fr) minmax(0,1fr);gap:.7rem;min-height:0;flex:1}
.fs-shell .fs-article{min-height:0;overflow:auto}
.fs-shell .fs-entry-list{display:flex;flex-direction:column;align-items:stretch;gap:.35rem}
.fs-shell .fs-article h3{font:300 1.25rem/1.1 "Outfit", Helvetica, sans-serif;letter-spacing:-.035em;margin:0 0 .45rem}
.fs-shell .fs-article p{margin:0 0 .55rem;font-size:.82rem;line-height:1.45;color:rgba(237,236,232,.92)}
.fs-shell .fs-article p:last-child{margin-bottom:0}

.fs-shell-phone .fs-apps{grid-template-columns:1fr}
.fs-shell-phone .fs-app{flex-direction:row;align-items:center;min-height:3.5rem;padding:.55rem .65rem}
.fs-shell-phone .fs-ency{grid-template-columns:1fr}
.fs-shell-phone .fs-entry-list{flex-direction:row;flex-wrap:wrap}
.fs-shell-phone .fs-top{padding:.45rem .6rem}
.fs-shell-phone .fs-app-title{font-size:.82rem}
.fs-shell-phone .fs-meta{display:none}
.fs-shell-phone .fs-view{padding:.55rem .65rem .7rem}

.laptop-screen{container-type:size;container-name:laptopscreen}

/* Compact the in-laptop UI so mobile (and any small screen box) reads as software, not oversized tiles. */
@container laptopscreen (max-height: 230px){
  .fs-shell .fs-top{padding:.32rem .42rem;gap:.35rem}
  .fs-shell .fs-word{font-size:.84rem}
  .fs-shell .fs-app-title{font-size:.72rem}
  .fs-shell .fs-word .brand-mark svg{width:16px;height:11px}
  .fs-shell .fs-back{min-height:26px;padding:0 .5rem;font-size:.66rem}
  .fs-shell .fs-meta,.fs-shell .fs-kicker,.fs-shell .fs-note,.fs-shell .fs-attr,.fs-shell .fs-composer,.fs-shell .fs-app small{display:none}
  .fs-shell .fs-view{padding:.38rem .42rem .4rem}
  .fs-shell .fs-view-title{margin:0 0 .32rem;font-size:.62rem}
  .fs-shell .fs-apps{gap:.32rem}
  .fs-shell .fs-app{min-height:0;padding:.42rem .4rem .45rem;gap:.28rem}
  .fs-shell .fs-app-icon{width:1.35rem;height:1.35rem;border-radius:.48rem}
  .fs-shell .fs-app-icon .brand-mark svg{width:13px;height:9px}
  .fs-shell .fs-app-icon-alt svg{width:.85rem;height:.85rem}
  .fs-shell .fs-app strong{font-size:.72rem;line-height:1.2;overflow-wrap:normal;word-break:normal;hyphens:none}
  .fs-shell .fs-msg p{font-size:.68rem;line-height:1.32}
  .fs-shell .fs-msg.is-you p{padding:.35rem .45rem}
  .fs-shell .fs-chat{gap:.35rem}
  .fs-shell .fs-region,.fs-shell .fs-entry{min-height:24px;padding:0 .45rem;font-size:.62rem}
  .fs-shell .fs-article h3{font-size:1rem;margin:0 0 .3rem}
  .fs-shell .fs-article p{font-size:.7rem;margin:0 0 .35rem}
  .fs-shell.fs-shell-desktop .fs-world{height:4.35rem}
  .fs-shell.fs-shell-desktop .fs-world-map img{max-height:4.35rem}
  .fs-shell.fs-shell-desktop .fs-sheet img{max-height:3.3rem}
}
@container laptopscreen (max-width: 270px){
  .fs-shell .fs-apps{grid-template-columns:1fr;gap:.26rem}
  .fs-shell .fs-app{flex-direction:row;align-items:center;min-height:1.85rem;padding:.26rem .42rem;gap:.4rem}
  .fs-shell .fs-app strong{font-size:.74rem;white-space:nowrap}
  .fs-shell .fs-app-icon{width:1.2rem;height:1.2rem;border-radius:.42rem}
}
@container laptopscreen (max-height: 170px){
  .fs-shell .fs-view-title,.fs-shell .fs-who{display:none}
  .fs-shell.fs-shell-desktop .fs-sheet{display:none !important}
  .fs-shell.fs-shell-desktop .fs-map-layout{
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr)
  }
  .fs-shell.fs-shell-desktop .fs-world{height:2.8rem}
  .fs-shell.fs-shell-desktop .fs-world-map img{max-height:2.8rem}
  .fs-shell .fs-msg p{font-size:.62rem;line-height:1.28}
  .fs-shell .fs-msg.is-you p{padding:.3rem .4rem}
  .fs-shell .fs-chat{gap:.28rem}
  .fs-shell .fs-region{min-height:22px;font-size:.58rem;padding:0 .4rem}
  .fs-shell .fs-regions{gap:.22rem}
}
@container laptopscreen (max-width: 420px){
  .fs-shell .fs-ency{grid-template-columns:1fr;gap:.35rem}
  .fs-shell .fs-entry-list{flex-direction:row;flex-wrap:wrap}
}

@media (prefers-reduced-motion: reduce){
  .fs-shell *{transition:none !important;animation:none !important}
}

.fs-shell-desktop .fs-map-layout{
  grid-template-columns:1.2fr .8fr;
  grid-template-rows:auto minmax(0,1fr);
}
.fs-shell-desktop .fs-regions{grid-column:1/-1}
.fs-shell-desktop .fs-world{height:6.8rem}
.fs-shell-desktop .fs-world-map img{max-height:6.8rem}
.fs-shell-desktop .fs-sheet{align-self:start;padding:.45rem .5rem .5rem;overflow:hidden}
.fs-shell-desktop .fs-sheet-kicker,.fs-shell-desktop .fs-sheet-cap{display:none}
.fs-shell-desktop .fs-sheet-name{margin:0 0 .3rem;font-size:.95rem}
.fs-shell-desktop .fs-sheet img{max-height:5.2rem;object-fit:cover}
.fs-shell-desktop .fs-attr{font-size:.58rem}
.fs-shell-phone .fs-world{height:9.2rem}
.fs-shell-phone .fs-world-map img{max-height:9.2rem;width:100%;height:auto}
.fs-shell-phone .fs-sheet img{max-height:7rem;object-fit:cover}

.fs-shell-desktop .fs-composer{display:none}
.fs-shell-phone .fs-composer{background:var(--fs-bg);position:relative;z-index:1}

.fs-shell-desktop[data-fs-view="maps"] .fs-note,
.fs-shell-desktop[data-fs-view="ency"] .fs-note{display:none}
