/* Approved Invictus light / darkness design. Real controls remain in their original flows. */
:root{--iv-safe-top:env(safe-area-inset-top,0px);--iv-safe-bottom:env(safe-area-inset-bottom,0px)}
html body .im-root{--im-text:#eef5ff;--im-gold:#e8d5ad;--im-muted:#a3b0c0;--im-line:#dbeaff24;background:#010409;font-family:Arial,Helvetica,sans-serif}
.iv-living-ocean{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
html body .im-root :is(h1,h2,h3){font-family:Arial,Helvetica,sans-serif;font-weight:400;letter-spacing:.02em}
html body .im-root .im-universe{background:#010409}
html body .im-root :is(.im-nebula,.im-stardust){display:none}
html body .im-root.im-infinity-navigation .im-universe-bar{position:absolute;inset:calc(12px + var(--iv-safe-top)) 20px auto!important;display:flex!important;align-items:center;justify-content:center;min-height:44px;height:44px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;backdrop-filter:none!important;box-shadow:none!important;pointer-events:none;z-index:32}
html body .im-root .im-universe-brand{position:static;pointer-events:auto;min-width:110px}
html body .im-root .im-universe-brand img{display:none}
html body .im-root .im-universe-brand span{display:block!important;font:10px Arial;letter-spacing:.45em;color:#f0f6ff}
html body .im-root #im-universe-avatar{position:absolute;right:0;top:0;display:flex;align-items:center;justify-content:center;height:44px;width:44px;min-height:44px;max-width:44px!important;padding:0!important;border:1px solid #cbe2ff40;border-radius:50%;font-size:0!important;background:#04101b66;pointer-events:auto;overflow:hidden}
html body .im-root #im-universe-avatar:before{content:'';width:18px;height:22px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='black'/%3E%3Cpath d='M4 23v-3a8 8 0 0 1 16 0v3' fill='none' stroke='black'/%3E%3C/svg%3E") center/contain no-repeat}
html body .im-root #im-universe-avatar img{position:absolute;inset:0;object-fit:cover;width:44px;height:44px;border-radius:50%}
html body .im-root .iv-wrld-link{position:absolute;left:0;top:0;width:44px;height:44px;min-height:44px;border:1px solid #cbe2ff40!important;border-radius:50%;color:#e5d4b2;pointer-events:auto;font-size:21px;background:#04101b66!important}
html body .im-root .iv-explore-toggle{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(98px + var(--iv-safe-bottom));z-index:31;min-height:44px;min-width:94px;padding:8px 16px;background:#04101b99;border:1px solid #b5d6ff30;font-size:11px;letter-spacing:.08em;backdrop-filter:blur(12px)}
html body .im-root .iv-explore-toggle:active{transform:translateX(-50%) scale(.96)}
html body .im-root[data-signed-in=false] .iv-explore-toggle{display:none!important}
html body .im-root.im-infinity-navigation .im-top-menu{position:fixed!important;inset:auto 16px calc(150px + var(--iv-safe-bottom))!important;margin:auto!important;width:min(560px,calc(100vw - 32px))!important;max-width:560px;height:auto!important;max-height:calc(100dvh - 240px - var(--iv-safe-top) - var(--iv-safe-bottom));overflow:auto;padding:18px;border:1px solid #dbeaff30;border-radius:26px;background:#030b15f5;box-shadow:0 20px 80px #000b;backdrop-filter:blur(24px);pointer-events:auto;touch-action:pan-y!important}
html body .im-root.im-infinity-navigation .im-top-menu[hidden]{display:none!important}
html body .im-root .im-infinity-track{height:auto;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body .im-root :is(.im-work-menu,.im-play-menu){display:contents}
html body .im-root :is(.im-infinity-line,.im-infinity-caption){display:none}
html body .im-root .im-universe-bar .im-infinity-stop{position:relative;inset:auto;margin:0;width:auto!important;height:auto!important;min-height:64px!important;min-width:44px!important;padding:10px 4px!important;border-radius:15px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:transparent!important;font:11px Arial}
html body .im-root .im-infinity-stop .im-nav-dot{position:relative;inset:auto;width:14px;height:14px}
html body .im-root .im-infinity-stop .im-nav-dot:before{background:#f8fcff;box-shadow:0 0 8px #c4e3ff,0 0 20px #d9ebff99}
html body .im-root .im-infinity-stop .im-star-name{position:static;transform:none;opacity:1;background:none;border:0;padding:0;white-space:normal;text-align:center;color:#d4dfed;font:11px/1.3 Arial}
html body .im-root .im-infinity-stop.is-selected{background:#d6e7ff0c!important}
html body .im-root .im-infinity-stop .im-nav-dot b{font:12px Arial}
html body .im-root :is(.im-orbit,.im-related,.iv-viewbar,.im-world-return,.iv-main-wallet-hud){display:none!important}
html body .im-root .im-feed-dock{display:flex!important;position:absolute;left:50%;right:auto;transform:translateX(-50%);bottom:calc(16px + var(--iv-safe-bottom));width:min(380px,calc(100% - 40px));height:68px!important;min-height:68px;padding:4px 16px!important;gap:20px;border:1px solid #c9e2ff2b;border-radius:40px;background:linear-gradient(135deg,#0a172c66,#01040999)!important;backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 #ffffff0c;z-index:30;pointer-events:auto}
html body .im-root .im-feed-dock[hidden]{display:none!important}
html body .im-root .im-feed-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex:1;padding:8px;min-height:56px;min-width:44px;background:none!important;border:0;color:#b8c8dc;font:10px/1 Arial}
html body .im-root .im-feed-dock button:before{content:'';width:14px;height:14px;border:1px solid #c9e2ff;border-radius:50%;transition:background .2s,box-shadow .2s}
html body .im-root .im-feed-dock button[data-go=i]:before{width:7px;height:7px;background:#fff;box-shadow:0 0 12px #fff9;border:0;margin:4px}
html body .im-root .im-feed-dock button.is-selected{color:#fff}
html body .im-root .im-feed-dock button.is-selected:before{background:#f6fcff;box-shadow:0 0 10px #b8d9ff,0 0 20px #afd2ff66}
html body .im-root.im-infinity-navigation :is(.im-page,.im-chat){padding-top:calc(76px + var(--iv-safe-top))!important;background:none!important}
html body .im-root.im-infinity-navigation .im-destination{padding:calc(76px + var(--iv-safe-top)) 0 calc(150px + var(--iv-safe-bottom))!important}
html body .im-root.im-infinity-navigation .im-destination iframe{height:100%!important;width:100%;border:0}
html body .im-root.im-infinity-navigation [data-screen=world]{padding:0!important}
html body .im-root[data-page=world] .im-universe-brand{visibility:hidden}
html body .im-root .im-screen-bar{padding:8px 22px!important;min-height:48px}
html body .im-root .im-screen-bar button{min-height:44px}
html body .im-root .im-page-content{padding-bottom:calc(165px + var(--iv-safe-bottom))}
html body .im-root .im-chat{padding-bottom:calc(155px + var(--iv-safe-bottom));position:relative}
html body .im-root .iv-i-light{padding:0;position:relative;flex-shrink:0;height:clamp(110px,22vh,200px);display:grid;align-content:center;gap:14px}
html body .im-root .iv-i-orb{width:66px;height:66px;background:radial-gradient(circle at 38% 32%,#fff 0 12%,#edf7ff 27%,#b8d5eb88 43%,#fff5d23b 58%,transparent 72%);box-shadow:0 0 30px #d2e9ff55,0 0 80px #b6d6ff22;animation:iv-light-breathe 4.8s ease-in-out infinite}
html body .im-root .iv-i-orb:before{border-color:#d6eaff50}
html body .im-root .iv-i-orb:after{border-color:#fff1ce30}
html body .im-root .iv-i-light.is-speaking .iv-i-orb{animation:iv-light-breathe .55s ease-in-out infinite}
html body .im-root .iv-i-light small{display:none}
html body .im-root .iv-i-light button{font-size:10px;min-height:44px;background:none;border:0;color:#aebfd5}
html body .im-root .im-chat-intro{margin:auto;padding:0}
html body .im-root .im-chat-intro h2{font-size:17px;letter-spacing:.18em;color:#e2efff}
html body .im-root .im-chat-intro p{display:none}
html body .im-root .im-chat-log{padding:12px 26px;flex:1}
html body .im-root .im-chat-message{background:none!important;border:0;line-height:1.65;color:#e3edfc}
html body .im-root .im-chat-composer{padding:8px 22px;background:none;border:0;flex-shrink:0}
html body .im-root .im-chat-composer textarea{background:#04101b99;border:1px solid #cde5ff30;font-size:16px}
html body .im-root.iv-type-closed .im-chat-composer{display:none}
html body .im-root .iv-i-actions{display:flex;align-items:center;justify-content:center;gap:24px;padding:10px 0}
html body .im-root .iv-i-actions button{width:48px;height:48px;min-height:48px;padding:0;background:none;border:0}
html body .im-root .iv-i-actions .iv-microphone{width:68px;height:68px;border:1px solid #eddcbb70;background:#07101b66;box-shadow:0 0 22px #daeaff08}
html body .im-root .iv-i-actions svg{width:23px;height:23px;fill:none;stroke:#e6f1ff;stroke-width:1.3;stroke-linecap:round}
html body .im-root .iv-i-tools{position:relative;margin-left:auto}
html body .im-root .iv-i-tools summary{cursor:pointer;min-height:44px;min-width:44px;display:grid;place-items:center;list-style:none;font-size:22px}
html body .im-root .iv-i-tools[open]>div{position:absolute;right:0;top:48px;z-index:10;padding:8px;background:#030b15f5;border:1px solid #cde5ff30;border-radius:18px;min-width:145px}
html body .im-root .iv-i-tools div button{display:block;white-space:nowrap;width:100%;text-align:left;font-size:12px!important}
html body .im-root .im-broker-toolbar{position:absolute!important;inset:calc(80px + var(--iv-safe-top)) 20px auto!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;display:flex!important;align-items:center;gap:10px;z-index:4}
html body .im-root .im-broker-toolbar .im-top{position:static!important;padding:0;display:flex;align-items:center}
html body .im-root .im-broker-toolbar :is(.iv-debt-indicator,.im-bot-link){display:none}
html body .im-root .im-broker-toolbar .im-map-name{font-size:9px;letter-spacing:.22em;margin:0}
html body .im-root .im-broker-toolbar .im-search{position:static!important;inset:auto!important;transform:none!important;flex:1;width:auto!important;min-width:0}
html body .im-root .im-search input{height:44px;min-height:44px;border:0;border-bottom:1px solid #c9e2ff26;border-radius:0;background:none;font-size:13px}
html body .im-root .im-broker-toolbar .im-map-filter{position:static!important;padding:6px;min-height:44px;max-width:95px;font-size:10px;background:none;border:0}
html body .im-root .im-space{inset:0!important;background:none}
html body .im-root .im-map-note h2{font-size:22px}
html body .im-root :is(.im-wallet-edge,.im-profile-edge,.im-settings-edge){display:none}
html body .im-root .im-request-edge{position:absolute;bottom:calc(160px + var(--iv-safe-bottom))!important;right:22px;min-width:44px;min-height:44px!important;font-size:11px!important;padding:10px 16px!important;background:#030b1599!important;border-color:#e0edff44!important}
html body .im-root .im-map-status{bottom:calc(162px + var(--iv-safe-bottom));left:20px;right:170px;font-size:10px;color:#abbed4}
html body .im-root .im-star .im-stellar-core{fill:#fff!important;opacity:1!important;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px #b4ddff)}
html body .im-root .im-star .im-stellar-rays{fill:#e3f3ff;opacity:.9;filter:drop-shadow(0 0 3px #badeff88)}
html body .im-root .im-star .im-stellar-halo{opacity:.9}
html body .im-root .im-distant-star{fill:#e8f5ff}
html body .im-root .im-star text{fill:#f1f7ff;stroke:#010409;paint-order:stroke;stroke-width:3px}
html body .im-root .im-star .im-star-amount{fill:#aebed3}
html body .im-root .im-star .im-star-name{opacity:1}
html body .im-root .im-sheet{bottom:calc(150px + var(--iv-safe-bottom))!important;max-height:calc(100dvh - 230px - var(--iv-safe-bottom) - var(--iv-safe-top))!important;border:1px solid #d5e8ff30;border-radius:28px!important;background:linear-gradient(145deg,#081525eb,#01060af5)!important;backdrop-filter:blur(24px);box-shadow:0 20px 80px #0008}
html body .im-root .im-sheet-content{padding:0 22px 24px}
html body .im-root .im-shade{bottom:calc(145px + var(--iv-safe-bottom))}
html body .im-root .iv-loan-trinity{max-width:340px;gap:18px 40px;margin:22px auto}
html body .im-root .iv-loan-choice{min-height:96px;background:none!important;border:0!important;border-radius:50%!important;padding:10px!important;gap:8px!important}
html body .im-root .iv-loan-choice:first-child{width:100px}
html body .im-root .iv-loan-choice span{width:44px;height:44px;display:grid;place-items:center;justify-self:center;border:1px solid #d5e8ff40;border-radius:50%;color:#f3faff;font-size:20px;text-shadow:0 0 16px #afd2ff}
html body .im-root .iv-loan-choice strong{font:12px Arial;color:#eef6ff}
html body .im-root .iv-loan-choice small{display:none}
html body .im-root .im-toast{bottom:calc(150px + var(--iv-safe-bottom));background:#071321f5;border-color:#d9ecff40}
html body .im-root .im-gate{background:transparent}
html body .im-root .im-entry-wordmark{font:28px Arial!important;letter-spacing:.2em}
html body .im-root .im-entry-tagline{font:11px Arial;color:#b2c4d9}
html body .im-root .im-entry-card{background:none!important;border:0!important;box-shadow:none!important}
.iv-ripple{position:absolute;width:22px;height:22px;margin:-11px;border:1px solid #e7f4ff88;border-radius:50%;pointer-events:none;z-index:40;animation:iv-ripple-out .65s ease-out forwards}
html body .im-root.iv-motion-paused *{animation-play-state:paused!important}
@keyframes iv-ripple-out{to{transform:scale(4.5);opacity:0}}
@keyframes iv-light-breathe{50%{transform:scale(.92);filter:brightness(1.18)}}
@media(max-height:600px){html body .im-root .iv-i-light{height:90px}html body .im-root .iv-i-orb{width:42px;height:42px}html body .im-root .iv-i-actions{padding:4px}html body .im-root .im-chat-intro h2{font-size:14px}html body .im-root .im-sheet{max-height:calc(100dvh - 205px)!important}}
@media(prefers-reduced-motion:reduce){html body .im-root *{animation:none!important;transition:none!important}}

/* Broker cleanup: one dock, separate action, map tools outside the thumb zone. */
html body #im-root .im-feed-dock{
  display:flex!important;position:absolute!important;left:50%!important;right:auto!important;
  bottom:calc(16px + env(safe-area-inset-bottom))!important;
  width:min(380px,calc(100% - 40px))!important;height:68px!important;
  transform:translateX(-50%)!important;translate:none!important;padding:4px 12px!important;
  gap:12px!important;border:1px solid #d8e9ff26!important;border-radius:38px!important;
  background:#030b1599!important;box-shadow:none!important;z-index:30;
}
html body #im-root .im-feed-dock[hidden]{display:none!important}
html body #im-root .im-feed-dock button{
  flex:1;min-width:44px!important;min-height:56px!important;padding:8px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;
  color:#bccadd!important;font:10px/1 Arial!important;translate:none!important;
}
html body #im-root .im-feed-dock button.is-selected{color:#fff!important}
html body #im-root .iv-explore-toggle{
  bottom:calc(96px + env(safe-area-inset-bottom))!important;min-height:44px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;color:#bfcfe2!important;
}
html body #im-root[data-page=map] .im-request-edge{
  left:50%!important;right:auto!important;bottom:calc(150px + env(safe-area-inset-bottom))!important;
  width:auto!important;min-width:140px!important;max-width:calc(100% - 40px)!important;
  transform:translateX(-50%)!important;translate:none!important;min-height:44px!important;
  padding:10px 18px!important;background:#e3d5b4!important;color:#171a20!important;box-shadow:none!important;
}
html body #im-root[data-page=map] .im-map-status{
  left:20px!important;right:20px!important;bottom:calc(208px + env(safe-area-inset-bottom))!important;
  margin:0!important;text-align:center!important;font:10px/1.4 Arial!important;color:#9fb1c8!important;
}
html body #im-root[data-page=map] .iv-map-controls{
  top:calc(145px + env(safe-area-inset-top))!important;bottom:auto!important;
  left:auto!important;right:20px!important;inset-inline-start:auto!important;translate:none!important;
  display:flex!important;align-items:center;gap:2px!important;padding:2px!important;
  background:#02091499!important;border:1px solid #d8e9ff20!important;box-shadow:none!important;border-radius:24px!important;
}
html body #im-root[data-page=map] .iv-map-controls button{
  padding:8px!important;min-width:44px!important;min-height:44px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;font:11px Arial!important;
}
html body #im-root[data-page=map] .iv-map-controls span{display:none!important}
@media(hover:none),(pointer:coarse){
  html body :is(.invictus-cursor-toggle,.iv-cursor-toggle,#iv-cursor-toggle,[data-invictus-cursor-toggle]){display:none!important}
}
