/* Freeport workspace. One palette for every authenticated member/admin route. */
:root{--fw-paper:#f5f3ec;--fw-card:#fffef9;--fw-ink:#202b26;--fw-muted:#70776c;--fw-gold:#c49a43;--fw-line:#dfdfd1;--fw-dark:#202c26;--fw-radius:24px;--fw-shadow:0 8px 28px #25312708}
html.fg-workspace.fg-member,html.fg-workspace.fg-admin{background:#f5f3ec!important}
html.fg-workspace.fg-member.ine-quick-page body,html.fg-workspace.fg-member.ine-quick-page body.investment-page{background:#f5f3ec!important;background-image:none!important}
html.fg-workspace.fg-member.ine-quick-page body :is(p,a,span,b,strong,small,label,button,input,select,textarea){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
html.fg-workspace.fg-member.ine-quick-page body :is(h2,h3,h4){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
html.fg-workspace.fg-member.ine-quick-page body :is(.fw-title,.fw-mine h2){font-family:Georgia,"Times New Roman",serif!important}
html.fg-workspace,html.fg-workspace body{background:var(--fw-paper)!important;background-image:none!important;color:var(--fw-ink)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;-webkit-font-smoothing:antialiased;min-height:100dvh;scroll-padding-top:110px}
html.fg-workspace{--iq-ink:#202b26;--iq-muted:#616b60;--iq-card:#fffef9;--iq-cream:#f5f3ec;--iq-line:#dfdfd1;--iq-shadow:0 8px 28px #25312708;--fg-ink:#202b26;--fg-muted:#616b60;--fg-line:#dfdfd1;--theme-bg-body:#f5f3ec;--theme-text-primary:#202b26;--theme-body-bg:#f5f3ec;--theme-header-bg:#fffef9;--theme-bottom-nav-bg:#202c26}
.fg-workspace *{box-sizing:border-box}
.fg-workspace :is(a,button,input,select,textarea){-webkit-tap-highlight-color:transparent}
.fg-workspace :is(button,input,select,textarea){font-family:inherit!important}
html.fg-workspace.fg-member main:not(.fw-dashboard) :is(p,small){font-size:12px!important;line-height:1.65!important}
html.fg-workspace.fg-member main:not(.fw-dashboard) label{font-size:13px!important}
html.fg-workspace.fg-member :is(.ledger-name b,.ledger-amount strong){font-size:14px!important}
html.fg-workspace.fg-member :is(.ledger-meta,.ledger-detail,.ledger-amount time){font-size:11px!important}
html.fg-workspace.fg-member :is(.ledger-filters,.ledger-tabs){background:#efeee4!important;box-shadow:none!important}
html.fg-workspace.fg-member :is(.ledger-filter,.ledger-tab){min-height:44px;font-size:12px!important}
.fg-workspace :is(a,button){touch-action:manipulation}
.fg-workspace :is(a,button,input,select,textarea):focus-visible{outline:3px solid #aa7d25!important;outline-offset:4px!important}
.fg-workspace :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;max-width:100%;border-radius:14px!important;min-height:46px;background:#fffefb!important;border-color:#d9dacc!important;color:var(--fw-ink)!important}
.fg-workspace input::placeholder,.fg-workspace textarea::placeholder{color:#777e72!important}
.fg-workspace :is(button,a){transition:background-color .18s,color .18s,transform .18s,box-shadow .18s}
.fg-workspace button:disabled{opacity:.5;cursor:not-allowed}
.fg-workspace :is(p,span,b,strong,h1,h2,h3){overflow-wrap:break-word}
.fg-workspace :is(h1,h2,h3){letter-spacing:-.035em}
.fg-workspace .fw-kicker{display:block;color:#88703e!important;font-size:10px!important;font-weight:750;letter-spacing:.17em!important;text-transform:uppercase;line-height:1.6}
.fg-workspace .fw-muted{color:var(--fw-muted)!important}
.fg-workspace .fw-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(28px,4vw,42px);font-weight:400;line-height:1.12;margin:6px 0 0;color:var(--fw-ink)!important}
.fg-workspace .fw-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.fg-workspace .fw-card{background:var(--fw-card)!important;border:1px solid var(--fw-line)!important;border-radius:var(--fw-radius);padding:22px;box-shadow:var(--fw-shadow)!important;min-width:0}
.fg-workspace .fw-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px}
.fg-workspace .fw-section-head h2{font-size:19px;margin:0;font-weight:650;color:var(--fw-ink)!important}
.fg-workspace .fw-text-link{color:#7b5c24!important;font-size:12px;font-weight:650;white-space:nowrap;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;gap:6px}
.fg-workspace .fw-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 18px;border:1px solid #b99143!important;border-radius:14px;background:linear-gradient(120deg,#f1daa0,#cea950)!important;color:#24271d!important;font-weight:650;font-size:13px;text-decoration:none;cursor:pointer}
.fg-workspace .fw-button.secondary{background:transparent!important;border-color:var(--fw-line)!important;color:var(--fw-ink)!important}
.fg-workspace .fw-button:active{transform:scale(.97)}
.fg-workspace .fw-empty{padding:28px 16px;text-align:center;border:1px dashed var(--fw-line);border-radius:18px;color:var(--fw-muted)!important;font-size:14px;line-height:1.7}
/* Member shell and floating iOS-inspired dock. */
html.fg-member.ine-has-global-chrome body{padding:96px 0 calc(116px + env(safe-area-inset-bottom))!important}
html.fg-member body>main,html.fg-member body>.Mobile-App-Container{background:transparent!important}
html.fg-member #ineSharedHeader{position:fixed!important;top:12px!important;left:50%!important;transform:translateX(-50%)!important;width:calc(100% - 32px)!important;max-width:1160px!important;height:66px!important;padding:10px 16px!important;margin:0!important;border:1px solid #dddecf!important;border-radius:20px!important;background:rgba(255,254,249,.94)!important;box-shadow:0 8px 30px #25312708!important;display:flex!important;align-items:center;justify-content:space-between;z-index:60;backdrop-filter:blur(14px)}
.fg-member #ineSharedHeader .ine-global-logo{width:42px!important;height:42px!important;border:0!important;background:none!important;box-shadow:none!important}
.fg-member #ineSharedHeader .ine-global-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.fg-member #ineSharedHeader .ine-global-brand b{font-family:Georgia,serif!important;font-size:17px!important;letter-spacing:.06em!important;color:var(--fw-ink)!important}
.fg-member #ineSharedHeader .ine-global-brand small{display:block;font-size:8px!important;color:#856c35!important;letter-spacing:.25em!important}
.fg-workspace .fw-action-trigger{width:44px;height:44px;display:grid;place-items:center;border:1px solid #dddecf;border-radius:15px;background:#f5f2e7;color:#715929;cursor:pointer;flex:none}
html.fg-member #ineSharedBottom,html.fg-admin .admin-bottom-nav{position:fixed!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:calc(100% - 28px)!important;max-width:490px!important;min-height:76px!important;margin:0!important;padding:7px 7px 15px!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px!important;border:1px solid #657164!important;border-radius:28px!important;background:rgba(29,41,34,.96)!important;background-image:none!important;box-shadow:0 12px 35px #16291c30,inset 0 1px 0 #ffffff15!important;backdrop-filter:blur(16px);z-index:65;animation:none!important}
html.fg-member #ineSharedBottom::after,html.fg-admin .admin-bottom-nav::after{content:"";position:absolute;bottom:5px;left:50%;transform:translateX(-50%);width:72px;height:3px;border-radius:10px;background:#e6e9d95c}
html.fg-member #ineSharedBottom a,html.fg-admin .admin-bottom-nav__item{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:8px 2px!important;min-height:51px!important;min-width:0!important;background:transparent!important;color:#d3d9ce!important;border-radius:19px!important;box-shadow:none!important;text-decoration:none;font-size:10px!important;transform:none!important}
html.fg-member #ineSharedBottom a:not(.is-active):first-child{background:transparent!important;color:#d3d9ce!important;box-shadow:none!important}
html.fg-member #ineSharedBottom a.is-active,html.fg-admin .admin-bottom-nav__item.active{background:linear-gradient(120deg,#f4dfa9,#d2b266)!important;color:#283027!important;box-shadow:inset 0 1px #fff4d6!important}
html.fg-member #ineSharedBottom a span,html.fg-admin .admin-bottom-nav__label{font-family:inherit!important;font-size:9px!important;font-weight:600!important;letter-spacing:0!important;color:inherit!important;line-height:1.3!important;opacity:1!important}
.fg-member #ineSharedBottom svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65!important}
/* All member forms, lists and page-specific panels share the quiet ivory canvas. */
html.fg-member :is(.glass-card,.mission-hero,.stage,.invite-card,.company-main,.company-side,.company-note,.certificate,.license-content,.ledger-summary,.ledger-panel,.profile-card,.settings-card,.flow-card,.wd-card,.product-card,.team-card,.forum-card){background:var(--fw-card)!important;border:1px solid var(--fw-line)!important;border-radius:24px!important;box-shadow:var(--fw-shadow)!important;color:var(--fw-ink)!important}
html.fg-member :is(.company-main,.mission-hero,.invite-card,.certificate){padding:clamp(20px,4vw,34px)!important}
html.fg-member :is(.value,.copy-row){background:#f8f7f0!important;border-color:var(--fw-line)!important}
html.fg-workspace.fg-member :is(.catalog-intro,.account-hero){background:radial-gradient(ellipse at 100% 0%,#68724d55,transparent 65%),#202c26!important;border-color:#637154!important;box-shadow:var(--fw-shadow)!important}
html.fg-workspace.fg-member .account-section{background:var(--fw-card)!important;border-color:var(--fw-line)!important;box-shadow:var(--fw-shadow)!important}
html.fg-workspace.fg-member :is(.account-summary>div,.catalog-count){background:#ffffff08!important;border-color:#d5c28d40!important}
html.fg-workspace.fg-member :is(.account-action,.account-tool,.account-list a){background:#faf9f2!important;border-color:var(--fw-line)!important;box-shadow:none!important}
html.fg-workspace.fg-member :is(.account-eyebrow,.account-status,.account-summary span){color:#e0d5b3!important;font-size:10px!important}
html.fg-workspace.fg-member .account-summary strong{color:#fff9e8!important;font-size:18px!important}
html.fg-workspace.fg-member :is(.account-action b,.account-tool b,.account-list b){font-size:12px!important;color:var(--fw-ink)!important}
html.fg-workspace.fg-member :is(.catalog-intro h2,.account-phone){color:#fff9e8!important}
html.fg-member main{min-width:0;width:100%;margin-inline:auto!important}
html.fg-member :is(th,td){border-color:var(--fw-line)!important}
html.fg-member th{background:#eeeee3!important;color:#465144!important}
html.fg-member td{background:var(--fw-card)!important;color:var(--fw-ink)!important}
/* Dashboard layout: membership wallet, photographic mine panel and product ledger. */
html.fg-member main.fw-dashboard{max-width:1160px!important;padding:8px 16px 12px!important;display:grid;gap:22px}
.fw-welcome{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:6px 2px}
.fw-welcome p{margin:8px 0 0;font-size:13px;color:var(--fw-muted)!important}
.fw-date{font-size:11px;white-space:nowrap;color:var(--fw-muted)!important}
.fw-overview{display:grid;gap:16px;min-width:0}
html.fg-member .fw-wallet{position:relative;overflow:clip;border:1px solid #53614d!important;border-radius:26px;padding:26px;background:radial-gradient(ellipse at 100% 0%,#62684855,transparent 65%),#202c26!important;color:#fff9e8!important;min-height:275px;box-shadow:0 14px 28px #1d2d2414!important}
.fw-wallet::after{content:"";width:220px;height:220px;position:absolute;right:-115px;top:-65px;border:1px solid #d7b56a40;border-radius:50%;box-shadow:0 0 0 28px #d7b56a08,0 0 0 58px #d7b56a06;pointer-events:none}
html.fg-member .fw-wallet .fw-kicker{color:#d6c391!important}
.fw-wallet-head{display:flex;justify-content:space-between;align-items:center;gap:8px;position:relative;z-index:1}
.fw-balance-toggle{display:flex;align-items:center;gap:7px;border:0;background:none;color:#e3d3aa;font-size:11px;cursor:pointer;padding:10px;min-height:44px}
.fw-balance{font-size:clamp(30px,5vw,42px);font-weight:500;letter-spacing:-.055em;line-height:1.2;display:block;margin:13px 0 7px;font-variant-numeric:tabular-nums;color:#fff9e8!important;overflow-wrap:anywhere}
html.fg-member .fw-wallet p{font-size:12px;color:#c2ccbb!important;margin:0}
.fw-wallet-footer{margin-top:30px;padding-top:18px;border-top:1px solid #d5c28d30;display:flex;align-items:center;justify-content:space-between;gap:16px}
.fw-wallet-footer strong{font-size:17px;display:block;margin-top:6px;color:#f2ddaa!important}
.fw-wallet-footer a{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;border:1px solid #ddc28370;color:#f1dfb5;text-decoration:none;font-size:22px}
.fw-mine{border-radius:26px;position:relative;overflow:hidden;min-height:225px;background:#333f31 url('../images/freeport-mine-hero.png') center 60%/cover;display:flex;align-items:flex-end;padding:25px}
.fw-mine::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#16221bea,transparent 100%)}
.fw-mine-copy{position:relative;z-index:1;max-width:360px}
html.fg-member .fw-mine h2{font-family:Georgia,serif;font-weight:400;font-size:30px;line-height:1.12;color:#fff7e2!important;margin:9px 0}
html.fg-member .fw-mine p{color:#f0e7d2!important;font-size:12px;line-height:1.6;margin:0}
html.fg-member .fw-mine .fw-kicker{color:#f2d99c!important}
.fw-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.fw-quick a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px;text-decoration:none;border:1px solid var(--fw-line);border-radius:20px;background:var(--fw-card);padding:17px 6px;color:var(--fw-ink)!important;font-size:11px;font-weight:650;min-width:0;text-align:center;box-shadow:var(--fw-shadow)}
.fw-quick a>span:first-child{height:38px;width:38px;display:grid;place-items:center;border-radius:13px;background:#f3ecd7;color:#876727}
.fw-content-grid{display:grid;gap:18px;min-width:0}
.fw-product{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:19px 0;text-decoration:none;border-top:1px solid var(--fw-line);color:var(--fw-ink)!important}
.fw-product:last-child{padding-bottom:0}
.fw-product-index{display:grid;place-items:center;width:40px;height:45px;border:1px solid #ded8c4;border-radius:12px;background:linear-gradient(145deg,#f9f1d9,#eee4c7);color:#8b713c;font-family:Georgia,serif;font-size:19px}
.fw-product b{display:block;font-size:14px;font-weight:650;margin-bottom:6px}
.fw-product small{font-size:11px;color:var(--fw-muted)!important}
.fw-product-amount{text-align:right}
.fw-product-amount strong{display:block;font-size:13px;color:#79602c!important;margin-bottom:6px;font-weight:650}
.fw-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}
.fw-services a{display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px 3px;text-align:center;text-decoration:none;color:var(--fw-ink)!important;font-size:11px;line-height:1.5}
.fw-services .fw-icon{width:24px;height:24px;color:#8c7139}
.fw-task{padding:15px 0;border-top:1px solid var(--fw-line);display:flex;align-items:center;justify-content:space-between;gap:15px}
.fw-task b{display:block;font-size:13px;margin-bottom:5px}
.fw-task small{font-size:11px;color:var(--fw-muted)!important}
.fw-task form{margin:0;flex:none}
.fw-task .fw-button{padding:9px 12px;font-size:11px}
.fw-banner-rail{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.fw-banner-rail a{flex:0 0 min(85%,420px);scroll-snap-align:start;border-radius:20px;overflow:hidden;text-decoration:none;background:var(--fw-card);border:1px solid var(--fw-line);color:var(--fw-ink)}
.fw-banner-rail img{width:100%;height:170px;object-fit:cover;display:block}
.fw-banner-rail b{display:block;padding:14px;font-size:13px}
.fw-flash{padding:16px 20px;background:#edf4e9;border:1px solid #c4d5bb;border-radius:16px;font-size:14px;color:#325b35!important}
.fw-flash.error{background:#fff0ed;color:#9b3627!important;border-color:#e9c1b8}
/* Admin: an ivory operations desk framed by a deep charcoal sidebar. */
html.fg-admin .admin-shell{color:var(--fw-ink)!important;background:var(--fw-paper)!important}
html.fg-admin .admin-topbar{background:rgba(255,254,249,.95)!important;border-bottom:1px solid var(--fw-line)!important;box-shadow:none!important;backdrop-filter:blur(12px)}
html.fg-admin .admin-topbar :is(h1,p){color:var(--fw-ink)!important}
html.fg-admin .admin-sidebar{background:#202c26!important;border-color:#596248!important;box-shadow:none!important}
html.fg-admin .brand-tile{background:transparent!important;box-shadow:none!important;border-bottom:1px solid #d3ba742b;border-radius:0!important;padding-inline:0!important}
html.fg-admin .admin-menu-link{border-radius:14px!important;color:#d4dcce!important;padding:10px!important;min-height:54px}
html.fg-admin .admin-menu-copy b{color:inherit!important;font-size:12px!important;font-weight:600!important}
html.fg-admin .admin-menu-copy span{color:#a4b29d!important;font-size:10px!important}
html.fg-admin .admin-menu-link>span:first-child{background:#ffffff08!important;color:#c5b47e!important;border:1px solid #c5b47e20}
html.fg-admin .admin-menu-link.active{background:linear-gradient(120deg,#e8d5a5,#c5a55e)!important;color:#243124!important;box-shadow:none!important}
html.fg-admin .admin-menu-link.active .admin-menu-copy span{color:#495438!important}
html.fg-admin .admin-page-hero{border-radius:24px!important;border:1px solid #54634b!important;background:linear-gradient(95deg,#202c26 38%,#202c26a8),url('../images/freeport-mine-hero.png') center 60%/cover!important;box-shadow:none!important;padding:24px!important}
html.fg-admin .admin-page-hero::before,html.fg-admin .admin-page-hero::after{display:none!important}
html.fg-admin .admin-page-hero h2{font-family:Georgia,serif;font-size:30px!important;font-weight:400!important;color:#fff8e6!important}
html.fg-admin .admin-help-list li{background:transparent!important;border:0!important;color:#dce3d1!important;font-weight:400!important;font-size:11px!important;padding-left:0!important}
html.fg-admin .admin-help-list li::before{display:none!important}
html.fg-admin :is(.admin-card,.stat-card,.item-card,.user-card,.form-card,.data-card,.table-card,.modal-content){background:var(--fw-card)!important;border:1px solid var(--fw-line)!important;border-radius:22px!important;box-shadow:var(--fw-shadow)!important;color:var(--fw-ink)!important}
html.fg-admin .admin-shell :is(.admin-card,.stat-card,.item-card,.user-card,.form-card,.data-card,.table-card,.modal-content) :is(h1,h2,h3,h4,strong,label){color:var(--fw-ink)!important}
html.fg-admin .admin-shell :is(.admin-card,.stat-card) :is(.text-gray-400,.text-gray-500,.text-gray-600){color:#66715f!important}
html.fg-admin .admin-shell [class*="text-[#4b2112]"],html.fg-admin .admin-shell [class*="text-[#5a2a16]"]{color:var(--fw-ink)!important}
html.fg-admin .admin-quick-actions{padding:18px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding-inline:0!important}
html.fg-admin .admin-quick-actions h3{color:var(--fw-ink)!important;font-size:12px!important;letter-spacing:.1em!important}
html.fg-admin .admin-quick-actions-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html.fg-admin .admin-quick-action{background:var(--fw-card)!important;border:1px solid var(--fw-line)!important;border-radius:16px!important;box-shadow:none!important;min-height:70px;color:var(--fw-ink)!important}
html.fg-admin .admin-quick-action{display:flex;align-items:center;gap:10px;padding:12px}
html.fg-admin .admin-quick-action-icon{display:grid;place-items:center;flex:none;width:34px;height:38px;border-radius:12px}
html.fg-admin .admin-quick-actions-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px}
html.fg-admin .admin-quick-action-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
html.fg-admin .admin-quick-action-copy b{font-size:11px;line-height:1.4;font-weight:650}
html.fg-admin .admin-quick-action-copy span{font-size:9px;color:#70776c!important}
html.fg-admin .admin-quick-action-arrow{display:none}
html.fg-admin .admin-shell .admin-card .bg-gradient-to-r{background:linear-gradient(120deg,#26382c,#576343)!important}
html.fg-admin .admin-shell .admin-card .bg-gradient-to-r :is(h3,p,strong){color:#fff9e8!important}
html.fg-admin .btn-primary{background:linear-gradient(120deg,#e8d5a5,#c5a55e)!important;color:#263324!important;border-color:#b59b60!important;box-shadow:none!important}
html.fg-admin .btn-outline{background:#f5f4ea!important;border-color:#d8dacb!important;color:#405035!important}
html.fg-admin .admin-menu-title{color:#b6bd9f!important}
html.fg-admin .stat-card h3{font-size:clamp(16px,2.2vw,24px)!important}
html.fg-admin .admin-quick-action-copy :is(b,span){color:var(--fw-ink)!important}
html.fg-admin .admin-quick-action-icon,html.fg-admin .admin-quick-actions-icon{background:#f1ead5!important;color:#856a30!important;box-shadow:none!important}
html.fg-admin table{color:var(--fw-ink)!important}
html.fg-admin :is(th,td){border-color:#e0e2d6!important;white-space:normal}
html.fg-admin th{background:#eeeee4!important;color:#53604c!important;font-weight:650!important;font-size:11px!important}
html.fg-admin td{background:#fffef9!important;color:#303e2d!important;font-size:12px!important}
html.fg-admin tr:hover td{background:#f6f5ed!important}
html.fg-admin .admin-shell main{padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}
html.fg-admin .admin-shell main>div,html.fg-admin .admin-card{min-width:0;max-width:100%}
.fg-workspace .fw-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.fg-workspace .fw-table-scroll>table{min-width:640px;width:100%}
/* Native quick-action sheet: keyboard focus, Escape and safe-area aware. */
.fg-workspace .fw-sheet{padding:0!important;margin:auto auto calc(16px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:510px;max-height:85dvh;overflow:auto;background:#fffef9!important;border:1px solid #dedfcf!important;border-radius:30px!important;color:var(--fw-ink)!important;box-shadow:0 24px 80px #14201740}
.fg-workspace .fw-sheet::backdrop{background:#14201878;backdrop-filter:blur(3px)}
.fw-sheet-handle{width:40px;height:4px;border-radius:8px;margin:12px auto 0;background:#d6d8c9}
.fw-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 24px 8px}
.fw-sheet-head h2{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:3px 0;color:var(--fw-ink)!important}
.fw-sheet-close{display:grid;place-items:center;width:44px;height:44px;background:#f0f1e9;border:0;border-radius:50%;font-size:24px;color:var(--fw-ink);cursor:pointer}
.fw-sheet-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:20px 24px 28px}
.fw-sheet-links a{min-height:86px;background:#f5f4ec;border:1px solid #e3e2d6;border-radius:18px;display:flex;flex-direction:column;gap:10px;padding:17px;text-decoration:none;color:var(--fw-ink)!important;font-size:13px}
.fw-sheet-links .fw-icon{color:#927239}
.fw-popup-copy{padding:6px 24px 24px;font-size:14px;line-height:1.75}
.fw-popup-copy img{width:100%;max-height:240px;object-fit:cover;border-radius:18px;margin-bottom:16px}
.fw-popup-copy .fw-button{margin:5px 4px 0 0}
/* Popup content sits on a light sheet; override inherited gold/white theme text. */
html.fg-member body .fg-workspace .fw-sheet,
html.fg-member body .fw-sheet#fwHomePopup{color:#2b2417!important;-webkit-text-fill-color:#2b2417!important}
html.fg-member body .fw-sheet#fwHomePopup .fw-sheet-head h2{color:#2b2417!important;-webkit-text-fill-color:#2b2417!important;text-shadow:none!important;opacity:1!important}
html.fg-member body .fw-sheet#fwHomePopup .fw-kicker{color:#84651e!important;-webkit-text-fill-color:#84651e!important;opacity:1!important}
html.fg-member body .fw-sheet#fwHomePopup .fw-popup-copy p{color:#685b3e!important;-webkit-text-fill-color:#685b3e!important;opacity:1!important}
html.fg-member body .fw-sheet#fwHomePopup .fw-sheet-close{color:#273128!important;-webkit-text-fill-color:#273128!important;background:#f0f1e9!important;border:2px solid #a77916!important}
html.fg-member body .fw-sheet#fwHomePopup .fw-button{color:#292617!important;-webkit-text-fill-color:#292617!important;opacity:1!important}
html.fg-member body .fw-sheet#fwHomePopup .fw-button:not(.secondary){background:linear-gradient(135deg,#f5da91,#d5aa49)!important;border-color:#b78a25!important}
html.fg-member body .fw-sheet#fwHomePopup .fw-button.secondary{background:#fffef9!important;border-color:#d9d7c8!important}
@keyframes fw-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.fg-workspace :is(.fw-overview,.fw-content-grid,.admin-page-hero){animation:fw-arrive .42s ease-out both}
.fg-workspace .animate-pulse,.fg-workspace .animate-bounce,.fg-workspace .animate-spin{animation:none!important}
.fg-workspace .fade-up{opacity:1!important;transform:none!important}
@media(hover:hover){.fw-quick a:hover,.fw-services a:hover,.fw-product:hover,.fw-sheet-links a:hover{background:#eeeddf!important}.fw-button:hover{box-shadow:0 6px 18px #80692720}.fg-admin .admin-menu-link:not(.active):hover{background:#ffffff0d!important}}
@media(min-width:700px){.fw-overview{grid-template-columns:1fr 1.12fr}.fw-content-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.fw-quick a{flex-direction:row;padding:18px;font-size:13px}.fw-mine{min-height:275px}.fw-services{gap:18px 10px}.fw-sheet{margin:auto}.fg-member #ineSharedHeader{padding-inline:22px!important}html.fg-member main.fw-dashboard{padding-top:20px!important}html.fg-admin .admin-quick-actions-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(min-width:1024px){html.fg-admin .admin-bottom-nav{display:none!important}html.fg-admin .admin-shell main{padding-bottom:36px!important}.fw-wallet{padding:30px!important}.fw-mine h2{font-size:38px!important}.fw-date{font-size:12px}.fw-content-grid .fw-card{padding:26px}}
@media(max-width:699px){.fw-date{display:none}.fw-welcome .fw-title{font-size:30px}.fw-mine{min-height:195px}.fw-mine h2{font-size:27px!important}.fw-wallet{min-height:255px!important}.fg-workspace .fw-card{padding:18px}.fw-product{gap:9px;grid-template-columns:34px minmax(0,1fr) auto}.fw-product-index{width:32px;height:39px;font-size:16px}.fw-product b{font-size:12px}.fw-product-amount strong{font-size:12px}.fw-product small{font-size:10px}.fg-admin .admin-sidebar{max-width:calc(100vw - 32px)!important}.fg-admin .admin-help-list{grid-template-columns:1fr!important}.fg-admin .admin-topbar h1{font-size:17px!important}.fg-admin .admin-page-hero{padding:20px!important}.fg-admin .admin-card strong{overflow-wrap:anywhere}.fg-admin .admin-quick-action:last-child{grid-column:1/-1}}
@media(max-width:699px){html.fg-admin article.admin-card>.flex.items-start{display:flex;flex-direction:column-reverse;gap:12px!important}html.fg-admin article.admin-card>.flex.items-start>.min-w-0{width:100%}html.fg-admin article.admin-card>.flex.items-start>.min-w-0 :is(strong,h3){font-size:17px!important;line-height:1.35!important}}
@media(prefers-reduced-motion:reduce){html.fg-workspace *,html.fg-workspace *::before,html.fg-workspace *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Unified member interiors for every service launched from the dashboard. */
html.fg-member.ine-quick-page body > main:not(.fw-dashboard),
html.fg-member.ine-quick-page body > .flow-app,
html.fg-member.ine-quick-page body > .Mobile-App-Container {
    width:min(100% - 32px,1160px)!important;
    max-width:1160px!important;
    min-height:auto!important;
    margin:0 auto!important;
    padding:8px 0 28px!important;
    background:transparent!important;
    color:var(--fw-ink)!important;
    box-shadow:none!important;
}

html.fg-member.ine-quick-page :is(
    .bonus-shell,.invite-studio,.spin-shell,.company-shell,.mission-shell,
    .team-content,.subscription-content,.flow-app,.profile-shell,.legal-shell,
    .download-shell,.support-shell,.task-shell,.commission-shell
) {
    width:100%!important;
    max-width:1160px!important;
    margin-inline:auto!important;
    background:transparent!important;
    color:var(--fw-ink)!important;
    box-shadow:none!important;
}

html.fg-member.ine-quick-page :is(
    .spin-top,.company-head,.mission-head,.flow-header,.team-header,
    body > .sticky.top-0,.page-header,.local-header,.bonus-local-head
) {
    position:relative!important;
    top:auto!important;
    min-height:72px!important;
    margin:0 0 16px!important;
    padding:14px 18px!important;
    border:1px solid var(--fw-line)!important;
    border-radius:22px!important;
    background:var(--fw-card)!important;
    color:var(--fw-ink)!important;
    box-shadow:var(--fw-shadow)!important;
    backdrop-filter:none!important;
}

html.fg-member.ine-quick-page :is(
    .spin-top,.company-head,.mission-head,.flow-header,.team-header,
    body > .sticky.top-0,.page-header,.local-header
) :is(h1,h2,h3,p,span,strong) {
    color:var(--fw-ink)!important;
    -webkit-text-fill-color:var(--fw-ink)!important;
}

html.fg-member.ine-quick-page :is(
    .spin-icon-btn,.company-back,.mission-back,.mission-share,.flow-back,
    body > .sticky.top-0 button,.back-btn,.header-back
) {
    display:grid!important;
    place-items:center!important;
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    border:1px solid var(--fw-line)!important;
    border-radius:15px!important;
    background:#f4f1e7!important;
    color:#755b27!important;
    box-shadow:none!important;
}

html.fg-member.ine-quick-page :is(
    .spin-card,.reward-row,.invite-card,.share-field,.guide,.invite-note,
    .company-main,.company-side,.company-note,.value,.mission-hero,.stage,
    .subscription-card,.subscription-item,.empty-state,.filter-tabs,
    .team-card,.team-stat,.team-member-card,.glass-card,
    body > div.max-w-md > a,.task-card,.commission-card
) {
    border-color:var(--fw-line)!important;
    background:var(--fw-card)!important;
    color:var(--fw-ink)!important;
    box-shadow:var(--fw-shadow)!important;
}

html.fg-member.ine-quick-page :is(
    .spin-card,.invite-card,.company-main,.company-side,.company-note,
    .mission-hero,.stage,.subscription-card,.subscription-item,.empty-state,
    .team-card,.team-stat,.team-member-card,.glass-card,body > div.max-w-md > a
) {
    border:1px solid var(--fw-line)!important;
    border-radius:24px!important;
}

html.fg-member.ine-quick-page :is(
    .spin-card,.invite-card,.company-main,.company-side,.company-note,
    .mission-hero,.stage,.subscription-card,.subscription-item,.empty-state,
    .team-card,.team-stat,.team-member-card,.glass-card
) :is(h1,h2,h3,h4,b,strong,label) {
    color:var(--fw-ink)!important;
    -webkit-text-fill-color:var(--fw-ink)!important;
}

html.fg-member.ine-quick-page :is(
    .spin-card,.invite-card,.company-main,.company-side,.company-note,
    .mission-hero,.stage,.subscription-card,.subscription-item,.empty-state,
    .team-card,.team-stat,.team-member-card,.glass-card
) :is(p,small,.text-gray-400,.text-gray-500,.text-gray-600) {
    color:var(--fw-muted)!important;
    -webkit-text-fill-color:var(--fw-muted)!important;
}

/* Feature heroes use the same dark mineral panel as the dashboard wallet. */
html.fg-member.ine-quick-page :is(.invite-hero,.spin-hero,.catalog-intro,.account-hero) {
    border:1px solid #53614d!important;
    border-radius:26px!important;
    background:radial-gradient(ellipse at 100% 0%,#62684855,transparent 65%),#202c26!important;
    color:#fff9e8!important;
    box-shadow:0 14px 28px #1d2d2414!important;
}

html.fg-member.ine-quick-page :is(.invite-hero,.spin-hero,.catalog-intro,.account-hero)
    :is(h1,h2,h3,b,strong) {
    color:#fff9e8!important;
    -webkit-text-fill-color:#fff9e8!important;
}

html.fg-member.ine-quick-page :is(.invite-hero,.spin-hero,.catalog-intro,.account-hero)
    :is(p,small,span) {
    color:#d8dfd1!important;
    -webkit-text-fill-color:#d8dfd1!important;
}

html.fg-member.ine-quick-page :is(
    .copy-btn,.share-native,.claim-btn,.spin-btn,.flow-header-action,
    button[type=submit],a.btn-primary,.btn-primary
) {
    min-height:46px!important;
    border:1px solid #b99143!important;
    border-radius:14px!important;
    background:linear-gradient(120deg,#f1daa0,#cea950)!important;
    color:#24271d!important;
    -webkit-text-fill-color:#24271d!important;
    box-shadow:none!important;
}

html.fg-member.ine-quick-page :is(.filter-tabs,.subscription-filter) {
    padding:5px!important;
    border:1px solid var(--fw-line)!important;
    border-radius:17px!important;
    background:#eeede3!important;
    box-shadow:none!important;
}

html.fg-member.ine-quick-page :is(.filter-tab,.tab-btn) {
    min-height:42px!important;
    border-radius:12px!important;
    color:var(--fw-muted)!important;
}

html.fg-member.ine-quick-page :is(.filter-tab.is-active,.filter-tab.active,.tab-btn.active) {
    background:var(--fw-card)!important;
    color:var(--fw-ink)!important;
    box-shadow:0 2px 8px #2531270d!important;
}

@media(max-width:699px) {
    html.fg-member.ine-quick-page body > main:not(.fw-dashboard),
    html.fg-member.ine-quick-page body > .flow-app,
    html.fg-member.ine-quick-page body > .Mobile-App-Container {
        width:calc(100% - 24px)!important;
        padding-top:4px!important;
    }
    html.fg-member.ine-quick-page :is(.invite-hero,.spin-hero,.catalog-intro,.account-hero) {
        border-radius:24px!important;
    }
}

/* Lightweight motion: GPU-friendly transforms, activated only near viewport. */
html.fg-member.ine-quick-page.fw-motion-ready .fw-motion-item {
    opacity:0;
    transform:translate3d(0,14px,0) scale(.992);
    transition:
        opacity .46s cubic-bezier(.22,.75,.25,1),
        transform .46s cubic-bezier(.22,.75,.25,1);
    transition-delay:calc(var(--fw-motion-order,0) * 35ms);
    will-change:opacity,transform;
}

html.fg-member.ine-quick-page.fw-motion-ready .fw-motion-item.is-visible {
    opacity:1;
    transform:translate3d(0,0,0) scale(1);
    will-change:auto;
}

html.fg-member.ine-quick-page :is(
    .spin-icon-btn,.company-back,.mission-back,.mission-share,.flow-back,
    .copy-btn,.share-native,.claim-btn,.spin-btn,.flow-header-action,
    .filter-tab,.tab-btn,.fw-button,.back-btn,.header-back
) {
    transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease!important;
}

html.fg-member.ine-quick-page :is(
    .spin-icon-btn,.company-back,.mission-back,.mission-share,.flow-back,
    .copy-btn,.share-native,.claim-btn,.spin-btn,.flow-header-action,
    .filter-tab,.tab-btn,.fw-button,.back-btn,.header-back
):active {
    transform:scale(.965)!important;
}

html.fg-member.ine-quick-page :is(.share-icon,.stage-no,.guide-no,.flow-heading-icon,.empty-icon) {
    transition:transform .25s ease!important;
}

html.fg-member.ine-quick-page :is(.share-field,.stage,.subscription-item,.subscription-card,.team-member-card):active
    :is(.share-icon,.stage-no,.guide-no,.flow-heading-icon,.empty-icon) {
    transform:scale(.92) rotate(-3deg)!important;
}

html.fg-member.ine-quick-page :is(.invite-hero,.spin-hero,.catalog-intro,.account-hero)::before {
    animation:fwHeroGlow 8s ease-in-out infinite alternate!important;
}

html.fg-member.ine-quick-page :is(
    .copy-btn,.share-native,.claim-btn,.spin-btn,.flow-header-action,
    button[type=submit],a.btn-primary,.btn-primary
) {
    position:relative;
    overflow:hidden;
}

html.fg-member.ine-quick-page :is(
    .copy-btn,.share-native,.claim-btn,.spin-btn,.flow-header-action,
    button[type=submit],a.btn-primary,.btn-primary
)::after {
    content:"";
    position:absolute;
    inset:-80% auto -80% -45%;
    width:28%;
    pointer-events:none;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.48),transparent);
    transform:rotate(18deg) translate3d(0,0,0);
    animation:fwButtonShine 6.5s ease-in-out infinite;
}

@media(hover:hover) {
    html.fg-member.ine-quick-page :is(.invite-card,.spin-card,.company-main,.company-side,.company-note,.stage,.subscription-item,.subscription-card,.team-card,.team-member-card,.glass-card) {
        transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important;
    }
    html.fg-member.ine-quick-page :is(.invite-card,.spin-card,.company-main,.company-side,.company-note,.stage,.subscription-item,.subscription-card,.team-card,.team-member-card,.glass-card):hover {
        transform:translate3d(0,-3px,0);
        border-color:#cdbd91!important;
        box-shadow:0 12px 30px #25312710!important;
    }
}

@keyframes fwHeroGlow {
    from{opacity:.58;transform:translate3d(-1%,0,0) scale(1)}
    to{opacity:.9;transform:translate3d(1%,0,0) scale(1.025)}
}

@keyframes fwButtonShine {
    0%,72%{left:-45%}
    92%,100%{left:125%}
}

@media(prefers-reduced-motion:reduce) {
    html.fg-member.ine-quick-page.fw-motion-ready .fw-motion-item {
        opacity:1!important;
        transform:none!important;
        transition:none!important;
    }
    html.fg-member.ine-quick-page :is(.invite-hero,.spin-hero,.catalog-intro,.account-hero)::before,
    html.fg-member.ine-quick-page :is(.copy-btn,.share-native,.claim-btn,.spin-btn,.flow-header-action,button[type=submit],a.btn-primary,.btn-primary)::after {
        animation:none!important;
    }
}

/* Dashboard quick actions: deposit, withdrawal, products and activity. */
html.fg-member.ine-route-rechargechannel body.rc-page,
html.fg-member.ine-route-withdrawal body.withdrawal-page,
html.fg-member.ine-route-penarikan-cepat body.withdrawal-page,
html.fg-member.ine-route-product body.investment-page,
html.fg-member.ine-route-finance body {
    padding-inline:0!important;
    background:var(--fw-paper)!important;
    background-image:none!important;
    color:var(--fw-ink)!important;
}

html.fg-member :is(.rc-shell,.wd-shell,.flow-app,.ledger-page) {
    width:min(100% - 32px,1160px)!important;
    max-width:1160px!important;
    margin-inline:auto!important;
    padding:8px 0 30px!important;
    background:transparent!important;
    color:var(--fw-ink)!important;
    box-shadow:none!important;
}

html.fg-member :is(.rc-header,.flow-header,.ledger-head) {
    position:relative!important;
    top:auto!important;
    min-height:72px!important;
    margin:0 0 16px!important;
    padding:14px 18px!important;
    border:1px solid var(--fw-line)!important;
    border-radius:22px!important;
    background:var(--fw-card)!important;
    color:var(--fw-ink)!important;
    box-shadow:var(--fw-shadow)!important;
    backdrop-filter:none!important;
}

html.fg-member :is(.rc-header,.flow-header,.ledger-head) :is(h1,h2,h3,b,strong) {
    color:var(--fw-ink)!important;
    -webkit-text-fill-color:var(--fw-ink)!important;
}

html.fg-member :is(.rc-header,.flow-header,.ledger-head) :is(p,small,span) {
    color:var(--fw-muted)!important;
    -webkit-text-fill-color:var(--fw-muted)!important;
}

html.fg-member :is(.rc-back,.flow-back,.wd-back) {
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    border:1px solid var(--fw-line)!important;
    border-radius:15px!important;
    background:#f4f1e7!important;
    color:#755b27!important;
    box-shadow:none!important;
}

html.fg-member :is(.rc-hero,.wd-intro,.catalog-intro) {
    margin:0 0 18px!important;
    border:1px solid #53614d!important;
    border-radius:26px!important;
    background:radial-gradient(ellipse at 100% 0%,#62684855,transparent 65%),#202c26!important;
    color:#fff9e8!important;
    box-shadow:0 14px 28px #1d2d2414!important;
}

html.fg-member :is(.rc-hero,.wd-intro,.catalog-intro) :is(h1,h2,h3,b,strong) {
    color:#fff9e8!important;
    -webkit-text-fill-color:#fff9e8!important;
}

html.fg-member :is(.rc-hero,.wd-intro,.catalog-intro) :is(p,small,span) {
    color:#d8dfd1!important;
    -webkit-text-fill-color:#d8dfd1!important;
}

html.fg-member :is(
    .rc-panel,.rc-method,.wd-card,.product-card,.ledger-list,.ledger-empty,
    .ledger-row,.product-filter,.catalog-toolbar
) {
    border-color:var(--fw-line)!important;
    background:var(--fw-card)!important;
    color:var(--fw-ink)!important;
    box-shadow:var(--fw-shadow)!important;
}

html.fg-member :is(.rc-panel,.wd-card,.product-card,.ledger-list,.ledger-empty) {
    border:1px solid var(--fw-line)!important;
    border-radius:24px!important;
}

html.fg-member :is(.rc-panel,.rc-method,.wd-card,.product-card,.ledger-row,.ledger-empty)
    :is(h1,h2,h3,h4,b,strong,label,dd) {
    color:var(--fw-ink)!important;
    -webkit-text-fill-color:var(--fw-ink)!important;
}

html.fg-member :is(.rc-panel,.rc-method,.wd-card,.product-card,.ledger-row,.ledger-empty)
    :is(p,small,span,dt,.product-label,.ledger-meta,.ledger-detail) {
    color:var(--fw-muted)!important;
    -webkit-text-fill-color:var(--fw-muted)!important;
}

html.fg-member .rc-content {
    grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr)!important;
    gap:18px!important;
    margin-top:0!important;
}

html.fg-member .rc-method {
    border:1px solid var(--fw-line)!important;
    border-radius:18px!important;
    box-shadow:none!important;
}

html.fg-member :is(.rc-method-icon,.rc-step-no,.product-arrow,.ledger-icon) {
    background:#f3ecd7!important;
    color:#876727!important;
}

html.fg-member .wd-header {display:none!important}
html.fg-member .wd-grid {gap:18px!important}
html.fg-member .wd-side-stack {gap:18px!important}
html.fg-member .wd-submit {
    border:1px solid #b99143!important;
    background:linear-gradient(120deg,#f1daa0,#cea950)!important;
    color:#24271d!important;
    -webkit-text-fill-color:#24271d!important;
    box-shadow:none!important;
}

html.fg-member .product-list {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
html.fg-member .product-card {margin:0!important;padding:22px!important}
html.fg-member .product-card .product-value.is-profit,
html.fg-member .ledger-row.credit .ledger-amount strong {color:#47724f!important;-webkit-text-fill-color:#47724f!important}
html.fg-member .ledger-row.debit .ledger-amount strong {color:#a34c3f!important;-webkit-text-fill-color:#a34c3f!important}

html.fg-member .ledger-toolbar {
    position:relative!important;
    top:auto!important;
    padding:0 0 14px!important;
    background:transparent!important;
}
html.fg-member .ledger-filters {padding:5px!important;border:1px solid var(--fw-line)!important;border-radius:18px!important;background:#eeede3!important}
html.fg-member .ledger-filter {min-height:42px!important;border:0!important;background:transparent!important;color:var(--fw-muted)!important}
html.fg-member .ledger-filter.active {background:var(--fw-card)!important;color:var(--fw-ink)!important;box-shadow:0 2px 8px #2531270d!important}
html.fg-member .ledger-body {padding:0!important}
html.fg-member .ledger-row {border-bottom:1px solid var(--fw-line)!important;box-shadow:none!important}

@media(max-width:760px) {
    html.fg-member :is(.rc-shell,.wd-shell,.flow-app,.ledger-page) {width:calc(100% - 24px)!important;padding-top:4px!important}
    html.fg-member .rc-content {grid-template-columns:1fr!important}
    html.fg-member .product-list {grid-template-columns:1fr!important}
    html.fg-member :is(.rc-hero,.wd-intro,.catalog-intro) {border-radius:24px!important}
}
