<form id="FateUtilities" style="background:var(--fco-sheet-background-colour); color:var(--fco-sheet-text-colour) height:100%; padding-left:5px; padding-right:10p    x" onsubmit="event.preventDefault();">
<div style="height:100%; display:flex; flex-direction:column"> <!--Container div for absolutely everything-->
    <div> <!-- Container div for the Nav bar-->
        <nav class="navigation foo">
            <i style="float:left; width:5px; border-bottom:1px solid; border-bottom-color:var(--fco-accent-colour); text-align:center; font-size:x-large; padding-top: 15px; padding-bottom:15px">&nbsp</i>
            <a class="item fu_item_1" data-tab="aspects"><b title="{{localize 'fate-core-official.AspectsFatePoints'}}" i icon class="fas fa-theater-masks"></b></a>
            <a class="item fu_item_2" data-tab="tracks"><b title="{{localize 'fate-core-official.CharacterTracks'}}" i icon class="fas fa-user-injured"></b></a>
            <a class="item fu_item_3" data-tab="scene"><b title="{{localize 'fate-core-official.SceneNotes'}}" i icon class="fas fa-book"></b></a>                
            <a class="item fu_item_4" data-tab="rolls"><b title="{{localize 'fate-core-official.RollHistory'}}" i icon class="fas fa-dice"></b></a>                
            <a class="item fu_item_5" data-tab="game_info"><b title="{{localize 'fate-core-official.GameInformation'}}" i icon class="fas fa-feather"></b></a>
            <div style="float:right"><button type="button" class="fu_button" style="border:none; background-color:transparent; font-size:xx-small; width:25px; color:var(--fco-sheet-text-colour)" title="Shrink Font" id="fu_shrink_font">A</button><button type="button" class="fu_button" style="color:var(--fco-sheet-text-colour); font-size:medium; border:none; background-color: transparent; width:25px; vertical-align:bottom" id="fu_grow_font" title="Grow Font">A</button></div>
            <div style="width:100%; border-bottom:1px solid; border-bottom-color:var(--fco-accent-colour); text-align:center; font-size:x-large; padding: 15px;">&nbsp</div>
        </nav>
    </div>
    <div style="display:flex; overflow-y:auto; flex-direction:row"><!-- Container div for the main Fate Utilities content.-->        
       <div style="width:100%"> <!-- This div contains the main content pane-->
             <section class="utilities-body">
                 <!----------------------BEGIN Aspects Tab-->
                    <div id="fu_aspects_tab" class="tab aspects" data-tab="aspects" style="padding:10px;">
                        <button type="button" style="color:var(--fco-sheet-text-colour); width:25px; height:25px; background-color:Transparent; border:none" name="maximiseAspects" id="maximiseAllAspects" title="{{localize 'fate-core-official.MaximiseAll'}}" i icon class="fas fa-expand fu_button"></button>
                        <button type="button" style="color:var(--fco-sheet-text-colour); width:25px; height:25px; background-color:Transparent; border:none" name="minimiseAspects" id="minimiseAllAspects" title="{{localize 'fate-core-official.MinimiseAll'}}" i icon class="fas fa-compress fu_button"></button>
                        <div id="aspects" name = "aspects" style="background-color:var(fco-sheet-background-colour); max-height:calc({{height}}px - 175px); overflow-y:auto">                
                            <table style="color:var(--fco-sheet-text-colour); font-size:{{fontSize}}pt; border:none;">
                                {{#each GMUsers}}
                                <tr style="border-top:4px solid var(--fco-accent-colour); background-color:transparent">
                                    <td style="width:20px"></td>
                                    <td style="padding:5px; text-align:left; width:60px">
                                        <img src="{{this.avatar}}" style="width:50px; height:auto; border:none;"/>
                                    </td>
                                    <td style="font-size:{{../fontSize}}pt; font-family:var(--fco-font-family); font-weight:bold">
                                        {{this.name}} ({{localize 'fate-core-official.GM'}})
                                    </td>
                                    <td style="padding-right:10px">
                                        <input class="fu_notes" id="{{this.id}}" name="gmfp" type="number" min="0" value="{{this.fatepoints}}" style="background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:50px; font-family:var(--fco-font-family); border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" {{#if ../GM}}{{else}}disabled="disabled"{{/if}}/> {{localize 'fate-core-official.SceneFatePoints'}}{{#if ../GM}}<button type="button" id="refresh_fate_points" style="border:2px groove var(--fco-foundry-interactable-color); width:300px; float:right; font-size:{{../fontSize}}pt; background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour)"> {{localize 'fate-core-official.RefreshPlayerFatePoints'}}</button>{{/if}}
                                    </td>
                                </tr>
                                {{/each}}
                                {{#each all_tokens}}{{#if this.actor.hasPlayerOwner}}{{#if (eq this.actor.permission 0)}}{{else}}
                                <tr {{#if (eq this._controlled true)}} class = "fu_controlled {{this.id}}_fu" style="border-top:var(--fco-accent-colour) 2px solid"{{else}}class="{{this.id}}_fu" style="background-color:transparent; border-top:var(--fco-accent-colour) 4px solid"{{/if}}>
                                    <td style="width:20px; vertical-align:top">
                                        <button type="button" style="color:var(--fco-sheet-text-colour); width:25px; height:25px; border:none; background-color:Transparent" name="iseAspects" id="{{this.id}}_iseAspects" {{#if (eq this.aspectsMaximised false)}}i icon class="fas fa-expand fu_button" title="{{localize 'fate-core-official.Maximise'}}" {{else}}i icon class="fas fa-compress fu_button" title="{{localize 'fate-core-official.Minimise'}}"{{/if}}></button>
                                    </td>
                                    <td style="width:60px; padding:5px; text-align:left; vertical-align:top">
                                        {{#if (eq this.aspectsMaximised false)}}{{else}}
                                        {{#if ../tokenAvatar}}<img name="avatar" src="{{this.texture.src}}" id="{{this.id}}_avatar" style="width:50px; height:auto; cursor: pointer; border:none;"/>{{else}}
                                        <img name="avatar" src="{{this.actor.img}}" id="{{this.id}}_avatar" style="width:50px; cursor: pointer; height:auto; border:none"/>{{/if}}
                                        {{/if}}
                                    </td>
                                    <td id="{{this.id}}_tokenNameA" {{#if this.isOwner}}title="{{localize 'fate-core-official.DoubleClickToChangeName'}}"{{/if}} class="tName" style="width:12em; vertical-align:top; font-size:{{../fontSize}}pt; font-family:var(--fco-font-family); font-weight:bold">
                                        {{this.name}}
                                        {{#if (eq this.actor.ownership.default 0)}}{{#if ../GM}}<i class="fas fa-eye-slash"></i>{{/if}}{{/if}}
                                        {{#if this.hidden}}<i class="fas fa-ghost"></i>{{/if}}<br>
                                        {{#if (eq this.aspectsMaximised false)}}{{else}}
                                        {{#if this.isOwner}}
                                        <select title="{{localize 'fate-core-official.RollHelp'}}" class="skill_select" id="{{this.id}}_selectSkill" style="background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:100px; font-size:{{../fontSize}}">
                                            <option disabled="disabled" selected="selected">{{localize 'fate-core-official.PickASkill'}}</option>
                                            {{#each this.actor.system.skills}}
                                            {{#unless this.hidden}}
                                            <option>{{this.name}} ({{this.rank}})</option>
                                            {{/unless}}
                                            {{/each}}
                                            {{#each this.actor.system.stunts}}
                                            {{#if (eq this.linked_skill "None")}}{{else}}<option value="stunt_{{this.name}}_{{this.linked_skill}}_{{this.bonus}}">{{localize 'fate-core-official.Stunt'}}: {{this.name}} ({{this.linked_skill}} +{{this.bonus}})</option>{{/if}}
                                            {{#if this.macro}}
                                                <option value="macro_{{this.macro}}">{{localize 'fate-core-official.macro_linked_to_stunt'}}&nbsp;{{this.name}}</option>
                                            {{/if}}
                                            {{/each}}
                                        </select>
                                        {{/if}}
                                        {{#if this.actor.hasPlayerOwner}}<p/><input type="number" id="{{this.id}}_fatepoints" min="0" tabindex="-1" name="player_fps" value="{{this.actor.system.details.fatePoints.current}}" style="background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:50px; font-family:var(--fco-font-family); font-style:normal; font-size:{{../fontSize}}pt; border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" {{#if this.isOwner}}{{else}}disabled="disabled"{{/if}}/><i style="font-family:var(--fco-font-family); font-size:{{../fontSize}}pt; font-style:bold; font-style:normal;"> {{localize 'fate-core-official.FatePoints'}}</i>{{/if}}
                                        <p/><input type="number" title = {{localize 'fate-core-official.Boosts'}} min="0" tabindex="-1" name="player_boosts" id="{{this.id}}_numBoosts" value="{{this.actor.system.details.fatePoints.boosts}}" style="background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:50px; font-family:var(--fco-font-family); font-style:normal; font-size:{{../fontSize}}pt; border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" {{#if this.isOwner}}{{else}}disabled="disabled"{{/if}}/><i style="font-family:var(--fco-font-family); font-size:{{../fontSize}}pt; font-style:bold; font-style:normal;"> Boosts</i>
                                        {{/if}}
                                    </td>
                                    <td>
                                        {{#if (eq this.aspectsMaximised false)}}{{else}}
                                            <div style="font-size:{{../fontSize}}pt; font-family:var(--fco-font-family);">
                                                {{#each this.actor.system.aspects}}
                                                <div {{#if (eq @index 0)}}style="display:flex; flex-direction:row; align-items:top; padding:0.2em;"{{else}}style="display:flex; flex-direction:row; align-items:top; padding:0.2em; border-top:groove 1px;"{{/if}}>
                                                    <span style="min-width:{{../../aspectLabelWidth}}em; max-width:{{../../aspectLabelWidth}}em; text-align:left">
                                                        <div name="FUexpandAspect" style="cursor:pointer; width:{{../../fontSize}}pt; height:{{../../fontSize}}pt; float:left; background-color:Transparent; border:none" {{#if (expanded ../this.actor (fco_concat this.name '_aspect'))}}icon class="fas fa-compress fuExpandAspect fu_button" title="{{localize 'fate-core-official.Minimise'}}"{{else}}icon class = "fas fa-expand fuExpandAspect fu_button" title="{{localize 'fate-core-official.Maximise'}}"{{/if}} id="{{../this.id}}_{{this.name}}_FUexpandAspect"></div><b style="padding:5px">{{this.name}}:</b>                                
                                                    </span>
                                                    <span style="text-align:left">
                                                        {{this.value}}
                                                    </span>
                                                </div>    
                                                {{#if (expanded ../this.actor (fco_concat this.name '_aspect'))}}
                                                    <div style="width:100%; padding-left:30px; display:flex; flex-direction:row">
                                                        <span style="width:75px">Notes:</span> 
                                                        <span style="width:100%">
                                                            <div class="fu_noted" style="margin-top:10px; min-height:1.5em; margin-bottom:10px;max-width:100%; color:var(--fco-sheet-text-colour); padding-left:2px; padding-right:2px; padding-top:2px; background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" type="text" {{#if (lt ../this.actor.permission 3)}}{{else}}name="FUAspectNotesText_rich"{{/if}} id="{{../this.id}}_{{fco_getKey this.name}}_FUAspectNotes_rich">{{{fco_get_enr_notes ../this.id "aspects" @key ../../enriched_tokens}}}</div>
                                                            <div style="margin-top:10px; min-height:1.5em; margin-bottom:10px; display:none; max-width:100%; color:var(--fco-sheet-text-colour); padding-left:2px; padding-right:2px; padding-top:2px; background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" type="text" name="FUAspectNotesText" data-name="{{this.name}}" data-tokenid="{{../this.id}}" id="{{../this.id}}_{{fco_getKey this.name}}_FUAspectNotes">{{{this.notes}}}</div>
                                                        </span>
                                                    </div>                                            
                                                    {{else}}{{/if}}
                                                {{/each}}
                                            </div>
                                    {{/if}}
                                    </td>
                                </tr>
                                {{/if}}
                                {{/if}}
                                {{/each}}
                                {{#each all_tokens}}{{#if this.actor.hasPlayerOwner}}{{else}}{{#if (eq this.actor.permission 0)}}{{else}}
                                <tr {{#if (eq this._controlled true)}} class = "fu_controlled {{this.id}}_fu" style="border-top:var(--fco-accent-colour) 2px solid"{{else}}class="{{this.id}}_fu" style="background-color:transparent; border-top:var(--fco-accent-colour) 4px solid"{{/if}}>
                                    <td style="vertical-align:top; width:20px">
                                        <button type="button" style="color:var(--fco-sheet-text-colour); width:25px; height:25px; border:none; background-color:Transparent" name="iseAspects" id="{{this.id}}_iseAspects" {{#if (eq this.aspectsMaximised false)}}i icon class="fas fa-expand fu_button" title="{{localize 'fate-core-official.Maximise'}}" {{else}}i icon class="fas fa-compress fu_button" title="{{localize 'fate-core-official.Maximise'}}"{{/if}}></button>
                                    </td>
                                    <td style="width:60px; padding:5px; text-align:left; vertical-align:top">
                                        {{#if (eq this.aspectsMaximised false)}}{{else}}
                                        {{#if ../tokenAvatar}}<img name="avatar" src="{{this.texture.src}}" id="{{this.id}}_avatar" style="width:50px; height:auto; cursor: pointer; border:none"/>{{else}}
                                        <img name="avatar" src="{{this.actor.img}}" id="{{this.id}}_avatar" style="width:50px; cursor: pointer; height:auto; cursor: pointer; border:none"/>{{/if}}
                                        {{/if}}
                                    </td>
                                    <td id="{{this.id}}_tokenNameA" {{#if this.isOwner}}title="{{localize 'fate-core-official.DoubleClickToChangeName'}}"{{/if}} class="tName" style="width:12em; vertical-align:top; font-size:{{../fontSize}}pt; font-family:var(--fco-font-family); font-weight:bold">
                                        {{this.name}}
                                        {{#if (eq this.actor.ownership.default 0)}}{{#if ../GM}}<i class="fas fa-eye-slash"></i>{{/if}}{{/if}}
                                        {{#if this.hidden}}<i class="fas fa-ghost"></i>{{/if}}
                                        <br>
                                        {{#if (eq this.aspectsMaximised false)}}{{else}}
                                        {{#if this.isOwner}}
                                        <select class="skill_select" id="{{this.id}}_selectSkill" style="max-width:100px; color:var(--fco-sheet-text-colour); background-color:var(--fco-sheet-input-colour)">
                                            <option disabled="disabled" selected="selected">{{localize 'fate-core-official.PickASkill'}}</option>
                                            {{#each this.actor.system.skills}}
                                            {{#unless this.hidden}}
                                            <option>{{this.name}} ({{this.rank}})</option>
                                            {{/unless}}
                                            {{/each}}
                                            {{#each this.actor.system.stunts}}
                                            {{#if (eq this.linked_skill "None")}}{{else}}<option value="stunt_{{this.name}}_{{this.linked_skill}}_{{this.bonus}}">{{localize 'fate-core-official.Stunt'}}: {{this.name}} ({{this.linked_skill}}: +{{this.bonus}})</option>{{/if}}
                                            {{#if this.macro}}
                                                <option value="macro_{{this.macro}}">{{localize 'fate-core-official.macro_linked_to_stunt'}}&nbsp;{{this.name}}</option>
                                            {{/if}}
                                            {{/each}}
                                        </select>
                                        {{/if}}
                                        {{#if this.actor.hasPlayerOwner}}<p/><input type="number" id="{{this.id}}_fatepoints" min="0" tabindex="-1" name="player_fps" value="{{this.actor.system.details.fatePoints.current}}" style="width:50px; font-family:var(--fco-font-family); font-style:normal; font-size:{{../fontSize}}pt" {{#if this.isOwner}}{{else}}disabled="disabled"{{/if}}/> <i style="font-family:var(--fco-font-family); font-size:{{../fontSize}}pt; font-style:bold; font-style:normal;"> {{localize 'fate-core-official.FatePoints'}}</i>{{/if}}
                                        <p/><input type="number" title = "Boosts" min="0" tabindex="-1" name="player_boosts" id="{{this.id}}_numBoosts" value="{{this.actor.system.details.fatePoints.boosts}}" style="background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:50px; font-family:var(--fco-font-family); font-style:normal; font-size:{{../fontSize}}pt; border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" {{#if this.isOwner}}{{else}}disabled="disabled"{{/if}}/><i style="font-family:var(--fco-font-family); font-size:{{../fontSize}}pt; font-style:bold; font-style:normal;"> Boosts</i>
                                        {{/if}}                                        
                                    </td>
                                    <td>
                                        {{#if (eq this.aspectsMaximised false)}}{{else}}
                                            <div style="font-size:{{../fontSize}}pt; font-family:var(--fco-font-family);">
                                                {{#each this.actor.system.aspects}}
                                                <div {{#if (eq @index 0)}}style="display:flex; flex-direction:row; align-items:top; padding:3px;"{{else}}style="display:flex; flex-direction:row; align-items:top; padding:3px; border-top:groove 1px;"{{/if}}>
                                                     <span style="min-width:{{../../aspectLabelWidth}}em; max-width:{{../../aspectLabelWidth}}em; text-align:left">
                                                        <div name="FUexpandAspect" style="cursor:pointer; width:{{../../fontSize}}pt; height:{{../../fontSize}}pt; float:left; background-color:Transparent; border:none" {{#if (expanded ../this.actor (fco_concat this.name '_aspect'))}}icon class="fas fa-compress fuExpandAspect fu_button" title="{{localize 'fate-core-official.Minimise'}}"{{else}}icon class = "fas fa-expand fuExpandAspect fu_button" title="{{localize 'fate-core-official.Maximise'}}"{{/if}} id="{{../this.id}}_{{this.name}}_FUexpandAspect"></div><b style="padding:5px">{{this.name}}:</b>                                
                                                    </span>
                                                     <span style="text-align:left;">
                                                        {{this.value}}
                                                    </span>
                                                </div>    
                                                {{#if (expanded ../this.actor (fco_concat this.name '_aspect'))}}
                                                    <div style="width:100%; padding-left:30px; display:flex; flex-direction:row">
                                                        <span style="width:75px">Notes:</span> 
                                                        <span style="width:100%">
                                                            <div class="fu_notes" style="margin-top:10px; min-height:1.5em; margin-bottom:10px;max-width:100%; color:var(--fco-sheet-text-colour); padding-left:2px; padding-right:2px; padding-top:2px; background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" type="text" {{#if (lt ../this.actor.permission 3)}}{{else}}name="FUAspectNotesText_rich"{{/if}} id="{{../this.id}}_{{fco_getKey this.name}}_FUAspectNotes_rich">{{{fco_get_enr_notes ../this.id "aspects" @key ../../enriched_tokens}}}</div>
                                                            <div style="margin-top:10px; min-height:1.5em; margin-bottom:10px; display:none; max-width:100%; color:var(--fco-sheet-text-colour); padding-left:2px; padding-right:2px; padding-top:2px; background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" type="text" {{#if (lt ../this.actor.permission 3)}}disabled="disabled"{{else}}{{/if}} name="FUAspectNotesText" data-name="{{this.name}}" data-tokenid="{{../this.id}}" id="{{../this.id}}_{{fco_getKey this.name}}_FUAspectNotes">{{{this.notes}}}</div>
                                                        </span>
                                                    </div>                                            
                                                    {{else}}{{/if}}
                                                {{/each}}
                                            </div>
                                    {{/if}}
                                    </td>
                                </tr>
                                {{/if}}
                                {{/if}}
                                {{/each}}
                            </table>
                        </div>
                    </div><!--End Aspects tab--------------------------------------->
                    <!--------BEGIN Tracks tab-->
                    <div name="tracks" class="tab tracks" data-tab="tracks" style="color:var(--fco-sheet-text-colour); background:var(--fco-sheet-background-colour); font-family:var(--fco-font-family); padding-top:10px; font-size:{{fontSize}}pt">
                        {{localize 'fate-core-official.Category'}}: 
                        <select style="font-family:var(--fco-font-family); color:var(--fco-sheet-text-colour); background-color:var(--fco-sheet-input-colour); padding-right:100px" id = "category_select">
                            <option value="All" {{#if (eq category "{{localize 'fate-core-official.All'}}")}}selected{{/if}}>{{localize 'fate-core-official.All'}}</option>
                            {{#each categories}}
								{{#if (eq this "Combat")}}
									<option value="Combat" {{#if (eq "Combat" ../category)}} selected = "selected"{{/if}}>{{localize 'fate-core-official.Combat'}}</option>
								{{else}}
									{{#if (eq this "Other")}}
										<option value="Other" {{#if (eq "Other" ../category)}} selected = "selected"{{/if}}>{{localize 'fate-core-official.Other'}}</option>
									{{else}}}
										{{#if (eq this ../category)}}
											<option selected = "selected">{{this}}</option>
										{{else}}
											<option>{{this}}</option>
										{{/if}}
									{{/if}}
								{{/if}}      
                            {{/each}}
                        </select> 
                        {{#if GM}}
                                <button type="button" style="font-size:{{fontSize}}pt; width:auto; height:auto; border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour);" id="clear_fleeting">{{localize 'fate-core-official.Clear'}}</button> {{localize 'fate-core-official.AllFleetingTracks'}}
                        {{/if}}

                        <br>
                        <button type="button" style="width:25px; height:25px; color:var(--fco-sheet-text-colour); border:none; background-color:Transparent" name="maximiseTracks" id="maximiseAllTracks" title="{{localize 'fate-core-official.MaximiseAll'}}" i icon class="fas fa-expand fu_button"></button>
                        <button type="button" style="width:25px; height:25px; color:var(--fco-sheet-text-colour); border:none; background-color:Transparent" name="minimiseTracks" id="minimiseAllTracks" title="{{localize 'fate-core-official.MinimiseAll'}}" i icon class="fas fa-compress fu_button"></button>
                        <div id="fu_tracks_tab" style="overflow-y:auto; max-height:calc({{height}}px - 210px)">

                        {{#each all_tokens}}
                        {{#if this.actor.hasPlayerOwner}}{{#if (eq this.actor.permission 0)}}{{else}}
                        <table style="border-bottom:none; margin:0" class="{{#if (eq this._controlled true)}}fu_controlled{{/if}} {{this.id}}_fu">
                            <tr style="border-top:4px var(--fco-accent-colour) solid; background-color:transparent;">
                                <td id="{{this.id}}_tokenNameA" {{#if this.isOwner}}title="{{localize 'fate-core-official.DoubleClickToChangeName'}}"{{/if}} class="tName" style="width:12em; vertical-align:top; font-size:{{../fontSize}}pt; font-family:var(--fco-font-family); font-weight:bold">
                                    <button type="button" style="color:var(--fco-sheet-text-colour); width:25px; height:25px; border:none; background-color:Transparent" name="iseTracks" id="{{this.id}}_iseTracks" {{#if (eq this.tracksMaximised false)}}i icon class="fas fa-expand fu_button" title="{{localize 'fate-core-official.Maximise'}}" {{else}}i icon class="fas fa-compress fu_button" title="{{localize 'fate-core-official.Minimise'}}"{{/if}}></button>
                                    {{this.name}}
                                    {{#if (eq this.actor.ownership.default 0)}}{{#if ../GM}}<i class="fas fa-eye-slash"></i>{{/if}}{{/if}}
                                    {{#if this.hidden}}<i class="fas fa-ghost"></i>{{/if}}
                                </td>
                            </tr>
                        {{#if (eq this.tracksMaximised false)}}{{else}}
                        {{#each this.actor.system.tracks}}
                        {{#if (category ../../category this.category)}}{{#if this.enabled}}
                        <tr style="background-color:transparent;">
                            <td style="vertical-align:top; width:18em; padding-left:15px">
                                <div name="FUexpandTrack" data-name="{{this.name}}" style="width:{{../../fontSize}}pt; height:{{../../fontSize}}pt; float:left; cursor:pointer; background-color:transparent; border:none" {{#if (expanded ../this.actor (fco_concat this.name '_track'))}}icon class="fas fa-compress fu_button fuExpandAspect" title="{{localize 'fate-core-official.Minimise'}}"{{else}}icon class = "fas fa-expand fu_button fuExpandAspect fu_button" title="{{localize 'fate-core-official.Maximise'}}"{{/if}} id="{{../this.id}}_{{this.name}}_FUexpandTrackNotes"></div><div name="track_name" id="{{../this.id}}"><i style="padding-left:5px; font-style:normal; font-size:{{../../fontSize}}pt">{{this.name}}</i>
                                
                                {{#if ../this.actor.isOwner}}
                                    {{#if (eq this.rollable "full")}}
                                        <i id="{{this.name}}" data-uuid="{{../this.actor.uuid}}" name="roll_track" icon class="fas fa-dice fu_button" style="cursor:pointer"></i>
                                        {{/if}}
                                        {{#if (eq this.rollable "empty")}}
                                            <i id="{{this.name}}" data-uuid="{{../this.actor.uuid}}" name="roll_track" icon class="fas fa-dice fu_button" style=""cursor:pointer"></i>
                                        {{/if}}
                                {{/if}}
                                
                                {{#if (expanded ../this.actor (fco_concat this.name '_track'))}}<br><br> <span style="padding-left:27px; font-size:{{../../fontSize}}pt">{{localize 'fate-core-official.Notes'}}:</span>{{/if}}</div>
                            </td>
                            <td style="vertical-align:top">
                                {{#each this.box_values}}
                                {{#if this}}                        
                                <label class="box"><input type="checkbox" class="fco-box" id="{{../name}}_{{@index}}_false_{{../../this.id}}" style="opacity:0;width:25px; height:25px; float:left;" checked="checked" {{#if ../../this.isOwner}}{{else}}disabled="disabled"{{/if}}><span class = "checkmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{#if (eq ../label "escalating")}}{{add1 @index}}{{else}}{{#if (eq ../label "none")}}{{else}}{{../label}}{{/if}}{{#if (eq ../harm_can_absorb 0)}}{{else}}{{../harm_can_absorb}}{{/if}}{{/if}}</i></label>{{else}}                          
                                <label class="box"><input type="checkbox" class="fco-box" id="{{../name}}_{{@index}}_true_{{../../this.id}}" style="opacity:0; width:25px; height:25px; float:left;" {{#if ../../this.isOwner}}{{else}}disabled="disabled"{{/if}}><span class = "checkmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{#if (eq ../label "escalating")}}{{add1 @index}}{{else}}{{#if (eq ../label "none")}}{{else}}{{../label}}{{/if}}{{#if (eq ../harm_can_absorb 0)}}{{else}}{{../harm_can_absorb}}{{/if}}{{/if}}</i></input></label>{{/if}}
                                {{/each}}
                                {{#if this.aspect.when_marked}}{{#if (hasBoxes this)}}{{else}}<label style="font-weight:900; padding-left:2px">{{this.harm_can_absorb}}</label>{{/if}}<input style="font-size:{{../../fontSize}}pt;" type="text" {{#if ../this.isOwner}}{{else}}disabled="disabled"{{/if}} class="aspect_box" id="{{../this.id}}_{{this.name}}" name = "track_aspect" value ="{{this.aspect.name}}"><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size: 24px; color: var(--fco-sheet-text-colour);"></i></input>{{#if ../../GM}}{{#unless (eq this.aspect.name "")}}<button type="button" style="color:var(--fco-sheet-text-colour); border:none; background-color:transparent; width:25px; height:25px; font-size:x-small" i icon class="fas fa-sticky-note" name="track_aspect_button" title="{{localize 'fate-core-official.addToSceneAspects'}}" id="{{this.aspect.name}}_{{../this.actor.name}}_button{{this.name}}"></button>{{/unless}}{{/if}}{{/if}}
                                {{#if (expanded ../this.actor (fco_concat this.name '_track'))}}
                                <div class="fu_notes" style="min-height: 1.5em; max-width: 75%; margin-top:35px; padding-left:2px; padding-top:2px; padding-right:2px; color:var(--fco-sheet-text-colour); background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" {{#if (lt ../this.actor.permission 3)}}{{else}} name="FUTrackNotesText_rich" {{/if}} data-name="{{this.name}}" id="{{../this.actor.id}}_{{fco_getKey this.name}}_FUTrackNotes_rich">{{{fco_get_enr_notes ../this.id "tracks" @key ../../enriched_tokens}}}</div>
                                <div style="min-height:1.5em; max-width: 75%; display:none; margin-top:35px; padding-left:2px; padding-top:2px; padding-right:2px; color:var(--fco-sheet-text-colour); background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" name="FUTrackNotesText" data-name="{{this.name}}" data-tokenid="{{../this.id}}" id="{{../this.actor.id}}_{{fco_getKey this.name}}_FUTrackNotes">{{{this.notes}}}</div>
                                {{else}}{{/if}}
                            </td>
                        </tr>
                        {{/if}}
                        {{/if}}<!--end-->
                        {{/each}}<!--end all_tracks each-->
                        {{/if}}
                        </table>
                        {{/if}}
                        {{/if}}
                        {{/each}}<!--ENd all_tokens each-->
                        {{#each all_tokens}}
                        {{#if this.actor.hasPlayerOwner}}{{else}}{{#if (eq this.actor.permission 0)}}{{else}}
                        <table style="border-bottom:none; margin:0"  class="{{#if (eq this._controlled true)}}fu_controlled{{/if}} {{this.id}}_fu">
                            <tr style="border-top:4px var(--fco-accent-colour) solid; background-color:transparent;">
                                <td colspan="2" id="{{this.id}}_tokenNameT" {{#if this.isOwner}}title="{{localize 'fate-core-official.DoubleClickToChangeName'}}"{{/if}} class="tName" style="font-size:{{../fontSize}}pt; font-family:var(--fco-font-family); font-weight:bold">
                                    <button type="button" style="color:var(--fco-sheet-text-colour); width:25px; height:25px; border:none; background-color:Transparent" name="iseTracks" id="{{this.id}}_iseTracks" {{#if (eq this.tracksMaximised false)}}i icon class="fas fa-expand fu_button" title="{{localize 'fate-core-official.Maximise'}}" {{else}}i icon class="fas fa-compress fu_button" title="{{localize 'fate-core-official.Minimise'}}"{{/if}}></button>
                                    {{this.name}}
                                    {{#if (eq this.actor.ownership.default 0)}}{{#if ../GM}}<i class="fas fa-eye-slash"></i>{{/if}}{{/if}}
                                    {{#if this.hidden}}<i class="fas fa-ghost"></i>{{/if}}
                                </td>
                            </tr>
                        {{#if (eq this.tracksMaximised false)}}{{else}}
                        {{#each this.actor.system.tracks}}
                        {{#if (category ../../category this.category)}}{{#if this.enabled}}
                        <tr style="background-color:transparent;">
                            <td style="vertical-align:top; width:18em; padding-left:15px">
                                <div name="FUexpandTrack" data-name="{{this.name}}" style="width:{{../../fontSize}}pt; height:{{../../fontSize}}pt; float:left; cursor:pointer; background-color:transparent; border:none" {{#if (expanded ../this.actor (fco_concat this.name '_track'))}}icon class="fas fa-compress fu_button fuExpandAspect" title="{{localize 'fate-core-official.Minimise'}}"{{else}}icon class = "fas fa-expand fu_button fuExpandAspect fu_button" title="{{localize 'fate-core-official.Maximise'}}"{{/if}} id="{{../this.id}}_{{this.name}}_FUexpandTrackNotes"></div><div name="track_name" id="{{../this.id}}"><i style="padding-left:5px; font-style:normal; font-size:{{../../fontSize}}pt">{{this.name}}</i>
                                
                                {{#if ../this.actor.isOwner}}
                                    {{#if (eq this.rollable "full")}}
                                        <i id="{{this.name}}" name="roll_track" data-uuid="{{../this.actor.uuid}}" icon class="fas fa-dice fu_button" style="cursor:pointer"></i>
                                    {{/if}}
                                    {{#if (eq this.rollable "empty")}}
                                        <i id="{{this.name}}" name="roll_track" data-uuid="{{../this.actor.uuid}}" icon class="fas fa-dice fu_button" style=""cursor:pointer"></i>
                                    {{/if}}
                                {{/if}}
                                
                                {{#if (expanded ../this.actor (fco_concat this.name '_track'))}}<br><br> <span style="padding-left:27px; font-size:{{../../fontSize}}pt">{{localize 'fate-core-official.Notes'}}:</span>{{/if}}</div>
                            </td>
                            <td style="vertical-align:top">
                                {{#each this.box_values}}
                                {{#if this}}                        
                                <label class="box"><input type="checkbox" class="fco-box" id="{{../name}}_{{@index}}_false_{{../../this.id}}" style="opacity:0;width:25px; height:25px; float:left;" checked="checked" {{#if ../../this.isOwner}}{{else}}disabled="disabled"{{/if}}><span class = "checkmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{#if (eq ../label "escalating")}}{{add1 @index}}{{else}}{{#if (eq ../label "none")}}{{else}}{{../label}}{{/if}}{{#if (eq ../harm_can_absorb 0)}}{{else}}{{../harm_can_absorb}}{{/if}}{{/if}}</i></label>{{else}}                          
                                <label class="box"><input type="checkbox" class="fco-box" id="{{../name}}_{{@index}}_true_{{../../this.id}}" style="opacity:0; width:25px; height:25px; float:left;" {{#if ../../this.isOwner}}{{else}}disabled="disabled"{{/if}}><span class = "checkmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{#if (eq ../label "escalating")}}{{add1 @index}}{{else}}{{#if (eq ../label "none")}}{{else}}{{../label}}{{/if}}{{#if (eq ../harm_can_absorb 0)}}{{else}}{{../harm_can_absorb}}{{/if}}{{/if}}</i></input></label>{{/if}}
                                {{/each}}
                                {{#if this.aspect.when_marked}}{{#if (hasBoxes this)}}{{else}}<label style="font-weight:900; padding-left:2px">{{this.harm_can_absorb}}</label>{{/if}}<input style="font-size:{{../../fontSize}}pt;" type="text" {{#if ../this.isOwner}}{{else}}disabled="disabled"{{/if}} class="aspect_box" id="{{../this.id}}_{{this.name}}" name = "track_aspect" value ="{{this.aspect.name}}"><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size: 24px; color: var(--fco-sheet-text-colour);"></i></input>{{#if ../../GM}}{{#unless (eq this.aspect.name "")}}<button type="button" style="border:none; background-color:transparent; color:var(--fco-sheet-text-colour); width:25px; height:25px; font-size:x-small" i icon class="fas fa-sticky-note" name="track_aspect_button" title="{{localize 'fate-core-official.addToSceneAspects'}}" id="{{this.aspect.name}}_{{../this.actor.name}}_button{{this.name}}"></button>{{/unless}}{{/if}}{{/if}}
                                {{#if (expanded ../this.actor (fco_concat this.name '_track'))}}
                                <div class="fu_notes" style="min-height:1.5em; max-width: 75%; margin-top:35px; padding-left:2px; padding-top:2px; padding-right:2px; color:var(--fco-sheet-text-colour); background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" {{#if (lt ../this.actor.permission 3)}}{{else}} name="FUTrackNotesText_rich" {{/if}} data-name="{{this.name}}" id="{{../this.actor.id}}_{{fco_getKey this.name}}_FUTrackNotes_rich">{{{fco_get_enr_notes ../this.id "tracks" @key ../../enriched_tokens}}}</div>
                                <div style="min-height:1.5em; max-width: 75%; display:none; margin-top:35px; padding-left:2px; padding-top:2px; padding-right:2px; color:var(--fco-sheet-text-colour); background-color:var(--fco-sheet-input-colour); font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid font-size:{{../../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" name="FUTrackNotesText" data-name="{{this.name}}" data-tokenid="{{../this.id}}" id="{{../this.actor.id}}_{{fco_getKey this.name}}_FUTrackNotes">{{{this.notes}}}</div>
                                {{else}}{{/if}}
                            </td>
                        </tr>
                        {{/if}}
                        {{/if}}<!--end-->
                        {{/each}}<!--end all_tracks each-->
                        {{/if}}
                        </table>
                        {{/if}}
                        {{/if}}
                        {{/each}}<!--ENd all_tokens each-->
                    </div><!--//End Tracks body-->
                </div><!--End tracks tab-------------------------------->
                <!----------------------------------------------------------------------BEGIN SCENE TAB-->
                    <div name = "scene" id="fu_scene_tab" class="tab scene" data-tab="scene" style="color:var(--fco-sheet-text-colour); padding:10px;">
                            <h2>{{localize 'fate-core-official.SituationAspects'}}</h2>
                            {{#if GM}}<button type="button" id="add_sit_aspect" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:auto; height:32px; font-size:{{fontSize}}pt">{{localize 'fate-core-official.AddNewAspect'}}</button>&nbsp<button type="button" id="fuAspectLabelSettings" title="{{localize 'fate-core-official.fuLabelSettingsHint'}}" i icon class="fas fa-palette" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:32px; height:32px"></button>
                            <button type="button" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); font-size:{{fontSize}}pt; width:auto; height:auto;" id="add_countdown">{{localize 'fate-core-official.addCountdown'}}</button> 
                            {{/if}}
                            <div style="max-height:calc({{height}}px - 160px); overflow-y:auto">   
                            <div id="fu_aspects_pane" style="overflow-y:auto; max-height:{{fuPaneHeight}}px">
                                {{#each situation_aspects}}
                                    <div style="font-family:var(--fco-font-family); padding-top:10px; display:flex; flex-direction:row; align-items:center">
                                        <span style="width:100%;">
                                            <input class="fu_aspect_box" name="sit_aspect" type="text" value="{{this.name}}" id="{{@key}}_sit_aspect" {{#if this.linked}}disabled="disabled" title="{{localize 'fate-core-official.aspectFromTrack'}}" {{/if}}{{#if ../GM}}{{else}}disabled="disabled"{{/if}} style="font-size:{{../fontSize}}pt; width:100%; background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); font-family:var(--fco-font-family); border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid"></input>
                                        </span>    
                                        <span style="padding-left:10px; width:120px">
                                            <input type="number" name="free_i" id="{{@key}}_free_invokes" {{#if (eq this.name "")}}disabled="disabled"{{/if}}{{#if ../GM}}{{else}}disabled="disabled"{{/if}} style="font-size:{{../fontSize}}pt; width:75px; background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); font-family:var(--fco-font-family); border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" value="{{this.free_invokes}}"></input>
                                        </span>
                                        {{#if ../GM}}
                                        <span style="padding-left:10px; width:200px">
                                            <button type="button" name="addToScene" id="addToScene_{{@key}}" draggable="true" data-aspect="{{@key}}" {{#if (eq this.name "")}}disabled="disabled"{{/if}} data-value="{{this.free_invokes}}" id="addToScene_{{@key}}" title="{{localize 'fate-core-official.AddAspectToMap'}}" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" i icon class="fas fa-sticky-note"></button>
                                            <button type="button" name="panToAspect" id="panToAspect_{{@key}}" {{#if (eq this.name "")}}disabled="disabled"{{/if}} title="{{localize 'fate-core-official.PanToAspect'}}" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" i icon class="fas fa-search-location"></button>
                                            <button type="button" name="del_sit_aspect" id="delete_{{@key}}" title="{{localize 'fate-core-official.DeleteAspect'}}" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" i icon class="fas fa-trash"></button>
                                        </span>
                                        {{/if}}                  
                                    </div>
                                {{/each}}
                            </div>
                             <!--Countdowns go here-->
                             <h2>{{localize 'fate-core-official.countdowns'}}</h2>
                            <div id="cd_panel" style="overflow-y:auto; max-height:200px">
                            {{#if (eq countdowns none)}}{{else}}
                            <table style="background-color:transparent; border:none; padding-left:2px; padding-right:2px; font: 400 1em/1.45 var(--fco-font-family);">
                            {{#each countdowns}}
                            
                            
                            
                            {{#if (eq this.visible 'visible')}}
                            <tr>
                                <td style="width:25%; padding-right:10px; vertical-align:top;">
                                    <div class="cd_datum_rich" style="min-height:1.5em; cursor:text; min-width:100%; width:100%" id = "{{fco_getKey this.name}}_name_rich" data-oldName="{{this.name}}">{{{this.richName}}}</div>
                                    <div class="cd_datum" style="display:none; min-height:1.5em; cursor:text; min-width:100%; width:100%" id = "{{fco_getKey this.name}}_name" data-oldName="{{this.name}}">{{{this.name}}}</div>
                                </td>
                                <td style="width: 40%; padding-right:10px; vertical-align:top">
                                    <div class="cd_datum_rich" style="min-height:1.5em; cursor:text; min-width:100%; width:100%" id="{{fco_getKey this.name}}_desc_rich">{{{this.richDesc}}}</div>
                                    <div class="cd_datum" style="display:none; min-height:1.5em; cursor:text; min-width:100%; width:100%" id="{{fco_getKey this.name}}_desc">{{{this.description}}}</div>
                                </td>
                                <td style="width:25%">
                                    {{#each this.boxes}}
                                    {{#if this}}                        
                                        <label class="cdbox"><input type="checkbox" name = "cd_box" id="{{fco_getKey ../name}}_{{@index}}_false_box" style="opacity:0;width:25px; height:25px; float:left;" checked="checked" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{add1 @index}}</i></label>
                                        {{else}}                          
                                        <label class="cdbox"><input type="checkbox" name="cd_box" id="{{fco_getKey ../name}}_{{@index}}_true_box" style="opacity:0; width:25px; height:25px; float:left;" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{add1 @index}}</i></input></label>
                                    {{/if}}
                                    {{/each}}
                                </td>
                                {{#if ../GM}}
                                <td style="width:10%; text-align:center">
                                    <button type="button" name="toggle_cd_visibility" title="{{localize 'fate-core-official.switch_hidden'}}" id="{{fco_getKey this.name}}_visibility" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); font-size:xx-small; width:25px; height:25px" class="fas fa-eye"></button>
                                    <button type="button" name="delete_cd" id="{{fco_getKey this.name}}_delete" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); margin-left:10px; font-size:xx-small; width:25px; height:25px" class="fas fa-trash"></button>
                                    <br/>{{localize 'fate-core-official.visible'}}
                                </td>
                                {{/if}}
                            </tr>
                            {{/if}}

                            


                            {{#if (eq this.visible 'hidden')}}
                            {{#unless ../GM}}
                            <tr>
                                <td style="width:25%; vertical-align:top">
                                    Mysterious Countdown
                                </td>
                                <td style="width: 40%; padding-right:10px; vertical-align:top">
                                </td>
                                <td style="width:25%">
                                </td>
                                <td style="width:10%">
                                </td>
                            </tr>
                            {{/unless}}

                            {{#if ../GM}}
                            <tr>
                                 <td style="width:25%; padding-right:10px; vertical-align:top;">
                                    <div class="cd_datum_rich" style="min-height:1.5em; cursor:text; min-width:100%; width:100%" id = "{{fco_getKey this.name}}_name_rich" data-oldName="{{this.name}}">{{{this.richName}}}</div>
                                    <div class="cd_datum" style="display:none; min-height:1.5em; cursor:text; min-width:100%; width:100%" id = "{{fco_getKey this.name}}_name" data-oldName="{{this.name}}">{{{this.name}}}</div>
                                </td>
                                <td style="width: 40%; padding-right:10px; vertical-align:top">
                                    <div class="cd_datum_rich" style="min-height:1.5em; cursor:text; min-width:100%; width:100%" id="{{fco_getKey this.name}}_desc_rich">{{{this.richDesc}}}</div>
                                    <div class="cd_datum" style="display:none; min-height:1.5em; cursor:text; min-width:100%; width:100%" id="{{fco_getKey this.name}}_desc">{{{this.description}}}</div>
                                </td>
                                <td style="width:25%;">
                                    {{#each this.boxes}}
                                    {{#if this}}                        
                                        <label class="cdbox"><input type="checkbox" name = "cd_box" id="{{fco_getKey ../name}}_{{@index}}_false_box" style="opacity:0;width:25px; height:25px; float:left;" checked="checked" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color:var(--fco-sheet-text-colour);">{{add1 @index}}</i></label>
                                        {{else}}                          
                                        <label class="cdbox"><input type="checkbox" name="cd_box" id="{{fco_getKey ../name}}_{{@index}}_true_box" style="opacity:0; width:25px; height:25px; float:left;" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{add1 @index}}</i></input></label>
                                    {{/if}}
                                    {{/each}}
                                </td>
                                <td style="width:10%; text-align:center">
                                    <button type="button" name="toggle_cd_visibility" title="{{localize 'fate-core-official.switch_boxes'}}" id="{{fco_getKey this.name}}_visibility" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); font-size:xx-small; width:25px; height:25px" class="fas fa-eye"></button>
                                    <button type="button" name="delete_cd" id="{{fco_getKey this.name}}_delete" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); margin-left:10px; font-size:xx-small; width:25px; height:25px" class="fas fa-trash"></button>
                                    <br/>{{localize 'fate-core-official.hidden'}}
                                </td>
                            </tr>
                            {{/if}}
                            {{/if}}
                            



                            {{#if (eq this.visible 'show_boxes')}}
                            {{#unless ../GM}}
                            <tr>
                                <td style="width:25%"> Mysterious Countdown </td>
                                 <td style="width: 40%; padding-right:10px; vertical-align:top">
                                </td>
                                <td style="width:25%">
                                    {{#each this.boxes}}
                                    {{#if this}}                        
                                        <label class="cdbox"><input type="checkbox" name = "cd_box" id="{{fco_getKey ../name}}_{{@index}}_false_box" style="opacity:0;width:25px; height:25px; float:left;" checked="checked" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{add1 @index}}</i></label>
                                        {{else}}                          
                                        <label class="cdbox"><input type="checkbox" name="cd_box" id="{{fco_getKey ../name}}_{{@index}}_true_box" style="opacity:0; width:25px; height:25px; float:left;" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{add1 @index}}</i></input></label>
                                    {{/if}}
                                    {{/each}}
                                </td>
                                <td style="width:10%">
                                </td>
                            </tr>

                            {{/unless}}

                            {{#if ../GM}}
                            <tr>
                                 <td style="width:25%; padding-right:10px; vertical-align:top;">
                                    <div class="cd_datum_rich" style="min-height:1.5em; cursor:text; min-width:100%; width:100%" id = "{{fco_getKey this.name}}_name_rich" data-oldName="{{this.name}}">{{{this.richName}}}</div>
                                    <div class="cd_datum" style="display:none; min-height:1.5em; cursor:text; min-width:100%; width:100%" id = "{{fco_getKey this.name}}_name" data-oldName="{{this.name}}">{{{this.name}}}</div>
                                </td>
                                <td style="width: 40%; padding-right:10px; vertical-align:top">
                                    <div class="cd_datum_rich" style="min-height:1.5em; cursor:text; min-width:100%; width:100%" id="{{fco_getKey this.name}}_desc_rich">{{{this.richDesc}}}</div>
                                    <div class="cd_datum" style="display:none; min-height:1.5em; cursor:text; min-width:100%; width:100%" id="{{fco_getKey this.name}}_desc">{{{this.description}}}</div>
                                </td>
                                <td style="width:25%">
                                    {{#each this.boxes}}
                                    {{#if this}}                        
                                        <label class="cdbox"><input type="checkbox" name = "cd_box" id="{{fco_getKey ../name}}_{{@index}}_false_box" style="opacity:0;width:25px; height:25px; float:left;" checked="checked" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{add1 @index}}</i></label>
                                        {{else}}                          
                                        <label class="cdbox"><input type="checkbox" name="cd_box" id="{{fco_getKey ../name}}_{{@index}}_true_box" style="opacity:0; width:25px; height:25px; float:left;" {{#if ../../GM}}{{else}}disabled="disabled"{{/if}}><span class = "cdcheckmark"></span><i style="font-style:normal; position: absolute; left: 0; top: 0; transform: translate(-55%, -35%); font-weight: 900; font-size:{{../../fontSize}}pt; color: var(--fco-sheet-text-colour);">{{add1 @index}}</i></input></label>
                                    {{/if}}
                                    {{/each}}
                                </td>
                                <td style="width:10%; text-align:center">
                                    <button type="button" name="toggle_cd_visibility" id="{{fco_getKey this.name}}_visibility" title="{{localize 'fate-core-official.switch_visible'}}" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); font-size:xx-small; width:25px; height:25px" class="fas fa-eye"></button>
                                    <button type="button" name="delete_cd" id="{{fco_getKey this.name}}_delete" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); margin-left:10px; font-size:xx-small; width:25px; height:25px" class="fas fa-trash"></button>
                                    <br/>{{localize 'fate-core-official.show_boxes'}}
                                </td>
                            </tr>
                            {{/if}}
                            {{/if}}



                            {{/each}}
                            </table>

                            {{/if}}
                            </div> 
                            <h2>{{localize 'fate-core-official.SceneNotesTitle'}}</h2>
                            <div style="overflow-y:auto; font-family:var(--fco-font-family);" id="fu_scene_notes_pane;">
                                <div id="scene_notes_rich" class="long_text_rich" style="min-height:1.5em; font-size:{{fontSize}}pt; padding:5px; border-left:none; overflow-y:auto; height:{{fuNotesHeight}}px; border-right:none; border-top:none; border-bottom:solid 1px var(--fco-foundry-interactable-color); background:white">{{{this.richNotes}}}</div>
                                <div id="scene_notes" class="long_text" style="display:none; min-height:1.5em; font-size:{{fontSize}}pt; padding:5px; border-left:none; overflow-y:auto; height:{{fuNotesHeight}}px; border-right:none; border-top:none; border-bottom:solid 1px var(--fco-foundry-interactable-color); background:white">{{{this.notes}}}</div>
                            </div>    
                        </div>        
                    </div><!--End Scene tab---------------------------------------------------->
                    <!----------------------------------------------------------------------END SCENE TAB-->

                    <!----------------------BEGIN Roll History Tab-->
                    <div name = "rolls" class="tab rolls" data-tab="rolls" style="text-align:center; font-family:var(--fco-font-family); padding-top:10px; max-width:99%">
                        {{#if GM}}<button type="button" class="fas fa-trash" id="fu_clear_rolls" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); font-size:{{fontSize}}pt; border:2px; border-style:outset; width:50px; height:50px;" title="{{localize 'fate-core-official.ClearAllRolls'}}"></button>
                        <button type="button" title="{{localize 'fate-core-official.fu-adhoc-roll-button'}}" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:50px; height:50px; border:2px; border-style:outset;" id="fu_ad_hoc_roll" class="fas fa-dice"></button>{{/if}}
                        <div id="fu_rolls_tab" style="overflow-y:auto; max-height:calc({{height}}px - 160px);">
                        <table style="background:none; color:var(--fco-sheet-text-colour); border:2px solid var(--fco-accent-colour); max-width:calc(100% - 5px)">
                        <tr style="background-color:transparent">
                            <th style="border:2px solid var(--fco-accent-colour); font-weight:bold; text-align:center; font-size:{{fontSize}}pt">
                                {{localize 'fate-core-official.Character'}}
                            </th>
                            <th style="border:2px solid var(--fco-accent-colour); font-weight:bold; text-align:center; font-size:{{fontSize}}pt">
                                {{localize 'fate-core-official.Description'}}
                            </th>
                            <th style="border:2px solid var(--fco-accent-colour); font-weight:bold; text-align:center; font-size:{{fontSize}}pt">
                                {{localize 'fate-core-official.Dice'}}
                            </th>   
                            <th style="border:2px solid var(--fco-accent-colour); font-weight:bold; text-align:center; font-size:{{fontSize}}pt">
                                {{localize 'fate-core-official.Total'}}
                            </th>
                            <th style="border:2px solid var(--fco-accent-colour); font-weight:bold; text-align:center; font-size:{{fontSize}}pt">
                                {{localize 'fate-core-official.RollActions'}}
                            </th>
                        </tr>
                        {{#each rolls}}
                        <tr style="background-color:transparent">
                            <td style="border:2px solid var(--fco-accent-colour); width:20%; font-size:{{../fontSize}}pt">
                                <div name="fu_roll">{{this.speaker}}</div>
                            </td>
                            <td style="border:2px solid var(--fco-accent-colour); font-size:{{../fontSize}}pt">
                                {{{this.richFlavor}}}
                            </td>
                            <td style="font-size:{{add5 ../fontSize}}pt; color:var(--fco-sheet-text-colour); text-align:center; border:2px solid var(--fco-accent-colour);">
                                {{#each this.dice}}
                                    {{#if (lt this 2)}}
                                        {{#if (eq this 1)}}
                                            <i icon class="fas fa-plus-square"></i>
                                        {{/if}}
                                        {{#if (eq this -1)}}
                                            <i icon class="fas fa-minus-square"></i>
                                        {{/if}}
                                        {{#if (eq this 0)}}
                                            <i icon class="fas fa-square"></i>
                                        {{/if}}
                                    {{else}}
                                        <i style="font-style:normal; font-size:{{../../fontSize}}pt; margin:2px">{{this}}</i>
                                    {{/if}}
                                {{/each}}
                            </td>
                            <td style="border:2px solid var(--fco-accent-colour); text-align:center; font-size:{{../fontSize}}pt">
                                {{this.total}}&nbsp{{fco_ladder this.total}}
                            </td>
                            <td style="border:2px solid var(--fco-accent-colour); text-align:center; font-size:{{../fontSize}}pt">
                                {{#if ../GM}}
                                    <table style="background:transparent; border:none">
                                        <tr><th>{{localize 'fate-core-official.FreeActions'}}</th>
                                            <th>{{localize 'fate-core-official.FatePointActions'}}</th>
                                            </tr>
                                            <tr style="background:transparent;"">
                                                <td>
                                                    <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_plus1" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.PlusOneExplainer'}}">+1</button>
                                                    <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_plus2free" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.FreePlusTwoExplainer'}}{{#if ../GM}} {{localize 'fate-core-official.gmHoldShiftToSelectAspects'}}{{/if}}" i icon class="fas fa-plus"></button>
                                                    <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_reroll" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.FreeRerollExplainer'}}{{#if ../GM}} {{localize 'fate-core-official.gmHoldShiftToSelectAspects'}}{{/if}}" i icon class="fas fa-dice"></button>
                                                    <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_manual" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.manualExplainer'}}" i icon class="fas fa-tools"></button>
                                                </td>
                                                <td>
                                                    <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_plus2fp" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.PaidPlusTwoExplainer'}}" i icon class="fas fa-plus"></button>
                                                    <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_rerollfp" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.PaidRerollExplainer'}}" i icon class="fas fa-dice"></button>
                                                    <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_manualfp" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.manualExplainer'}}" i icon class="fas fa-tools"></button>
                                                </td>
                                            </tr>
                                    </table>
                                {{/if}}
                                {{#if (eq this.fullSpeaker.actor ../user.character.id)}}{{#if ../GM}}{{else}}
                                <table style="background:transparent; border:none">
                                    <tr><th>{{localize 'fate-core-official.FreeActions'}}</th>
                                        <th>{{localize 'fate-core-official.FatePointActions'}}</th>
                                        </tr>
                                        <tr style="background:transparent;">
                                            <td>
                                                <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_plus1" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.PlusOneExplainer'}}">+1</button>
                                                <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_plus2free" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour);; width:35px; height:35px" title="{{localize 'fate-core-official.FreePlusTwoExplainer'}}" i icon class="fas fa-plus"></button>
                                                <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_reroll" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.FreeRerollExplainer'}}" i icon class="fas fa-dice"></button>
                                                <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_manual" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.manualExplainer'}}" i icon class="fas fa-tools"></button>
                                            </td>
                                            <td>
                                                <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_plus2fp" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.PaidPlusTwoExplainer'}}" i icon class="fas fa-plus"></button>
                                                <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_rerollfp" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.PaidRerollExplainer'}}" i icon class="fas fa-dice"></button>
                                                <button type="button" name="fu_roll_button" data-roll="roll_{{@key}}_manualfp" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px" title="{{localize 'fate-core-official.manualExplainer'}}" i icon class="fas fa-tools"></button>
                                            </td>
                                        </tr>
                                </table>
                                {{/if}}{{/if}}
                            </td>
                        </tr>
                        {{/each}}
                        </table>
                    </div><!--End rolls tab-->
                    </div><!--End rolls body-->

                    <!-----------------------BEGIN game information tab-->
                    <div name="game_info" id="game_info" class="tab game_info" data-tab="game_info" style="padding:10px">
                            <div id="game_info_tab" style="color:var(--fco-sheet-text-colour); overflow-y:auto; max-height:calc({{height}}px - 150px);">
                                <h2 style="vertical-align:top">{{localize 'fate-core-official.DateAndTimeNotes'}}</h2>
                                <div id="game_date_time_rich" class="long_text_rich" style="color:var(--fco-sheet-text-colour); background-color: var(--fco-sheet-input-colour); padding-left:5px; font-size:{{fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; max-width:100%; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid; max-height:3em; overflow-y:auto">{{{this.rich_game_time}}}</div>
                                <div id="game_date_time" class="long_text" style="padding-left:5px; display:none; min-height:1.5em; background-color:white; font-size:{{fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; max-width:100%; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid; max-height:3em; overflow-y:auto">{{{this.game_time}}}</div>
                                <!--Game Aspects-->
                                <h2>{{localize 'fate-core-official.gameAspects'}}</h2>
                                
                                {{#if GM}}<button type="button" id="add_game_aspect" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:200px; height:auto; font-size:{{fontSize}}pt">{{localize 'fate-core-official.AddNewAspect'}}</button>{{/if}}

                                <div style="max-height:{{gameAspectsHeight}}px; overflow-y:auto">
                                    {{#each game_aspects}}
                                    <div style="padding-top: 10px; font-family:var(--fco-font-family); font-size:{{../fontSize}}pt; display: flex; flex-direction: row; align-items:center">
                                        <button type="button" name="FUexpandGameAspect" style="color:var(--fco-sheet-text-colour); vertical-align:top; width:20px; height:20px; float:left; background-color:Transparent; border:none" {{#if (expanded "game" this.name)}}icon class="fas fa-compress fu_button" title="{{localize 'fate-core-official.Minimise'}}"{{else}}icon class = "fas fa-expand fu_button" title="{{localize 'fate-core-official.Maximise'}}"{{/if}} id="game_{{this.name}}_FUexpandAspect"></button>
                                        <span style="width:100%; padding-left:10px; vertical-align:middle">
                                                <input name="game_aspect" class="fu_aspect_box" type="text" value="{{this.name}}" id="{{@key}}_game_aspect" {{#if ../GM}}{{else}}disabled="disabled"{{/if}} style="width:100%; color:var(--fco-sheet-text-colour); background-color: var(--fco-sheet-input-colour); font-family:var(--fco-font-family); border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid; vertical-align:middle;"></input>
                                        </span>
                                        <span style="padding-left:10px; vertical-align:middle">
                                            <input type="number" name="game_a_free_i" id="{{@key}}_ga_free_invokes" {{#if ../GM}}{{else}}disabled="disabled"{{/if}} style="width:75px; color:var(--fco-sheet-text-colour); background-color: var(--fco-sheet-input-colour); font-family:var(--fco-font-family); border-left:none; border-right:none; border-top:none; border-bottom:1px var(--fco-foundry-interactable-color) solid" value="{{this.free_invokes}}"></input>
                                        </span>
                                        {{#if ../GM}}
                                            <span style="padding-left:5px; vertical-align:middle"><button type="button" name="del_game_aspect" id="delete_ga_{{this.name}}" title="{{localize 'fate-core-official.DeleteAspect'}}" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); vertical-align:middle; width:30px; height:30px" i icon class="fas fa-trash"></button></span>
                                        {{/if}}
                                    </div>
                                    {{#if (expanded "game" this.name)}}
                                        <div style="width:100%; font-family:var(--fco-font-family); padding-left:25px; display:flex; flex-direction:row">
                                            <span style="font-style:normal; color:var(--fco-sheet-text-colour); vertical-align:top; padding:5px; width:50px; font-size:{{../fontSize}}pt">{{localize 'fate-core-official.Notes'}}:</span>
                                            <span style="vertical-align:top; padding:5px; width:100%"><textarea style="color:var(--fco-sheet-text-colour); background-color: var(--fco-sheet-input-colour); font-size:{{../fontSize}}pt; font-family:var(--fco-font-family); border-top:none; border-right:none; min-height:75px; border-left:none; border-bottom:1px var(--fco-foundry-interactable-color) solid;" type="text" {{#unless ../GM}}disabled="disabled"{{else}}{{/unless}} name="FUGameAspectNotesText" id="game_{{this.name}}_FUAspectNotes">{{this.notes}}</textarea></span>
                                        </div>
                                    {{/if}}
                                    {{/each}}
                                </div>
                                <!--Game notes-->
                                <h2 style="vertical-align:top">{{localize 'fate-core-official.GameNotes'}}</h1>
                                    <div>
                                        <div id="game_notes_rich" class="long_text_rich" style="min-height:1.5em; overflow-y:auto; font-size:{{fontSize}}pt; font-family:var(--fco-font-family); border-left:none; border-right:none; border-top:none; border-bottom:solid 1px var(--fco-foundry-interactable-color); background:white; overflow-y:auto; height:{{gameNotesHeight}}px; padding:5px">{{{this.rich_game_notes}}}</div>
                                        <div id="game_notes" class="long_text" style="display:none; min-height:1.5em; overflow-y:auto; font-size:{{fontSize}}pt; font-family:var(--fco-font-family); border-left:none; border-right:none; border-top:none; border-bottom:solid 1px var(--fco-foundry-interactable-color); background:white; overflow-y:auto; height:{{gameNotesHeight}}px; padding:5px">{{{this.game_notes}}}</div>
                                    </div>
                            </div><!--End of game info tab container pane-->
                    </div><!--End game information tab-->
             </section>
       </div><!-- This div contains the main content pane-->
       {{#if conflict}}
       <div style="color:var(-fco-sheet-text-colour); width:32em; display:flex; padding:2px; flex-direction:column"><!-- This div contains the combat tracker pane-->
                <table style="color:var(--fco-sheet-text-colour); border:none; padding:none; background-color:transparent">
                    <tr>
                        <td style="width:90%">
                             <input style="color:var(--fco-sheet-text-colour); background:transparent; cursor:text; padding:0; font-size:large; font-weight:bold; border:none;" id="conflict_name_input" type="text" {{#unless GM}}disabled="disabled"{{/unless}} value="{{conflictName}}"></input>       
                        </td>
                        <td style="width:10%">
                            {{#if conflict}}{{#unless combatants_only}}<i id="toggle_fu_combatants" title="{{localize 'fate-core-official.notCombatantsOnly'}}" class="fu_toggle_off fas fa-fist-raised"></i>{{else}}<i id="toggle_fu_combatants" title="{{localize 'fate-core-official.combatantsOnly'}}" class="fu_toggle_on fas fa-fist-raised"></i>{{/unless}}
                        </td>
                    </tr>
                    <tr style="padding:0; background:transparent">
                        <td colspan="2">
                            {{localize 'fate-core-official.Exchange'}} {{exchange}}
                        </td>
                    </tr>
                </table>
                    <table style="border:none; background-color:transparent">
                    <tr>
                        <td width="25px"><i class="fas fa-thumbtack fco-pin-conflict {{#if GM}}mfate-panel__header-button{{/if}}" {{#if pinned}}style="color:var(--fco-sheet-text-colour);"{{else}}style="color:var(--fco-sheet-text-colour); opacity:0.25"{{/if}} ></i></td><td style="color:var(--fco-sheet-text-colour);">{{combatSceneName}}</td>
                    </tr>
                    </table>
                    <table style="border:none; background-color:transparent">
                    {{#if GM}}
                    <tr>
                        <td>
                            <button type="button" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px; float:left" id="next_exchange" title="{{#if (eq conflictExchange 0)}}{{localize 'fate-core-official.BeginConflict'}}{{else}}{{localize 'fate-core-official.NextExchange'}}{{/if}}" i icon class="fas fa-forward"></button>
                            <button type="button" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px; float:left" id="timed_event" title="{{localize 'fate-core-official.TimedEvent'}}" i icon class="fas fa-clock"></button>  
                        </td>
                        <td style="padding-right:5px">
                            <button type="button" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px; float:left" {{#unless (gt numConflicts 1)}}disabled = "disabled"{{/unless}} id="next_conflict" title="{{localize 'fate-core-official.NextConflict'}}" i icon class="fas fa-arrow-right"></button>                                        
                            <button type="button" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px; float:left" id="add_conflict" title="{{localize 'fate-core-official.AddConflict'}}" i icon class="fas fa-plus"></button>                                      
                            <button type="button" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px; float:right;" id="end_conflict" title="{{localize 'fate-core-official.EndConflict'}}" i icon class="fas fa-trash"></button>
                        </td>
                    </tr>
                    {{/if}}
                    </table>  
                <div id="fu_conflict_tracker" class="Action Tracker" style="padding-left:5px; overflow-y:auto; max-height:calc({{height}}px - 200px)">
                     
                    {{else}}</h2>{{localize 'fate-core-official.NoConflictDetected'}}
                    {{/if}}
                    <table style="border:none; background-color:transparent">
                    {{#each combat_tokens}}
                    <tr class="{{#if this._controlled}} fu_controlled {{/if}} {{this.id}}_fu" style="border-bottom:none; background-color:transparent">    
                        <td style="width:60px">
                            <button type="button" class="fu_button" name="popcorn" id="{{this.id}}_sheet" title="{{localize 'fate-core-official.pocornSheetHint'}}" style="border:none; height:60px; width:60px; background: url({{this.texture.src}}) scroll no-repeat center center; background-size:50px 50px"/>     
                        </td>
                        <td>
                            <table style="border:none; background-color:transparent; color:var(--fco-sheet-text-colour);"
                                <tr style="background-color:transparent">
                                    <td style="overflow-x:auto">
                                        <span {{#if ../GM}}id="{{this.id}}_tokenNameA_AT" class="tName" title="{{localize 'fate-core-official.DoubleClickToChangeName'}}"{{/if}}>{{this.name}}</span>
                                    </td>
                                    <td style="white-space:nowrap; padding-right:5px; text-align:right">
                                        {{#if ../GM}}{{#unless (eq ../conflictExchange 0)}}<button name = "popcorn" type="button" id = "{{this.id}}_act" title="{{localize 'fate-core-official.pocornAvatarHint'}}" i icon class="fas fa-play" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px"></button>{{else}}{{/unless}}{{/if}}
                                        <button name = "popcorn" type="button" id = "{{this.id}}_find" title="{{localize 'fate-core-official.pocornFindHint'}}" i icon class="fas fa-search" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px"></button>
                                    </td>
                                </tr>
                            </table> 
                        </td>
                    </tr>
                    {{/each}}
                    </table>              
                    
                    <table style="border:none;">
                    {{#each has_acted_tokens}}
                    <tr class="{{#if this._controlled}} fu_controlled {{else}} fu_uncontrolled {{/if}}{{this.id}}_fu_acted">
                        <td style="width:60px">
                             <button type="button" class="fu_button" name="popcorn" id="{{this.id}}_sheet" title="{{localize 'fate-core-official.pocornSheetHint'}}" style="border:none; height:60px; width:60px; background: url({{this.texture.src}}) scroll no-repeat center center; opacity:0.5; background-size:50px 50px;"/>
                        </td>
                        <td>
                            <table style="border:none; background-color:transparent;">
                                <tr>
                                    <td style="overflow-x:auto">
                                        <span style="color:var(--fco-sheet-text-colour); opacity:0.25" {{#if ../GM}}id="{{this.id}}_tokenNameA_AT" class="tName" title="{{localize 'fate-core-official.DoubleClickToChangeName'}}"{{/if}}>{{this.name}}</span>
                                    </td>
                                    <td style="white-space:nowrap; padding-right:5px; text-align:right">
                                        {{#if ../GM}}<button name = "popcorn" type="button" id = "{{this.id}}_unact" title="{{localize 'fate-core-official.pocornUnactHint'}}" i icon class="fas fa-undo" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px"></button>{{else}}{{/if}}
                                        <button name = "popcorn" type="button" id = "{{this.id}}_find" title="{{localize 'fate-core-official.pocornFindHint'}}" i icon class="fas fa-search" style="border:2px groove var(--fco-foundry-interactable-color); background-color:var(--fco-sheet-input-colour); color:var(--fco-sheet-text-colour); width:35px; height:35px"></button>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    {{/each}}
                    </table>
                </div><!--End action tracker body-->
       </div><!-- This div contains combat tracker pane-->
       {{/if}}
    </div><!-- End Container div for the main Fate Utilities content.-->
    </div> <!-- End container div for the Nav bar-->
</div> <!-- End of container div for absolutely everything -->
</form>
